Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
21
Task/Image-noise/6502-Assembly/image-noise.6502
Normal file
21
Task/Image-noise/6502-Assembly/image-noise.6502
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
define sysRandom $fe
|
||||
|
||||
Snow:
|
||||
lda sysRandom ;get a random number
|
||||
and #$01 ;remove all but bit 0
|
||||
sta $0200,x ;store in first section of VRAM
|
||||
|
||||
lda sysRandom ;get a random number
|
||||
and #$01 ;remove all but bit 0
|
||||
sta $0300,x ;store in second section of VRAM
|
||||
|
||||
lda sysRandom ;get a random number
|
||||
and #$01 ;remove all but bit 0
|
||||
sta $0400,x ;store in third section of VRAM
|
||||
|
||||
lda sysRandom ;get a random number
|
||||
and #$01 ;remove all but bit 0
|
||||
sta $0500,x ;store in last section of VRAM
|
||||
|
||||
inx ;next X
|
||||
jmp Snow ;loop forever
|
||||
Loading…
Add table
Add a link
Reference in a new issue