1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-07-01 22:29:45 +00:00
kickc/src/test/ref/enum-3.asm

20 lines
483 B
NASM
Raw Normal View History

2019-06-18 23:24:10 +00:00
// Test of simple enum - value with complex calculation
// Commodore 64 PRG executable file
.file [name="enum-3.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
2019-06-18 23:24:10 +00:00
:BasicUpstart(main)
.const BROKEN = 4*4+2+1
.segment Code
2019-06-18 23:24:10 +00:00
main: {
.label SCREEN = $400
2020-02-23 08:44:36 +00:00
// *SCREEN = state
2019-06-18 23:24:10 +00:00
lda #BROKEN
sta SCREEN
2020-02-23 08:44:36 +00:00
// }
2019-06-18 23:24:10 +00:00
rts
}