Mail Archives: djgpp/1997/02/19/09:44:49
Hi All,
I am trying to write some inline assembler to get the address of the
bios fonts, and I was trying to use MOV instructions like so:
asm("movw %edx, %bh\n\t");
I use edx as in the extended syntax it is used to pass in a value,
but the BIOS call requires that the value be in bh.
However the assembler complains about no instruction matching the
operands given, could someone please explain how I move values
from one register size to another?
Thanks in advance
John
________________________________________________________________
Parallax Solutions Ltd. Tel.: 01203 514522
Stonecourt, Fax.: 01203 514401
Siskin Drive, Web : http://www.parallax.co.uk/~johne
Coventry CV3 4FJ Mail: johne AT parallax DOT co DOT uk
________________________________________________________________
Remember:
There is no such thing as computer error, it's 100% YOUR fault
________________________________________________________________
- Raw text -