www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/07/21:55:29

Message-Id: <1.5.4.32.19961008013613.0070b3f8@mail.interlog.com>
Mime-Version: 1.0
Date: Mon, 07 Oct 1996 21:36:13 -0400
To: djgpp AT delorie DOT com
From: Farhan Yousaf <farhany AT interlog DOT com>
Subject: The first problem (a horror series in 10 parts)
Cc: norsk AT interlink DOT no

Dear Kim,

>Why doesnt this work?:
>asm(" movw $13,%ax
>      int $10
>    ");

Simple solution: You forgot to put the 0x before the numerics there. E. g.: 

asm("movw $0x13, %ax\n
     int  $0x10\n");

Have fun with the AT&T syntax!
--
Farhan Yousaf    "We were never feeling bored         <farhany AT interlog DOT com>
PSBFreak          because we were never being boring."   <ca337 AT torfree DOT net>
PSB, Hit Music:   http://www.interlog.com/~farhany/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019