Back to the BASIC from DOS

Door gdx

Enlighted (6110)

afbeelding van gdx

10-12-2021, 11:03

Hello,

I looking for to do the same thing as the BASIC command in assembler to back to the BASIC environment from DOS1.

Is there a solution to do this?

Aangemeld of registreer om reacties te plaatsen

Van aoineko

Paladin (898)

afbeelding van aoineko

10-12-2021, 14:00

If you can find here the BASIC routine is into the command.com file in RAM, maybe you call it from your program?
(just a guess)

Van gdx

Enlighted (6110)

afbeelding van gdx

10-12-2021, 14:23

In fact, I would just like to set into BASIC environment, I don't need to run a program file in BASIC. I would like to know if there is a standard way of doing it.

I try that program below but it doesn't work well.

	ld	a,(EXPTBL)
	ld	h,40h
	call	ENASLT

	ld	a,(EXPTBL)
	ld	h,00h
	call	ENASLT

	jp	0409Bh

Van zeilemaker54

Champion (347)

afbeelding van zeilemaker54

10-12-2021, 17:53

BASENT should work:

ENASLT equ 0024H
MASTER equ 0F348H
BASENT equ 04022H

LD A,(MASTER)
LD H,40H
CALL ENASLT
JP BASENT

Van aoineko

Paladin (898)

afbeelding van aoineko

10-12-2021, 18:24

Van zeilemaker54

Champion (347)

afbeelding van zeilemaker54

10-12-2021, 20:15

unfortunately with a bad code example. The slotid of the master DOS kernel ROM should be taken from MASTER and not from the first entry of DRVINF

Van gdx

Enlighted (6110)

afbeelding van gdx

11-12-2021, 08:19

BASENT works like a charm. Thank you guys ! Smile

Van zeilemaker54

Champion (347)

afbeelding van zeilemaker54

11-12-2021, 12:22

zeilemaker54 wrote:

unfortunately with a bad code example. The slotid of the master DOS kernel ROM should be taken from MASTER and not from the first entry of DRVINF

I have updated the WIKI

Van gdx

Enlighted (6110)

afbeelding van gdx

11-12-2021, 14:14

BASENT is called STBAS (cold STart BASic) in my docs.

Van zeilemaker54

Champion (347)

afbeelding van zeilemaker54

12-12-2021, 13:50

gdx wrote:

BASENT is called STBAS (cold STart BASic) in my docs.

I am curious about the source you are using for the name of the entry. I am refering to the name being used on the msxdos kit disk.