View Single Post
Old 05-19-2004, 08:18 PM   #1 (permalink)
Amaranthine
Registered User
 
Amaranthine's Avatar
 
Join Date: May 2004
Posts: 47
Amaranthine is on a distinguished road
programming for linux

I decided to start learning some C/C++ and (the incredibly small difference of) assembly on linux.

I have been compiling stuff under g++. I wanted to do some inline assembly so I tried using __asm{ } hoping that would work, but it didn't. Can any of you tell me how to do this? Also I came across what looked like an assembler directive:
.byte <some offset such as 0x01>
or
.long
what is this?

And lastly I assume $ = hex number and % = binary number, but I am not positive so I might as well check. (example: mov al,$10 or mov al,%00000011)

(also, what can I use to assemble not-so-inline assembly?)

And I'm not sure if this matters but I am running RedHat 9.0
Amaranthine is offline   Reply With Quote