1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-10-21 02:24:34 +00:00
kickc/src/test/ref/struct-2.asm
2019-06-08 22:06:22 +02:00

20 lines
373 B
NASM

// Minimal struct - two instances being copied (using assignment)
.pc = $801 "Basic"
:BasicUpstart(main)
.pc = $80d "Program"
.const point1_x = 2
.const point1_y = 3
.const point2_x = 4
main: {
.label SCREEN = $400
lda #point1_x
sta SCREEN
lda #point1_y
sta SCREEN+1
lda #point2_x
sta SCREEN+2
lda #point1_y
sta SCREEN+3
rts
}