PDA

View Full Version : CP/M 86 - Command line Rebooting?



natcha
June 30th, 2013, 03:16 PM
I have installed CPM-86 on Flash Card in an Omnibook 600C. I have a MSDOS partition and a CP/M partition on the hard drive. I would like an easy way to toggle between the two systems. On the MSDOS side, I have created a CPM.BAT Batch file that has the following commands and it work great:

setboot 4
reboot

On the CP/M side, I have a SETBOOT.CMD that lets me toggle the boot partition.

What's missing is a REBOOT.CMD command - if I had that then I could create a single command to boot back to msdos.

I've searched the web, but no luck. Soes anyone have any suggestions? I guess I could do an assemble program that would do a reboot - but I'm not much good with assembly.

Thanks,

Bill
Smithville, NJ

JohnElliott
June 30th, 2013, 03:59 PM
Untested, but try assembling this:


mov cl, 0Dh
int 0E0h
db 0EAh ;Far jump to FFFF:0000.
dw 00h
dw 0FFFFh

end

(To cross-assemble under DOS:)


RASM86 reboot
LINKCMD reboot

natcha
July 1st, 2013, 06:02 AM
John,

I have Turbo Pascal installed on the CP/M-86 - I'll try your code as an in-line routine and see what happens.

Thanks,

Bill
Smithville, NJ