Re: newbie questions




"Carlos" <carlos@xxxxxxxxx> wrote in message
news:f1b3ni$eqv$1@xxxxxxxxxxxxxxxxxxxxxxx
It's very hard for me to code in asm, because every sample code, even t
he
smallest, dont work for me;) eg:
i want to use 4eh and 4fh functions to find files and compiler throws
error
in:

Download NASM and start with a simple "Hello World" program. I
suppose such a simple DOS demo is included in the NASM package.
If this works, you can add more complicated code. If you have
a problem compiling the NASM source, Frank surely can help you.

Ok I'll try to use NASM.
But what with this "error A2022: instruction operands must be the same
size" whats wrong here?

you are trying to assemble is as 32-bit code.

so it is, your code is valid, for dos, or dos emulation.
it is not valid, for native 32-bit code.

decide your path.

dos code will simply not work right in 32 bit mode, you would need to find
new example apps...

(or stick to something like C or C++...).





.



Relevant Pages

  • Re: New to Debian Linux - I have NASM experience under DOS 6.22
    ... > simple NASM program under Linux. ... > whether there is a more official or reliable way to make a NASM ... Windows automatically including the "current directory" in the ... directory" is NOT part of that PATH as it is with DOS... ...
    (alt.lang.asm)
  • Re: Best way to Assemble an 8086 PC-BIOS
    ... I'm not familiar with ASM86, but from a quick search it looks like MASM to ... NASM and MASM should run fine in Windows. ... NASM also works in DOS. ...
    (comp.os.msdos.programmer)
  • Re: Linker strangeness
    ... but it didn't execute correctly. ... > DOS, but not under windows. ... package, used separate full MASM package, v5.xx or v6.xx, v6.11 is the ... binary (NASM is able to do this w/o external linker) and then include it ...
    (alt.lang.asm)
  • Re: Just learning...
    ... I *was* running win98, when I was running Windows, but a week or so ago, it decided not to boot. ... Which build of Nasm 0.98.39 did you get? ... The Windows build won't work with NasmIde - claims to have assembled with no errors, but Nasm doesn't even run. ... I mostly used the djgpp (32-bit dos) build. ...
    (comp.lang.asm.x86)
  • build NASM on DOS (was: Re: Odd problem with int 0x21, ah = 0x4A)
    ... Did my patch for building NASM under MSDOS ever get accepted into main ... needed renaming to fit within the 8.3 filename format mandated by DOS. ... So, if they ever did let it compile in pure DOS previously, I'm ... On another more encouraging note, they did fix it where the ...
    (comp.lang.asm.x86)