1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-09-29 03:56:15 +00:00
kickc/src/test/ref/struct-31.asm
2020-02-23 09:44:36 +01:00

18 lines
366 B
NASM

// Minimal struct with MemberUnwind behavior - simple members and local initializer
.pc = $801 "Basic"
:BasicUpstart(main)
.pc = $80d "Program"
.label SCREEN = $400
main: {
.const point1_x = 2
.const point1_y = 3
// SCREEN[0] = point1.x
lda #point1_x
sta SCREEN
// SCREEN[1] = point1.y
lda #point1_y
sta SCREEN+1
// }
rts
}