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, 8k .COM) (Developers)

posted by Rugxulo Homepage, Usono, 14.07.2021, 01:44

> I don't see any problem with it, if you don't specify any size in such
> cases some assemblers flag this as error while others assume it to be the
> default operation size, which for 16 bit segments is word.

On Saturday, Jim Hall announced on freedos-devel the bugfixed A72 1.03a (mirrored here).

1.01 never worked. 1.02 worked but 1.03 regressed (mishandled "OUT"). 1.03a changed the size assumption for "INC [BX+Var]" from byte to word. So I want the new script to work with 1.02 on up.


--- inv-a72.bat 2020-10-21 00:33:52 -0500
+++ inv-a72.new 2021-07-04 20:35:06 -0500
@@ -8,6 +8,10 @@
 ::
+::#s/OUT *\([0-9]*h\)/db 0E6h,\1;&/
 :: s/ DD / DW 0,/
-:: / DW /{
+:: / D[BW] /{
 :: h
-:: s/^\([A-Z][^ ]*\) *DW .*/s,s_\1\\[,word[,/w fix2.sed
+:: s/^\([A-Z][^ ]*\) *D\(.\) .*/s,s_\1\\[,[\2,/
+:: s/,\[B,/,byte[,/
+:: s/,\[W,/,word[,/
+:: /,[bw]...\[,/w fix2.sed
 :: g
@@ -27,2 +31,3 @@
 :: s/Word Ptr //
+:: s/\[\(.*\)[+]BX/s_\1&/
 :: s/\([A-Z][a-zA-Z][a-zA-Z][^ ]*\)\[\([1-9]\]\)/s_\1[\1+\2/
@@ -47,3 +52,3 @@
 if exist jmpshort.sed set JMPS=-f jmpshort.sed
-%SED% -f fix1.sed %INV%|%SED% -f fix2.sed -e "s/s_.*\[/[/" %JMPS% >inv-a72.asm
+%SED% -f fix1.sed %INV% | %SED% -f fix2.sed %JMPS% >inv-a72.asm

 

Complete thread:

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