mirror of
https://github.com/nathanriggs/AppleIIAsm-Collection.git
synced 2025-02-07 21:30:32 +00:00
- getting ready for major changes for 0.6.0. - be sure to download the 0.5.0 release to ensure proper functionality, as these rountines will not work together in the SRC or BIN folder during the transition - Beginning to significantly alter documentation
18 lines
379 B
NASM
18 lines
379 B
NASM
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
|