[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 6502 assembler and emulator in JavaScript



bieling@terra.es wrote:
biel...@terra.es wrote:

<http://6502asm.com/>


I've written this to try it out:

start: lda $ff   ; read keypress
       ldx $fe   ; get a random number
       sta $200,x
       sta $300,x
       sta $400,x
       sta $500,x
       jmp start

When it's run, there are 4 dots whose color never change (you've got
to press a key to change the color).
Is it that the random number at $fe never gets the value $ff ?
What do you think ?

That's what I think.  How do you generate the random number?

-michael

NadaNet file server for Apple II computers!
Home page:  http://members.aol.com/MJMahon/

"The wastebasket is our most important design
tool--and it's seriously underused."