1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-06-09 18:29:36 +00:00
kickc/src/test/ref/cpu-huc6280.asm
2022-01-24 01:04:31 +01:00

33 lines
535 B
NASM

// Tests the HUC6280 instructions
.cpu _huc6280
// Commodore 64 PRG executable file
.file [name="cpu-huc6280.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [startAfter="Code"]
.segment Basic
:BasicUpstart(main)
.segment Code
main: {
// asm
sxy
st0 #$55
st1 #$aa
sax
st2 #$be
say
tma #2
bsr !+
tam #4
csl
cla
clx
cly
csh
set
!:
rts
// }
}