From: johne AT parallax DOT co DOT uk (John Eccleston) Newsgroups: comp.os.msdos.djgpp Subject: [Q] Inline assembler and mov instructions Date: Wed, 19 Feb 97 13:58:43 GMT Organization: Parallax Solutions Ltd Message-ID: <856360718.728600@red.parallax.co.uk> NNTP-Posting-Host: red.parallax.co.uk Cache-Post-Path: red.parallax.co.uk!unknown AT parsnip DOT parallax DOT co DOT uk Lines: 30 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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 ________________________________________________________________