Re: NASM 0.98.39 vs. NASM 2.03.01 disassembly



On Aug 23, 4:05 pm, Herbert Kleebauer <k...@xxxxxxxxx> wrote:

I would like to see a text pre-processing subsystem (completely
independent from the macro subsystem) which is called by NASM
with each source code line read. This subsystem then can modify
or replace the original source code line and then give it back to
NASM for normal processing (including macro expansion). This
pre-processing sub system must be programmable, so maybe the best
would be to include an already existing GPLed BASIC or FORTH
interpreter. An other way would be to implement a simple virtual
machine (a few instructions, 64k code, data and stack should be
enough so only a few lines of C code should be necessary to implement
it).

I nominate the public domain HLABasic2 to fill this task:

http://hlaex.svn.sourceforge.net/viewvc/hlaex/generic/HLABasic2/


With such a pre-processing sub system any NASM user can easily define
his preferred syntax (by loading the appropriate program for the
interpreter from the assembly source code file or an include file).
On the other side, this could lead to completely different looking
NASM source code files. NASM can compile them all, but no NASM
user will be able to easily read or understand a NASM source
written by somebody else.

An ideal goal! :)

Nathan.
.



Relevant Pages

  • Re: What Assembly Language Should I Use?
    ... (contributing open source code to an open source project would be a *really* weird way to go about it!) ... he would fail. ... he is trying to make NASM *his* thing as ... the licence didn't mention source code at all. ...
    (alt.lang.asm)
  • Re: Beginner question: Program to write Assembly in
    ... but apparently the source code would need to change somewhat to ... I've had a little experience translating A86 to Nasm, and might be able to help with any "problem lines", if you should decide to go that route. ... If you intend that source code will be distributed with the project when it's done, it *might* be worth translating to a more "popular" assembler. ... Pretty nearly any text editor should do - doesn't have to be the same as your friend is using. ...
    (comp.lang.asm.x86)
  • Re: Why is my nasm program killing itself?
    ... Nasm is like a sewer, Phil - what you get out of it depends on what you put in. ... If you pour source code suitable for a dos .com file into Nasm, you'll get a dos .com file out. ... orig equ $08048000 ... mov byte,49;working once ...
    (alt.lang.asm)
  • Re: NASM 0.98.39 vs. NASM 2.03.01 disassembly
    ... more powerful macro system. ... I'm not a NASM user and therefore surely not in position to make ... or replace the original source code line and then give it back to ... With such a pre-processing sub system any NASM user can easily define ...
    (alt.lang.asm)
  • Re: new public domain code available
    ... CII wrote: ... FIBO.ASM but I haven't because I don't have NASM and I don't have that much time to convert it.. ... it's asking a bit much to expect him to send you the binary, when he has already generously provided the source code. ... I don't think your request is unreasonable but I have an alternative solution you might like better. ...
    (comp.lang.asm.x86)