code:void buf_to_screen() { asm("movl $0x12C00 %ecx\n\t" "cld\n\t" "rep\n\t" "movsd" : : "S" (buffer), "D" (screen) : "%ecx", "%esi", "%edi" );}
The stuff at the end on the ":" lines are where you declare your output registers, registers loaded, and your clobber list, in that order.
As I said before, I haven't programmed in DJGPP in a while (or recently done much inline asm for that matter ) so this might not be totally correct, but I hope it helps.
------------------
Where's my Golden Fleece?
[This message has been edited by Aeetes (edited December 16, 1999).]