Back to the BASIC from DOS

By gdx

Enlighted (6437)

gdx's picture

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 or register to post comments

By aoineko

Paragon (1138)

aoineko's picture

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)

By gdx

Enlighted (6437)

gdx's picture

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

By zeilemaker54

Champion (355)

zeilemaker54's picture

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

By aoineko

Paragon (1138)

aoineko's picture

10-12-2021, 18:24

By zeilemaker54

Champion (355)

zeilemaker54's picture

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

By gdx

Enlighted (6437)

gdx's picture

11-12-2021, 08:19

BASENT works like a charm. Thank you guys ! Smile

By zeilemaker54

Champion (355)

zeilemaker54's picture

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

By gdx

Enlighted (6437)

gdx's picture

11-12-2021, 14:14

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

By zeilemaker54

Champion (355)

zeilemaker54's picture

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.