Add user procedures bitor, shiftleft, and shiftright
This commit is contained in:
parent
5c3bccd48d
commit
4cddb13ba8
1 changed files with 32 additions and 0 deletions
|
@ -76,6 +76,38 @@ ml:
|
|||
rts
|
||||
.endproc
|
||||
|
||||
.proc bitor ; user-procedure
|
||||
lda ARGVEC+0
|
||||
ora ARGVEC+1
|
||||
rts
|
||||
.endproc
|
||||
|
||||
.proc shiftleft ; user-procedure
|
||||
lda ARGVEC+0
|
||||
ldx ARGVEC+1
|
||||
@loop:
|
||||
cpx #$00
|
||||
beq @done
|
||||
asl
|
||||
dex
|
||||
jmp @loop
|
||||
@done:
|
||||
rts
|
||||
.endproc
|
||||
|
||||
.proc shiftright ; user-procedure
|
||||
lda ARGVEC+0
|
||||
ldx ARGVEC+1
|
||||
@loop:
|
||||
cpx #$00
|
||||
beq @done
|
||||
lsr
|
||||
dex
|
||||
jmp @loop
|
||||
@done:
|
||||
rts
|
||||
.endproc
|
||||
|
||||
|
||||
FRAMECOUNT: .byte 0
|
||||
FIRSTTIME: .byte 1
|
||||
|
|
Loading…
Add table
Reference in a new issue