explicitly compare read result with zero now that under ROM routines preserve P
This commit is contained in:
1 parent
66964ab567
commit
f14cf20c92
1 file changed
+2
@@ -4,9 +4,11 @@
|
|||||||
peek_pointer_null_check:
|
peek_pointer_null_check:
|
||||||
ldy #$00
|
ldy #$00
|
||||||
jsr peek_under_roms
|
jsr peek_under_roms
|
||||||
|
cmp #$00
|
||||||
bne ptr_not_null
|
bne ptr_not_null
|
||||||
iny
|
iny
|
||||||
jsr peek_under_roms
|
jsr peek_under_roms
|
||||||
|
cmp #$00
|
||||||
bne ptr_not_null
|
bne ptr_not_null
|
||||||
|
|
||||||
;; Pointer is NULL
|
;; Pointer is NULL
|
||||||
|
|||||||
Reference in new issue
Block a user