(My) fork of 8086 Assembler for DOS (Announce)
> > - no END directive (important, since it allows "self-compiling" .BAT
> > files)
>
> What do you mean?
Here's an example, named TEST.BAT:
;echo off
;goto start
_CODE segment
org 100h
mov dx,offset string1
mov ah,9
int 21h
mov ax,4c00h
int 21h
string1 db "hello",13,10,'$'
_CODE ends
END
:start
jwasm -q -bin -Fotest.com test.bat
test.com
No problem with jwasm - to work with ASM.COM it needs a working END directive.
EDIT: it actually works with ASM.COM as well, although not perfectly:
;echo off
;asm.com test.bat
;test.com
;exit
mov dx,string1
mov ah,9
int 21h
mov ax,4c00h
int 21h
string1: db "hello",13,10,'$'
A :END label to skip the assemble code would be better, since the "exit" terminates batch processing. And one problem that remains is that the assembler cannot be told to be silent.
---
MS-DOS forever!
Complete thread:
- (My) fork of 8086 Assembler for DOS - rr, 26.12.2020, 01:01 (Announce)
- (My) fork of 8086 Assembler for DOS - DosWorld, 26.12.2020, 16:01
- (My) fork of 8086 Assembler for DOS - rr, 26.12.2020, 16:31
- (My) fork of 8086 Assembler for DOS - Japheth, 26.12.2020, 17:25
- (My) fork of 8086 Assembler for DOS - RayeR, 26.12.2020, 22:48
- (My) fork of 8086 Assembler for DOS - DosWorld, 27.12.2020, 00:03
- (My) fork of 8086 Assembler for DOS - RayeR, 27.12.2020, 03:57
- (My) fork of 8086 Assembler for DOS - DosWorld, 27.12.2020, 22:11
- (My) fork of 8086 Assembler for DOS - RayeR, 28.12.2020, 01:09
- (My) fork of 8086 Assembler for DOS - DosWorld, 28.12.2020, 14:00
- (My) fork of 8086 Assembler for DOS - RayeR, 30.12.2020, 05:18
- (My) fork of 8086 Assembler for DOS - DosWorld, 28.12.2020, 14:00
- (My) fork of 8086 Assembler for DOS - RayeR, 28.12.2020, 01:09
- (My) fork of 8086 Assembler for DOS - DosWorld, 27.12.2020, 22:11
- (My) fork of 8086 Assembler for DOS - rr, 27.12.2020, 08:49
- (My) fork of 8086 Assembler for DOS - marcov, 29.12.2020, 19:14
- (My) fork of 8086 Assembler for DOS - RayeR, 27.12.2020, 03:57
- (My) fork of 8086 Assembler for DOS - DosWorld, 27.12.2020, 00:03
- (My) fork of 8086 Assembler for DOS - Japheth, 26.12.2020, 17:18
- (My) fork of 8086 Assembler for DOS - rr, 26.12.2020, 17:33
- (My) fork of 8086 Assembler for DOS - Japheth, 26.12.2020, 18:14
- (My) fork of 8086 Assembler for DOS - rr, 26.12.2020, 23:26
- (My) fork of 8086 Assembler for DOS - Japheth, 26.12.2020, 18:14
- (My) fork of 8086 Assembler for DOS - rr, 26.12.2020, 23:22
- (My) fork of 8086 Assembler for DOS - rr, 27.12.2020, 13:22
- (My) fork of 8086 Assembler for DOS - rr, 26.12.2020, 17:33
- ASM's symbol handling needs work - Japheth, 26.12.2020, 19:18
- ASM's symbol handling needs work - rr, 26.12.2020, 19:23
- ASM's symbol handling needs work - rr, 26.12.2020, 23:22
- (My) fork of 8086 Assembler for DOS - rr, 27.12.2020, 01:05
- (My) fork of 8086 Assembler for DOS - rr, 29.12.2020, 01:55
- (My) fork of 8086 Assembler for DOS - rr, 02.03.2022, 21:54
- (My) fork of 8086 Assembler for DOS - DosWorld, 26.12.2020, 16:01