diff options
Diffstat (limited to 'test/add-sub.s')
-rw-r--r-- | test/add-sub.s | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/add-sub.s b/test/add-sub.s index 3dfdca4..d923cdc 100644 --- a/test/add-sub.s +++ b/test/add-sub.s @@ -6,7 +6,7 @@ .org 0 reset: cps ; Clear the processor status register. - ldx.w #$FFFF ; Reset the stack pointer. + ldx.d #$2FFFF ; Reset the stack pointer. txs ; and #0 ; Reset A. tab ; Reset B. @@ -15,11 +15,11 @@ up: inc ; Increment the counter. cmp #$FF ; Did the accumulator overflow? bcs down ; Yes, so start decrementing. - jmp up ; No, so keep incrementing. + bra up ; No, so keep incrementing. down: dec ; Did the accumulator underflow? beq up ; Yes, so start incrementing. - jmp down ; No, so keep decrementing. + bra down ; No, so keep decrementing. .org $FFC0 .qword reset |