http://GameProgrammer.Com

Programming

GP Mailing List
     Thread Index
     Date Index

ATXGPSIG List
     Thread Index
     Date Index

Google
>

Home

Wise2Food



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cross-compiling




>To use assembly in windows, or with C just type this:
>
>_asm {
>
>
>}
>
>here is an
>
>Example
>
>// Example of the __asm keyword
>__asm                  // __asm block
>{
>    mov eax, 01h
>    int 10h
>}
>
>__asm mov eax, 01h      // Separate __asm lines
>__asm int 10h
>
>// Multiple __asm statements on a line
>__asm mov eax, 01h   __asm int 10h
>
>There is some things you can't do though.  You need something like masm


*** I am not sure if you are aware of this, but gnus compilers use a 
somewhat "weird" convention for inline assembly instructions. I dont exactly 
remember, but this:

_asm mov ax,cs:data;

might become

_asm mov %%ax,%%cs:cs;

or somethings like that.....

Josiah


________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

=================================================================
The GameProgrammer.Com mailing list is for the open discussion
of any topic related to the art, science, and business of
programming games. This list is especially tolerant of beginners.
We were all beginners once

To SUBSCRIBE or UNSUBSCRIBE please visit:
http://gameprogrammer.com/mailinglist.html