View Single Post
Old 05-19-2004, 10:13 PM   #2 (permalink)
joe_bruin
LOAD "*",8,1
 
Join Date: Feb 2003
Location: la.ca.us
Posts: 254
joe_bruin is on a distinguished road
since you didn't specify your architecture, i'll assume you're talking about an x86 machine. i've never really worked with x86 assembly, but i'll give it a shot.

the $(number) most likely means "immediate value".
the % is probably "indirect value".

gcc will assemble files with extension .s or .S (it actually calls the system assembler, "as", but it's much easier through gcc). gcc can also generate assembly code from c. just run gcc -S myfile.c and it will create myfile.s.
joe_bruin is offline   Reply With Quote