summaryrefslogtreecommitdiffstats
path: root/hacks/images/m6502/random.asm
diff options
context:
space:
mode:
authorSimon Rettberg2024-09-06 14:42:37 +0200
committerSimon Rettberg2024-09-06 14:42:37 +0200
commitbadef32037f52f79abc1f1440b786cd71afdf270 (patch)
tree412b792d4cab4a7a110db82fcf74fe8a1ac55ec1 /hacks/images/m6502/random.asm
parentDelete pre-6.00 files (diff)
downloadxscreensaver-master.tar.gz
xscreensaver-master.tar.xz
xscreensaver-master.zip
Diffstat (limited to 'hacks/images/m6502/random.asm')
-rw-r--r--hacks/images/m6502/random.asm11
1 files changed, 0 insertions, 11 deletions
diff --git a/hacks/images/m6502/random.asm b/hacks/images/m6502/random.asm
deleted file mode 100644
index 9ff5d2d..0000000
--- a/hacks/images/m6502/random.asm
+++ /dev/null
@@ -1,11 +0,0 @@
-loop: lda $fe ; A=rnd
- sta $00 ; ZP(0)=A
- lda $fe
- and #$3 ; A=A&3
- clc ; Clear carry
- adc #$2 ; A+=2
- sta $01 ; ZP(1)=A
- lda $fe ; A=rnd
- ldy #$0 ; Y=0
- sta ($00),y ; ZP(0),ZP(1)=y
- jmp loop