make sure screen Y is not too large when normalising
This commit is contained in:
1 parent
b03742b745
commit
654abce59d
1 file changed
+12
@@ -242,6 +242,18 @@ x_not_too_big:
|
|||||||
lda #0
|
lda #0
|
||||||
sta current_screen_y
|
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
|
lda current_screen_x
|
||||||
sta $0403
|
sta $0403
|
||||||
lda current_screen_y
|
lda current_screen_y
|
||||||
|
|||||||
Reference in new issue
Block a user