Back to the BASIC from DOS

Par gdx

Enlighted (6429)

Portrait de 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?

!login ou Inscrivez-vous pour poster

Par aoineko

Paragon (1136)

Portrait de 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)

Par gdx

Enlighted (6429)

Portrait de 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

Par zeilemaker54

Champion (355)

Portrait de 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

Par aoineko

Paragon (1136)

Portrait de aoineko

10-12-2021, 18:24

Par zeilemaker54

Champion (355)

Portrait de 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

Par gdx

Enlighted (6429)

Portrait de gdx

11-12-2021, 08:19

BASENT works like a charm. Thank you guys ! Smile

Par zeilemaker54

Champion (355)

Portrait de 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

Par gdx

Enlighted (6429)

Portrait de gdx

11-12-2021, 14:14

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

Par zeilemaker54

Champion (355)

Portrait de 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.