how to exit without reloading CCP?

Post Reply
nippur72
New member
Posts: 9
Joined: Sat Sep 29, 2018 4:47 pm

how to exit without reloading CCP?

Post by nippur72 »

is there a way to exit from a compiled program without forcing the reload of the CCP ?

As far as I know, small .COM files can simply "RET" to return to prompt, assuming that the CCP memory area hasn't been overwritten.
User avatar
dom
Well known member
Posts: 1194
Joined: Sun Jul 15, 2007 10:01 pm

Re: how to exit without reloading CCP?

Post by dom »

At the moment, the classic CP/M target issues a jp 0 at the end of execution.

However, if you edit lib/target/cpm/classic/cpm_crt0.asm you can change it to do whatever you like. If changing it to a ret works, then I'll add an option to allow it to be chosen at compile time.
Post Reply