1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-06 06:33:34 +00:00

Added check that given screen addr hi is not between $1000-$1fff nor between $9000-$9fff due to shadowing

This commit is contained in:
mc78 2024-08-26 00:47:25 +02:00
parent bc4c36579a
commit 404af7500c

View File

@ -13,6 +13,16 @@ _cbm_set_working_screen:
tax
and #3
bne @error
cpx #$10 ; Screen addr must not be set to $1000-$1fff nor $9000-$9fff
bcc @ok_1000
cpx #$1f
bcc @error
@ok_1000:
cpx #$90 ; Screen addr must not be set to $1000-$1fff nor $9000-$9fff
bcc @ok_9000
cpx #$9f
bcc @error
@ok_9000:
stx SCREEN_HI
sec
jsr PLOT ; Get cursor position ...