Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

JWasm v1.8pre | killing good MASM now ??? (Announce)

posted by Japheth Homepage, Germany (South), 19.06.2008, 10:02

> > > Can it compile RX-DOS ?
> > I don't know. Is this of any relevance?
>
> YES.
>
> 1. DOS kernel
> 2. In ASM
> 3. GNU GPL (more free than "evil" EDR-DOS)
> 4. LFN support in the kernel (?) - less bad than DOSLFN ?

The source is "almost" compatible. The main problem is that the "." operator is used as an alias for "+". This can be cured by replacing the following strings in all ASM files:

  ". _low"     -> "+ _low"
  ". _high"    -> "+ _high"
  ". _pointer" -> "+ _pointer"
  ". _segment" -> "+ _segment"
  ". _AL"      -> "+ _AL"
  ". _DL"      -> "+ _DL"


this eliminates about 98% of the errors. Another 1.5% is eliminated by changing GoTo to @GoTo (GOTO has become a reserved word in Masm v6).

The small rest are trivial things (sometimes the space is missing between "." and _low/_high, once a STRUCT is defined "too late" and must be moved) which are easy to fix.

A brief test of the newly generated rxdoscmd.exe was successful.


> What do you use then PO ? LD ? Still M ? Thus the
> "unreasonably-many-exports-bug" is independent of source format and makes
> it unusable for the DLL's ? Any idea / suspect what is the reason of the
> bug ? An overflow is trivial to fix - after having found it :-|

It's not a bug. The problem with WLink is that it wants the decorated name for exports. And I'm not in the mood to calculate the @size prefix for about 1.000 functions and add it to the wlink response file (although, I vaguely remember a tool LIB2DEF which creates .DEF files from import libs and might be used for this task). Currently PoLink/MS link is still used.

> Thus this option is experimental / incomplete for now ?

It's incomplete, and it's documented that it's incomplete. RTFM! :-D

---
MS-DOS forever!

 

Complete thread:

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