make sure screen Y is not too large when normalising
This commit is contained in:
1 parent
b03742b745
commit
654abce59d
1 file changed
+13
-1
+13
-1
@@ -241,7 +241,19 @@ x_not_too_big:
|
||||
bpl +
|
||||
lda #0
|
||||
sta current_screen_y
|
||||
*
|
||||
*
|
||||
;; Make sure Y isn't too large for absolute size of
|
||||
;; screen
|
||||
cmp #24
|
||||
bcc +
|
||||
lda #24
|
||||
sta current_screen_y
|
||||
*
|
||||
|
||||
;; Make sure Y isn't too much for the screen, taking
|
||||
;; into account
|
||||
|
||||
|
||||
lda current_screen_x
|
||||
sta $0403
|
||||
lda current_screen_y
|
||||
|
||||
Reference in new issue
Block a user