AppleIIAsm-Collection/disks/disk3_math8_math16/T.ADDIT16.MIN
nathanriggs 1b182844cc Math Routines 0.2.0 update
- fixed a plethora of bugs
- overhauled demo
- integrated shared required library and macros
- began early planning of floating-point routines and macros
- created minified, no-comment versions of every routine
2018-12-21 16:47:01 -05:00

34 lines
556 B
Plaintext

*
ADDIT16
*
PLA
STA RETADR
PLA
STA RETADR+1
PLA
STA :ADD2
PLA
STA :ADD2+1
PLA
STA :ADD1
PLA
STA :ADD1+1
LDA :ADD1
CLC
ADC :ADD2
TAY
STY RETURN
LDA :ADD1+1
ADC :ADD2+1
TAX
STX RETURN+1
LDA #2
STA RETLEN
LDA RETADR+1
PHA
LDA RETADR
PHA
RTS
:ADD1 DS 2
:ADD2 DS 2