// Minimal struct with C-Standard behavior - struct with internal int array
  // Commodore 64 PRG executable file
.file [name="struct-43.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [startAfter="Code"]
.segment Basic
:BasicUpstart(main)
  .const SIZEOF_UNSIGNED_INT = 2
  .const OFFSET_STRUCT_POINT_ID = 5
  .const OFFSET_STRUCT_POINT_POS = 1
  .label SCREEN = $400
.segment Code
main: {
    // SCREEN[0] = point1.id
    lda point1+OFFSET_STRUCT_POINT_ID
    sta SCREEN
    lda point1+OFFSET_STRUCT_POINT_ID+1
    sta SCREEN+1
    // SCREEN[1] = point1.pos[0]
    lda point1+OFFSET_STRUCT_POINT_POS
    sta SCREEN+1*SIZEOF_UNSIGNED_INT
    lda point1+OFFSET_STRUCT_POINT_POS+1
    sta SCREEN+1*SIZEOF_UNSIGNED_INT+1
    // SCREEN[2] = point1.pos[1]
    lda point1+OFFSET_STRUCT_POINT_POS+1*SIZEOF_UNSIGNED_INT
    sta SCREEN+2*SIZEOF_UNSIGNED_INT
    lda point1+OFFSET_STRUCT_POINT_POS+1*SIZEOF_UNSIGNED_INT+1
    sta SCREEN+2*SIZEOF_UNSIGNED_INT+1
    // }
    rts
}
.segment Data
  point1: .byte 4
  .word 1, 2, 3
