summaryrefslogtreecommitdiff
path: root/programs/sub-suite/utils.s
diff options
context:
space:
mode:
Diffstat (limited to 'programs/sub-suite/utils.s')
-rw-r--r--programs/sub-suite/utils.s12
1 files changed, 6 insertions, 6 deletions
diff --git a/programs/sub-suite/utils.s b/programs/sub-suite/utils.s
index 046164a..3ab948b 100644
--- a/programs/sub-suite/utils.s
+++ b/programs/sub-suite/utils.s
@@ -176,7 +176,7 @@ isdelm2:
@loop:
ldb dtab2, x ; Get the compare value.
beq @other ; We hit the end of the table, so check for the others.
- cab ; Are they the same?
+ cmp b ; Are they the same?
beq @r1 ; Yes, so return 1.
inx ; No, so increment the table index.
bra @loop ; Keep looping.
@@ -202,11 +202,11 @@ isdelm2:
isdelm:
ldx #0 ; Reset X.
- stx a ; Reset the shift value.
+ stx rega ; Reset the shift value.
@loop:
ldb dtab, x ; Get the compare value.
beq @other ; We hit the end of the table, so check for the others.
- cab ; Are they the same?
+ cmp b ; Are they the same?
beq @rshft ; Yes, so return 1 << index.
inx ; No, so increment the table index.
bra @loop ; Keep looping.
@@ -222,10 +222,10 @@ isdelm:
lda #0 ; Return 0.
rts ; End of isdelm.
@rshft:
- stx a ; Save the shift value.
+ stx rega ; Save the shift value.
ldx #0 ; Reset X.
lda #1 ; Set up the bitshift.
- lsl a ; Return 1 << X.
+ lsl rega ; Return 1 << X.
rts ; End of isdelm.
@@ -235,7 +235,7 @@ get_ptok:
@loop:
ldb ptok_tab, x ; Get the compare value.
beq @other ; We hit the end of the table, so check for the others.
- cab ; Are they the same?
+ cmp b ; Are they the same?
beq @rtab ; Yes, so return X.
inx ; No, so increment the table index.
bra @loop ; Keep looping.