Re: bits 32 oddities in NASM




Frank Kotler wrote:
Google glitches. :-P

Not written in asm - that's its damn problem! :)

Amen! :-)

When (if?) you sort through the replies to your original post, get back
to us with what you're trying to do. Looks like you've got one foot in
dos, and one in 32-bit... won't work unless you "take steps". - dos
extender or switch to pm yourself - and *then* dos interrupts won't work...

I was experimenting to see if I could use DOS interrupts with 32-bit
registers. I know I can do it with 16-bit registers, to some extent.
Most likely because there's some hidden emulation layer that caters to
stupid people who try to write DOS in Windows. ;-) Are interrupts real
interrputs on Windows XP? Or do they end up calling a Win32 function?

To be perfectly honest, I wanted to find a convenient way to do I/O
without resorting to the C library or the evil Win32 API. Interrupts
are simple and relatively easy to use. The C library is very simple and
easy to use, for me, but I can imagine it being somewhat bloated for an
assembly program. I *hate* the Win32 API with a well honed passion,
even for simple things, and I try to avoid it. :-)

.



Relevant Pages

  • Re: bits 32 oddities in NASM
    ... registers. ... But, since dos interrupts are 16-bit code, Nasm needs to be generating 16-bit code to operate there. ... without resorting to the C library or the evil Win32 API. ...
    (alt.lang.asm)
  • Re: Visual Assembler
    ... > Ralf Brown list of MSDOS interrupts. ... For Windows programming, you go with the WIN32 API. ... Internally, on NT, the win32 api runs ontop of the NT native API, ...
    (comp.lang.asm.x86)
  • Re: INT 16h Equivalent Calls in Windows?
    ... I'm trying to work through some exercises in an old assembler book I ... What are my options for low level calls in windows to do the keyboard ... the Win32 API *IS* the low-level interface. ... If you want to play with interrupts, you can try running Win9X or MS-DOS in ...
    (comp.lang.asm.x86)
  • Re: Coding a foolish program in masm32
    ... an exception. ... Only very early win95 OEM allowed a couple of the old ... interrupts, all later version don't. ... instruction set you can switch to the Win32 API. ...
    (alt.lang.asm)
  • Re: Run-time error 453
    ... The source code is machine code. ... Nobody ever talks about using DOS Interrupts ... Everyone talks about API. ...
    (microsoft.public.vb.general.discussion)