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

Struct not supported? #31

Closed
ghost opened this issue Oct 1, 2016 · 4 comments
Closed

Struct not supported? #31

ghost opened this issue Oct 1, 2016 · 4 comments

Comments

@ghost
Copy link

ghost commented Oct 1, 2016

No description provided.

@HJLebbink
Copy link
Owner

you mean NASM's struct as in:

struc vertex
  .x  resq 1
  .y  resq 1
  .z  resq 1
endstruc

Or are you using a struct from another dialect?

@ghost
Copy link
Author

ghost commented Oct 1, 2016

about syntax coloring

@HJLebbink
Copy link
Owner

HJLebbink commented Oct 1, 2016

Oh, you like the field names that make up the struct to have syntax coloring of some sort. That is not easy, since those words are not keywords in the language. You like to do things as:

String STRUCT
    size dw 100
    len dw 10
String ENDS

ASSUME eax:PTR String
mov ecx, [eax].size,
mov edx, [eax].len
ASSUME eax:nothing

and have the size in "[eax].size" with syntax coloring too?

I've never considered this, I'll put in on the TODO list.

@ghost
Copy link
Author

ghost commented Oct 1, 2016

Ok.

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

1 participant