Back to the BASIC from DOS

Por gdx

Enlighted (5576)

Imagen del 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 sesión o register para postear comentarios

Por aoineko

Champion (474)

Imagen del 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)

Por gdx

Enlighted (5576)

Imagen del 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

Por zeilemaker54

Champion (342)

Imagen del 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

Por aoineko

Champion (474)

Imagen del aoineko

10-12-2021, 18:24

Por zeilemaker54

Champion (342)

Imagen del 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

Por gdx

Enlighted (5576)

Imagen del gdx

11-12-2021, 08:19

BASENT works like a charm. Thank you guys ! Smile

Por zeilemaker54

Champion (342)

Imagen del 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

Por gdx

Enlighted (5576)

Imagen del gdx

11-12-2021, 14:14

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

Por zeilemaker54

Champion (342)

Imagen del 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.