Advertisement

DJGPP's inline assembly proplem

Started by August 08, 2000 07:15 AM
2 comments, last by Mika 24 years, 5 months ago
How I can use variables in DJGPP''s inline assembly code?
Hi,

Yes you can,

    void Function (int nb){asm {"pushw %%ax \nmovw %0, %%ax \npopw %%ax \n":: a(nb) :}    



It''s something like this, but i can tell you you''re better trying to find a doc on At&t ASM ... !!

Hapy Coding

LowRad
Advertisement
You might want to check this out: http://www.rt.e-technik.tu-darmstadt.de/~georg/djgpp/djgpp_asm.html

Martee
Magnum Games
ReactOS - an Open-source operating system compatible with Windows NT apps and drivers
it''s also possible to link a file to your projects. all you need to do is compile the asm source file (with tasm, masm, nasm, whatever) into a .obj file, then create a make file for djgpp. then just run the make file and it''ll take care of the rest. djgpp is really wierd for doing asm. this method is helpfull if you know asm and don''t want to re-learn it.

JoeMont001@aol.com www.polarisoft.n3.net
My HomepageSome shoot to kill, others shoot to mame. I say clear the chamber and let the lord decide. - Reno 911

This topic is closed to new replies.

Advertisement