GW-BASIC
GW-BASIC copied to clipboard
Assembly unmodified sources.
Hi!
See this script: https://gist.github.com/dmsc/f67605500431ab22fdb6ced05d01c629
It assembles with minimal source modifications by using older MASM versions in my EMU2 emulator.
Well, it still is missing the same 63 symbols.
I like both your emulator and the idea of assembling unmodified sources with a shell script!
Thanks!
Sadly, somehow the missing symbols need to be reconstructed, specially at startup "GWINI" and "DONOTE" are called.
Adding this to a new file at least prints the copyright message:
CSEG SEGMENT PUBLIC 'CODESG'
ASSUME CS:CSEG
DSEG SEGMENT PUBLIC 'DATASG'
ASSUME DS:DSEG
DSEG ENDS
PUBLIC GWINI
GWINI: RET
PUBLIC DONOTE
DONOTE: RET
PUBLIC CSRDSP
CSRDSP: PUSH CX
MOV CX, 0707H
CMP AL, 0
JNZ HIDE
MOV CX, 2000H
HIDE: MOV AH, 1
INT 10H
POP CX
RET
PUBLIC SCROUT
SCROUT: PUSH BX
PUSH AX
MOV BH, 0
MOV AH, 2
INT 10H
POP AX
PUSH AX
MOV BH, 0
MOV AH, 0EH
INT 10H
POP AX
POP BX
RET
CSEG ENDS
END
Adding this to OEM.ASM prints out:
L
P
T
1
:
"
Hello @dspinellis,
The sequence ,"LPT1:"↵ will be the macro text for the F6 function key.
Thank you!
Hi!
Adding this to
OEM.ASMprints out:L P T 1 : "
Yes, that code was missing a lot of needed initialization, the code at @tkchia repo has a lot more implemented.
Have Fun!