You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think I know of a good way to define structures. Have a #struct structName {} directive where each line is a member of the structure. For structure member definitions, #dXX memberName should be the syntax, just like with any other variable outside of a structure. Perhaps there should also be an optional #memberalign bits on the first line of the body to force every new member to be aligned to the specified boundary.
Edit: To access members, one would use structName.memberName, where memberName is the offset from the start of the structure. It would be up to the developer of the program to provide the correct base pointer.
The text was updated successfully, but these errors were encountered:
I think I know of a good way to define structures. Have a
#struct structName {}
directive where each line is a member of the structure. For structure member definitions,#dXX memberName
should be the syntax, just like with any other variable outside of a structure. Perhaps there should also be an optional#memberalign bits
on the first line of the body to force every new member to be aligned to the specified boundary.Edit: To access members, one would use
structName.memberName
, wherememberName
is the offset from the start of the structure. It would be up to the developer of the program to provide the correct base pointer.The text was updated successfully, but these errors were encountered: