|
-
July 12th, 2005, 09:34 AM
#1
Assembly Declaratios / Instructions - Help
Im making a class in C++ to classify a declaration in g++ generated assembly
".def __Unwind_SjLj_Unregister; .scl 2; .type 32; .endef"
and
".ascii "Ace of Diamonds\0""
are two examples. Now what member functions could I create that would be usefull in identifying this as a declaration? IE what are ALL the aspects of a declaration that I need to make note of in my C++ class? Be it from what is being declared to what type etc. I am quite new to assembly and therefore am unsure as to what to include, exclude etc.
The same for instructions. IE operand 1 , 2, 3, etc.
For example, how would I check if a line is a valid declaration or a valid instruction? An instruction would not include a label, or a declaration. Any other valid assembly would be an instruction. But, how what are some characteristics of valid declarations and instructions? IE what would I tell my parsing engine to look for?
Last edited by Diego898; July 12th, 2005 at 09:42 AM.
-
July 12th, 2005, 09:42 AM
#2
Re: Assembly Declaratios - Help
Are you compiling this on Windows or Linux?
Could you also attach a project or sample files which you are converting into assembly?
I will take closer look at it tommorow and maybe will be able to help you
Hob
B+!
'There is no cat' - A. Einstein
Use [code] [/code] tags!
Did YOU share your photo with us at CG Members photo gallery ?
-
July 12th, 2005, 10:09 AM
#3
Re: Assembly Declaratios - Help
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|