mirror of
https://github.com/a2-4am/pitch-dark.git
synced 2024-06-15 16:29:38 +00:00
.
This commit is contained in:
parent
158e5304a3
commit
be0740a5e6
|
@ -327,7 +327,7 @@ okvs_update
|
||||||
; in: stack contains 4 bytes of parameters:
|
; in: stack contains 4 bytes of parameters:
|
||||||
; +1 [word] handle to storage space
|
; +1 [word] handle to storage space
|
||||||
; +3 [word] address of callback
|
; +3 [word] address of callback
|
||||||
; out: <callback> will be called for each record in the store with
|
; out: <callback> will be called for each record in the store, in order, with
|
||||||
; X = numeric index of record
|
; X = numeric index of record
|
||||||
; A/Y = address of key
|
; A/Y = address of key
|
||||||
; all registers are clobbered
|
; all registers are clobbered
|
||||||
|
@ -349,7 +349,7 @@ okvs_iter
|
||||||
pha ; save PTR on stack (in case callback clobbers it)
|
pha ; save PTR on stack (in case callback clobbers it)
|
||||||
phy
|
phy
|
||||||
clc
|
clc
|
||||||
adc #$02
|
adc #2 ; skip over next-record pointer (2 bytes)
|
||||||
bcc +
|
bcc +
|
||||||
iny ; A/Y -> key
|
iny ; A/Y -> key
|
||||||
+ phx
|
+ phx
|
||||||
|
@ -373,7 +373,7 @@ okvs_iter
|
||||||
; in: stack contains 4 bytes of parameters:
|
; in: stack contains 4 bytes of parameters:
|
||||||
; +1 [word] handle to storage space
|
; +1 [word] handle to storage space
|
||||||
; +3 [word] address of callback
|
; +3 [word] address of callback
|
||||||
; out: <callback> will be called for each record in the store with
|
; out: <callback> will be called for each record in the store, in order, with
|
||||||
; X = numeric index of record
|
; X = numeric index of record
|
||||||
; A/Y = address of value
|
; A/Y = address of value
|
||||||
; all registers are clobbered
|
; all registers are clobbered
|
||||||
|
|
Loading…
Reference in New Issue
Block a user