Nested structures have stricter access
Closed this issue · 0 comments
dfbg commented
.struct Pointer
l .byte
h .byte
.ends
.struct DCB_S
device .byte
unit .byte
command .byte
status .byte
buffer Pointer
timeout .byte
unused .byte
count .word
aux1 .byte
aux2 .byte
.ends
.zpvar ADRESS Pointer = $64 ;INDIRECT POINTER
.var DCB DCB_S = $300 ;DEVICE CONTROL BLOCK
This works:
mwa #$600 ADRESS
This doesn't but should:
mwa #$600 dcb.buffer
This does:
mwa #$600 dcb.buffer.l