mirror of
https://github.com/RevCurtisP/C02.git
synced 2024-11-28 10:51:14 +00:00
19 lines
261 B
NASM
19 lines
261 B
NASM
|
;Program test.c02
|
||
|
CPU 6502
|
||
|
LDA #0
|
||
|
SEC
|
||
|
SBC 1
|
||
|
CLC
|
||
|
ADC 2
|
||
|
SEC
|
||
|
SBC 3
|
||
|
STA b
|
||
|
LDA 4
|
||
|
AND 255
|
||
|
STA c
|
||
|
LDA 1
|
||
|
ORA 256
|
||
|
STA i
|
||
|
b DB 0
|
||
|
c DB 0
|