In article <[EMAIL PROTECTED]>, Aaron Hsu wrote:
> 
>  I am attempting to create an assembly program (for a class) on
>  OpenBSD. The teacher has no issue with me developing the code based
>  on the UNIX-based assembly (int 0x80 syscalls vs. int 0x21 Dos
>  Function), but he does not want me to use 32-bit code. I believe this
>  has something to do with him wanting me to use a "Real-addressing
>  Mode" as opposed to the 32-bit protected mode. I'm doing x86
>  assembly.

One thing your teacher may not know is that x86 assembly includes the
32-bit environment, and (now) also a 64-bit environment.  However, running
16-bit code under OpenBSD i386 is going to be somewhat difficult.  We don't
bother supplying 16-bit services, and only consume 16-bit services (from the
bios) for a few things necessary.  It is hard, and somewhat error prone.

I would recomment you run bochs and/or qemu with a freedos installation or
somesuch.  You can still use OpenBSD as your development platform, but your
code would be run inside a 16-bit (to start with) environment.  The other
nice thing is that you'd have an "ICE" like debugger for your code, which
can be very handy in debugging what is going wrong.

Good luck,

--Toby.

Reply via email to