Mail Archives: djgpp/1998/06/16/21:22:15
Try: movw $5, %ax\n\t
on the 1st line
Bob Berkawitz <oonly AT mailexcite DOT com> wrote:
> When I try to compile this I get the this error "13:Error: operands
> given don't match any known 386 instruction"
> Here is the code:
> int x;
> void main()
> {
> asm("movw 5, %ax\n\t"
> "movw %ax, $_x");
> }
> What am I doing wrong?
> Thanks in advance.
--
_ ___
#_~`--'__ `===-, +-----------------------------------+
`.`. `#.,// | Blaine Hodge +
,_\_\ ## #\ | bhodge AT gpu DOT srv DOT ualberta DOT ca |
`__.__ `####\ | blaine AT cs DOT ualberta DOT ca |
~~\ ,###'~ | http://www.ualberta.ca/~bhodge/ |
\##' +-----------------------------------+
- Raw text -