• Please review our updated Terms and Rules here

Calling ROM BASIC from DOS 2.1?

lyonadmiral

Veteran Member
Joined
Jun 3, 2009
Messages
2,431
Location
Peru, New York
I know you use the debugger, but I'm not familiar with the debug syntax. What is the command to call ROM BASIC? I thought int 18th, but I'm obviously wrong. :confused:

Thanks,
Dan
 
That is correct, but you can't enter an INT directly into DEBUG's command prompt. You have to write it as a small assembly language routine and then run it. From memory, here's how the DEBUG session would go:

a 100 (to start the assembler)
int 18
<CR> (hit Enter to return to DEBUG prompt)
g=100 (to run the assembler code you just entered)

Doing this on a PC without BASIC in ROM would cause a boot failure error, the same as you get when you attempt to boot from a hard drive which has been partitioned but not formatted yet.
 
as mentioned, interrupt 18h will kick off ROM BASIC. it's entry point is actually F600:0000 and it takes up the 32 KB immediately below the 8 KB of BIOS ROM code.
 
Back
Top