mirror of
https://github.com/cc65/cc65.git
synced 2025-01-06 06:33:34 +00:00
Reject setting screen at $0000 due to overlap with zeropage and kernal vars.
This commit is contained in:
parent
a914be0fdc
commit
1aeb3aeb13
@ -11,6 +11,7 @@
|
||||
|
||||
_cbm_set_working_screen:
|
||||
tax
|
||||
beq @error ; Reject setting screen at zero page location
|
||||
and #3
|
||||
bne @error
|
||||
cpx #$10 ; Screen addr must not be set to $1000-$1fff nor $9000-$9fff
|
||||
@ -33,6 +34,6 @@ _cbm_set_working_screen:
|
||||
tax
|
||||
rts
|
||||
@error:
|
||||
lda #$ff
|
||||
tax
|
||||
lda #$01
|
||||
ldx #$00
|
||||
rts
|
||||
|
Loading…
Reference in New Issue
Block a user