How do you do basic IO in nasm32?
Printable View
How do you do basic IO in nasm32?
Could you give me the link to NASM32?
Depends on the OS. I think NASM32 is available for both Linux and Windows.
In Linux, you can use system interrupts (similar to Dos int21h, but other interrupts).
In Windows, you gotta link to the WinDLLs. kernel32 or user32, not sure.
Or you find a NASM-compatible CRT that you can link against, then you can use gets and puts, or even printf.
It would be nice to have an assembler for Linux other than a recompiled (?) NASM-IDE assembler.
as, the GNU assembler. Has a strange syntax though, needs some getting used to.