2019-06-18 23:24:10 +00:00
|
|
|
// Test of simple enum - value with complex calculation
|
2020-12-21 07:57:41 +00:00
|
|
|
// 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
|
2020-12-21 07:57:41 +00:00
|
|
|
.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
|
|
|
|
}
|