R. Swan's A72 assembler (8086, self-assembling, 8k .COM) (Developers)
> 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:
- R. Swan's A72 assembler (8086, self-assembling, 11k .COM) - Rugxulo, 19.10.2020, 16:22 (Developers)
- R. Swan's A72 assembler (8086, self-assembling, 11k .COM) - tkchia, 19.10.2020, 19:12
- R. Swan's A72 assembler (8086, self-assembling, 11k .COM) - DosWorld, 21.10.2020, 13:58
- R. Swan's A72 assembler (8086, self-assembling, 11k .COM) - Rugxulo, 23.10.2020, 16:47
- R. Swan's A72 assembler (8086, self-assembling, 11k .COM) - marcov, 24.10.2020, 01:01
- R. Swan's A72 assembler (8086, self-assembling, 11k .COM) - Rugxulo, 23.10.2020, 16:47
- R. Swan's A72 assembler (8086, self-assembling, 11k .COM) - Rugxulo, 03.11.2020, 00:06
- R. Swan's A72 assembler (8086, self-assembling, 11k .COM) - tkchia, 03.11.2020, 11:21
- R. Swan's A72 assembler (8086, self-assembling, 11k .COM) - Rugxulo, 04.11.2020, 02:40
- R. Swan's A72 assembler (8086, self-assembling, 11k .COM) - kerravon, 03.07.2021, 12:59
- targeting MASM and NASM - Rugxulo, 03.07.2021, 20:18
- R. Swan's A72 assembler (8086, self-assembling, 11k .COM) - tkchia, 03.07.2021, 22:36
- R. Swan's A72 assembler (8086, self-assembling, 11k .COM) - kerravon, 04.07.2021, 01:25
- R. Swan's A72 assembler (8086, self-assembling, 11k .COM) - Rugxulo, 04.07.2021, 04:12
- R. Swan's A72 assembler (8086, self-assembling, 11k .COM) - kerravon, 04.07.2021, 05:16
- R. Swan's A72 assembler (8086, self-assembling, 11k .COM) - Rugxulo, 04.07.2021, 06:46
- R. Swan's A72 assembler (8086, self-assembling, 11k .COM) - kerravon, 04.07.2021, 06:58
- R. Swan's A72 assembler (8086, self-assembling, 11k .COM) - Rugxulo, 04.07.2021, 06:46
- R. Swan's A72 assembler (8086, self-assembling, 11k .COM) - kerravon, 04.07.2021, 05:16
- R. Swan's A72 assembler (8086, self-assembling, 11k .COM) - tkchia, 04.07.2021, 09:36
- R. Swan's A72 assembler (8086, self-assembling, 11k .COM) - kerravon, 04.07.2021, 09:53
- R. Swan's A72 assembler (8086, self-assembling, 11k .COM) - tkchia, 04.07.2021, 11:10
- R. Swan's A72 assembler (8086, self-assembling, 11k .COM) - kerravon, 04.07.2021, 12:08
- R. Swan's A72 assembler (8086, self-assembling, 11k .COM) - tkchia, 04.07.2021, 11:10
- R. Swan's A72 assembler (8086, self-assembling, 11k .COM) - kerravon, 04.07.2021, 09:53
- R. Swan's A72 assembler (8086, self-assembling, 11k .COM) - Rugxulo, 04.07.2021, 04:12
- R. Swan's A72 assembler (8086, self-assembling, 11k .COM) - kerravon, 04.07.2021, 01:25
- R. Swan's A72 assembler (8086, self-assembling, 11k .COM) - kerravon, 03.07.2021, 12:59
- R. Swan's A72 assembler (8086, self-assembling, 11k .COM) - Rugxulo, 04.11.2020, 02:40
- R. Swan's A72 assembler (8086, self-assembling, 11k .COM) - tkchia, 03.11.2020, 11:21
- R. Swan's A72 assembler (8086, self-assembling, 11k .COM) - DosWorld, 21.10.2020, 13:58
- R. Swan's A72 assembler (8086, self-assembling, 8k .COM) - Rugxulo, 26.05.2021, 01:58
- R. Swan's A72 assembler (8086, self-assembling, 8k .COM) - Khusraw, 03.07.2021, 11:44
- R. Swan's A72 assembler (8086, self-assembling, 8k .COM) - Rugxulo, 04.07.2021, 03:56
- R. Swan's A72 assembler (8086, self-assembling, 8k .COM) - Khusraw, 04.07.2021, 07:55
- R. Swan's A72 assembler (8086, self-assembling, 8k .COM) - Rugxulo, 14.07.2021, 01:44
- R. Swan's A72 assembler (8086, self-assembling, 8k .COM) - Khusraw, 04.07.2021, 07:55
- R. Swan's A72 assembler (8086, self-assembling, 8k .COM) - Rugxulo, 04.07.2021, 03:56
- R. Swan's A72 assembler (8086, self-assembling, 8k .COM) - Khusraw, 03.07.2021, 11:44
- R. Swan's A72 assembler 1.04 (self-assembling, 8k .COM) - Rugxulo, 26.03.2022, 20:20
- R. Swan's A72 assembler 1.05 (self-assembling, 8k .COM) - Rugxulo, 20.11.2023, 10:44
- R. Swan's A72 assembler (8086, self-assembling, 11k .COM) - tkchia, 19.10.2020, 19:12