mirror of
https://github.com/nathanriggs/AppleIIAsm-Collection.git
synced 2024-11-28 03:52:10 +00:00
82d0e74c1a
some minor bugfixes, directory shuffling, added demo and utility disks
18 lines
349 B
Plaintext
18 lines
349 B
Plaintext
RAND8
|
|
LDX #8
|
|
LDA RNDL+0
|
|
:A
|
|
ASL ;SHIFT THE REG
|
|
ROL RNDL+1
|
|
BCC :B
|
|
EOR #$2D ; APPLY XOR FEEDBACK
|
|
:B
|
|
DEX
|
|
BNE :A
|
|
STA RNDL+0
|
|
STA RETURN
|
|
LDY #1
|
|
STY RETLEN
|
|
CMP #0 ; RELOAD FLAGS
|
|
RTS
|