2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
|
|
@ -0,0 +1,8 @@
|
|||
MULTIPLY: STX MULN ; 6502 has no "acc += xreg" instruction,
|
||||
TXA ; so use a memory address
|
||||
MULLOOP: DEY
|
||||
CLC ; remember to clear the carry flag before
|
||||
ADC MULN ; doing addition or subtraction
|
||||
CPY #$01
|
||||
BNE MULLOOP
|
||||
RTS
|
||||
Loading…
Add table
Add a link
Reference in a new issue