mirror of
https://gitlab.com/camelot/kickc.git
synced 2024-09-29 03:56:15 +00:00
18 lines
366 B
NASM
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
|
|
}
|