Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested structures have stricter access #18

Closed
dfbg opened this issue May 10, 2023 · 0 comments
Closed

Nested structures have stricter access #18

dfbg opened this issue May 10, 2023 · 0 comments

Comments

@dfbg
Copy link

dfbg commented May 10, 2023

.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
tebe6502 added a commit that referenced this issue Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants