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

20 lines
359 B
NASM
Raw Normal View History

2019-05-28 20:56:52 +00:00
// Minimal struct - different instances and copying
.pc = $801 "Basic"
:BasicUpstart(main)
2019-05-28 20:56:52 +00:00
.pc = $80d "Program"
.const point1_x = 2
.const point1_y = 3
.const point2_x = 4
2019-05-28 20:56:52 +00:00
main: {
.label SCREEN = $400
lda #point1_x
2019-05-28 20:56:52 +00:00
sta SCREEN
lda #point1_y
2019-05-28 20:56:52 +00:00
sta SCREEN+1
lda #point2_x
2019-05-28 20:56:52 +00:00
sta SCREEN+2
lda #point1_y
2019-05-28 20:56:52 +00:00
sta SCREEN+3
rts
}