Mail Archives: djgpp/1996/10/08/13:18:19
norsk AT interlink DOT no (Kim Robert Blix) wrote:
>Hi there.. I've just started to use djgpp. (Made hello world yesterday, and
>it was only 80kb hehe.)
Heh =) Try compiling with the -s option to make it smaller.
>And I've encountered a problem..
>Why doesnt this work?:
>asm(" movw $13,%ax
> int $10
> ");
You must mean,
__asm__ __volatile__("
movw $0x13, %ax\n
int $0x10"
: : : "ax"
);
A "safer" version:
__dpmi_regs r;
r.x.ax = 0x0013;
__dpmi_int( 0x10, &r );
>Thank you in advance.
>Kim Robert Blix.
Cheers,
An
http://remus.rutgers.edu/~avly/djgpp.html
- Raw text -