ZEWP 6502
Assemble (F5)
Run
Step (F10)
Reset
Load Example
ZEWP.COM
Assembly Source
; Zewp 6502 - Example Program ; Count from 0 to 10, store in $0200 ; LDX #$00 ; X = 0 LDY #$0A ; Y = 10 (counter) LOOP: TXA ; A = X STA $0200,X ; Store at $0200+X INX ; X++ DEY ; Y-- BNE LOOP ; if Y != 0, loop BRK ; Stop
PC:
$0600
A:
$00
X:
$00
Y:
$00
SP:
$FD
N
0
V
0
B
0
D
0
I
0
Z
0
C
0
Cycles:
0
Memory ($0000–$07FF)
Output
Ready. Write 6502 assembly and press Assemble.