1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-10-21 17:24:39 +00:00
kickc/src/test/ref/struct-6.asm

22 lines
393 B
NASM

// Minimal struct - nesting structs
.pc = $801 "Basic"
:BasicUpstart(main)
.pc = $80d "Program"
main: {
.const p_x = $a
.const p_y = $a
.const c_radius = 5
.label SCREEN = $400
// SCREEN[0] = c.center.x
lda #p_x
sta SCREEN
// SCREEN[1] = c.center.y
lda #p_y
sta SCREEN+1
// SCREEN[2] = c.radius
lda #c_radius
sta SCREEN+2
// }
rts
}