mirror of
https://github.com/nathanriggs/AppleIIAsm-Collection.git
synced 2024-12-02 12:52:03 +00:00
c8cac53c5e
Massive updates that changes the way most subroutines are handled. Major bugfixes, various utilities added, started higher-level libraries.
20 lines
317 B
Plaintext
20 lines
317 B
Plaintext
RAND8
|
|
LDX #8
|
|
LDA RNDL+0
|
|
:A
|
|
ASL ;SHIFT THE REG
|
|
ROL RNDL+1
|
|
BCC :B
|
|
EOR #$2D
|
|
|
|
|
|
:B
|
|
DEX
|
|
BNE :A
|
|
STA RNDL+0
|
|
STA RETURN
|
|
LDY #1
|
|
STY RETLEN
|
|
CMP #0
|
|
RTS
|