Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

R. Swan's A72 assembler (8086, self-assembling, 11k .COM) (Developers)

posted by Rugxulo Homepage, Usono, 04.11.2020, 02:40

> > NASM, since 2.15, has "%use masm" for some extra compatibility now.
>
> Macros, weird pseudo-ops (.RADIX, COMMENT, .XLIST, etc.), SEGMENT
> directives, you name it. nasm's masm.mac package --- yes, I just tried it
> --- is pretty minimal, and the documentation admits as much.

It's built in, you don't need a separate "masm.mac" file at all, AFAIK. It does help a fair bit, but yeah, there's still many things it doesn't do (even fairly simple things). I had thought it now had support for displacements like "Blah[4]" and "Whatever[BX+2]", but rechecking yesterday implies no. So that's unfortunate, but it's not the end of the world.

Devore's NOMYSO (Perl) script (MASM/TASM to NASM) handles a few of these things (implicit sizes, weird displacements) but no "Assume" seg overrides. I did test it a bit in DOS with the old 2007 DJGPP port, and it mostly works.

I also wrote a very ugly and flawed AWK script to do most of that for me. I need to improve and rewrite it for various reasons, but it does (mostly) work. (Already done similarly in Sed, which is more limited but easier.)

It's a delicate balance, trying to be generally useful, portable, elegant, and efficient (fast without huge RAM or disk footprint or dependencies). Getting it to minimally work is only half the battle.

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 244 users online (0 registered, 244 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum