• Please review our updated Terms and Rules here

CP/M 86 - Command line Rebooting?

natcha

Experienced Member
Joined
Jun 16, 2011
Messages
196
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
 
Untested, but try assembling this:
Code:
        mov     cl, 0Dh
        int     0E0h
        db      0EAh      ;Far jump to FFFF:0000.
        dw      00h
        dw      0FFFFh

        end
(To cross-assemble under DOS:)
Code:
RASM86 reboot
LINKCMD reboot
 
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
 
Back
Top