Hi ecktor,
welcome,
the
simulator you are using tells you what it can do if you hit the "Notes" button:
Code:
Notes:
Memory location $fe contains a new random byte on every instruction.
Memory location $ff contains the ascii code of the last key pressed.
Memory locations $200 to $5ff map to the screen pixels. Different values will
draw different colour pixels. The colours are:
$0: Black
$1: White
$2: Red
$3: Cyan
$4: Purple
$5: Green
$6: Blue
$7: Yellow
$8: Orange
$9: Brown
$a: Light red
$b: Dark grey
$c: Grey
$d: Light green
$e: Light blue
$f: Light grey
I did not test the random feature nor the input but a little code to fill the screen with some colors:
Code:
LDA #$04
LDX #0
LOOP1:
STA $0200,X
INX
BNE LOOP1
LDA #$03
LDX #0
LOOP2:
STA $0300,X
INX
INX
BNE LOOP2
LOOP3:
TXA
STA $0400,X
INX
INX
BNE LOOP3
LOOP4:
TXA
STA $0500,X
INX
BNE LOOP4
It appears to me that the simulator operates properly. Perhaps you can figure out how my test work.
Each pixel of the screen corresponds to a single address in the range $0200..$05ff. Changing the contents of a memory in that region will change the color of the corresponding pixel on screen (to be precise: if one or more of the lower 4 bit is changed, the upper 4 bits do nothing).
All programs are automatically assembled to begin at $0600.
I don't know if the explanations on that page are enough for you. Otherwise you may try to get a book about the 6502 and its instructions (and addressing modes which are perhaps difficult to understand in the first run) - like Rodnay Zaks "Programming the 6502".