http://skilldrick.github.com/easy6502/#first-program
how to use 6502_functional_test in Nick's easy6502 simulator ?


Code: Select all
$ xxd -p *bin|sed 's/\(..\)/,$\1/g;s/^/dcb/;s/,/ /' | head
dcb $4c,$87,$43,$00,$ff,$ff,$ff,$ff,$ff,$ff,$c3,$82,$41,$00,$7f,$00,$00,$00,$00,$00,$00,$1f,$71,$80,$0f,$ff,$7f,$80,$ff,$0f
dcb $8f,$8f,$00,$02,$01,$02,$02,$02,$03,$02,$04,$02,$08,$01,$33,$02,$34,$02,$35,$02,$36,$02,$3b,$01,$3c,$02,$3d,$02,$3e,$02
dcb $3f,$02,$40,$02,$41,$02,$42,$02,$43,$02,$38,$02,$39,$02,$3a,$02,$3b,$02,$58,$02,$59,$02,$59,$01,$5a,$01,$00,$00,$00,$00
dcb $00,$00,$00,$00,$00,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ffCode: Select all
This:
:2006200080810180028101800001000102818081807F80FF00010080800200001F71800F0E
checksum (delete) --
----------------------------------------------------------------
data (dcb $xx,$xx,$xx...[newline]) twice with 16 Bytes each
-- function 00 = data (delete)
---- location (*=$xxxx[newline])
-- byte count (delete)
- start of hex record (delete)
should be converted to this:
*=$0620
dcb $80,$81,$01,$80,$02,$81,$01,$80,$00,$01,$00,$01,$02,$81,$80,$81
dcb $80,$7f,$80,$ff,$00,$01,$00,$80,$80,$02,$00,$00,$1f,$71,$80,$0f
Code: Select all
; S U C C E S S ************************************************
; -------------
success ;if you get here everything went well
3819 : 4c1938 > jmp * ;test passed, no errors
; -------------
; S U C C E S S ************************************************