Re: newbie: I/O with nasm




TK wrote:
Hi,

how can I do simple I/O with nasm? For example: I want to read a string
from the commandline. Please keep it simple;-).

Thanks for help.

Link your NASM code with the various HLA standard library routines.
Lots of great I/O code in there. And yep, it is assembly (as opposed to
C, which carries around more run-time overhead and requirements).
You can find the HLA stdlib at http://webster.cs.ucr.edu.
A special set of NASM header files are available at
http://webster.cs.ucr.edu/AsmTools/NASM/index.html
but I would warn you that these are incomplete and haven't been updated
in a while.

Documentation for the standard library can be found at
http://webster.cs.ucr.edu/AsmTools/HLA/index.html

Cheers,
Randy Hyde

.



Relevant Pages

  • Re: thanks for the response to the post below
    ... But I don't see any nasm code but there's code ... for ML and A86 assembler source and C. ... The Linux version looks like ald, with some Nasm code linked into it to do the assembly. ... I've seen another "debug" for Linux, this one written in Nasm. ...
    (comp.lang.asm.x86)
  • Re: C to NASM - lnkflat problem
    ... >> error linking file x.bin ... >> Apparently, it doesn't recognize printf. ... Generally I want to obtain NASM code from C. ... Or mayby there is some C compiler that produces NASM code? ...
    (comp.lang.asm.x86)
  • Re: C to NASM - lnkflat problem
    ... I haven't used lnkflat, but since lnkflat uses ... Generally I want to obtain NASM code from C. ... Without disassembling the ... Or mayby there is some C compiler that produces NASM code? ...
    (comp.lang.c)
  • Re: Slow nasm
    ... above is a topic to nasm code about extracting exporting functions ... from a dll. ... Is nasm so slow or still there are some bugs? ... Could you please file a bug report at the Sourceforge tracker and include your sources, ...
    (alt.lang.asm)
  • Re: Difference between Call and Callback ???
    ... > I try use the Windows API SetTimer to call a OnTimer routine in NASM. ... > some nasm code ...
    (comp.lang.asm.x86)