Removed display swapping code
git-svn-id: svn://svn.cc65.org/cc65/trunk@3836 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
3293330f31
commit
4b27f80c91
1 changed files with 2 additions and 30 deletions
|
@ -65,38 +65,10 @@ JOY_COUNT = 1 ; Number of joysticks we support
|
||||||
; memory available.
|
; memory available.
|
||||||
; Must return an JOY_ERR_xx code in a/x.
|
; Must return an JOY_ERR_xx code in a/x.
|
||||||
;
|
;
|
||||||
; Here we also flip the joypad in case the display is flipped.
|
|
||||||
; This install routine should be called after you send the flip code
|
|
||||||
; to the display hardware.
|
|
||||||
|
|
||||||
INSTALL:
|
INSTALL:
|
||||||
lda __viddma ; Process flipped displays
|
lda #<JOY_ERR_OK
|
||||||
and #2
|
ldx #>JOY_ERR_OK
|
||||||
beq @L2
|
|
||||||
|
|
||||||
; Set joypad for flipped display
|
|
||||||
|
|
||||||
lda #$10
|
|
||||||
ldx #$00
|
|
||||||
@L1: sta joy_mask,x
|
|
||||||
inx
|
|
||||||
asl a
|
|
||||||
bcc @L1
|
|
||||||
bra @L4
|
|
||||||
|
|
||||||
; Set joypad for normal display
|
|
||||||
|
|
||||||
@L2: lda #$10
|
|
||||||
ldx #$03
|
|
||||||
@L3: sta joy_mask,x
|
|
||||||
dex
|
|
||||||
asl a
|
|
||||||
bcc @L3
|
|
||||||
|
|
||||||
; Done
|
|
||||||
|
|
||||||
@L4: lda #<JOY_ERR_OK
|
|
||||||
ldx #>JOY_ERR_OK
|
|
||||||
; rts ; Run into UNINSTALL instead
|
; rts ; Run into UNINSTALL instead
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
; ------------------------------------------------------------------------
|
||||||
|
|
Loading…
Add table
Reference in a new issue