1
0
mirror of https://github.com/cc65/cc65.git synced 2025-04-13 06:37:20 +00:00

Fixed off-by-one-error on upper bound of invalid screen memory locations

This commit is contained in:
mc78 2024-08-26 02:03:29 +02:00
parent c5f3a7e690
commit a914be0fdc

@ -15,12 +15,12 @@ _cbm_set_working_screen:
bne @error
cpx #$10 ; Screen addr must not be set to $1000-$1fff nor $9000-$9fff
bcc @ok_1000
cpx #$1f
cpx #$20
bcc @error
@ok_1000:
cpx #$90 ; Screen addr must not be set to $1000-$1fff nor $9000-$9fff
bcc @ok_9000
cpx #$9f
cpx #$a0
bcc @error
@ok_9000:
stx SCREEN_HI