Bryce Denney wrote:
> 
> There is a macro in rombios.c called HALT which is supposed to write a
> pointer to a message out to a magical panic port 0x400.  However, because
> of the way the macro is written it is not working as intended.  Here is
> the macro definition:
> 
> #define PANIC_PORT 0x400
> #define HALT(line) mov dx,PANIC_PORT; mov ax,line; out dx,ax; hlt
> 
> This looks great to a C programmer because we assume that ";" is a command
> separator.  However to as86, the first semicolon means that every else on
> the line is a comment.  So you end up with only the mov dx,0x400!


Use the !!! operator.  There's some other macros in rombios.c that
use this for reference.  The tools86 program deals with this.


-Kevin

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Kevin Lawton                        [EMAIL PROTECTED]
MandrakeSoft, Inc.                  Plex86 developer
http://www.linux-mandrake.com/      http://www.plex86.org/

Reply via email to