fix Planetoids OOB access

This commit is contained in:
Peter Ferrie 2024-06-20 17:01:48 -07:00
parent f2d72c331b
commit d52883974c

View File

@ -1,5 +1,5 @@
;license:MIT
;(c) 2021 by qkumba
;(c) 2021, 2024 by qkumba
!cpu 6502
!to "build/PRELAUNCH.INDEXED/PLANETOIDS",plain
@ -18,9 +18,17 @@
lda #$A9
sta $1570
+
lda #<callback
sta $81C
lda #>callback
sta $81D
+DISABLE_ACCEL
jmp $800
callback
jsr $FC58
jmp $96B
!if * > $1C0 {
!error "code is too large, ends at ", *
}