GW-BASIC icon indicating copy to clipboard operation
GW-BASIC copied to clipboard

Assembly unmodified sources.

Open dmsc opened this issue 5 years ago • 6 comments

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.

dmsc avatar May 23 '20 20:05 dmsc

I like both your emulator and the idea of assembling unmodified sources with a shell script!

dspinellis avatar May 23 '20 20:05 dspinellis

Thanks!

Sadly, somehow the missing symbols need to be reconstructed, specially at startup "GWINI" and "DONOTE" are called.

dmsc avatar May 23 '20 21:05 dmsc

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

dmsc avatar May 23 '20 22:05 dmsc

Adding this to OEM.ASM prints out:

L
P
T
1
:
"

dspinellis avatar May 29 '20 17:05 dspinellis

Hello @dspinellis,

The sequence ,"LPT1:"↵ will be the macro text for the F6 function key.

Thank you!

tkchia avatar May 29 '20 17:05 tkchia

Hi!

Adding this to OEM.ASM prints 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!

dmsc avatar May 29 '20 23:05 dmsc