MykeLawson
Veteran Member
- Joined
- Mar 20, 2014
- Messages
- 576
I am in the process of trying to write a program that will need to have CP/M write files to the disk and read files from the disk, all while never leaving my program. Enter BDOS calls. I have been, and still are, reading up as much as I can on how to do this, but I am open to any real like knowledge and experience. Here is an example of what I envision happening is the 'write' portion of this:
1. my program reads the incoming data from a serial port and starts storing it locally at address 0100h.
2, once all the data has been retrieved, my program will internally issue the correct BDOS calls, in the correct order, so CP/M can perform the actual disk I/O.
3. once CP/M has written the file to disk, my program continues to operate where it left off.
The opposite would occur when reading a file off the disk and sending out the serial port.
BTW, my program will operate from as high up in memory as I can stick it without banging into the CCP. The system is a Z-80, 64K, running CP/M 2.2. So, if anyone has any first hand knowledge or experience in doing this, I'd really be grateful.
1. my program reads the incoming data from a serial port and starts storing it locally at address 0100h.
2, once all the data has been retrieved, my program will internally issue the correct BDOS calls, in the correct order, so CP/M can perform the actual disk I/O.
3. once CP/M has written the file to disk, my program continues to operate where it left off.
The opposite would occur when reading a file off the disk and sending out the serial port.
BTW, my program will operate from as high up in memory as I can stick it without banging into the CCP. The system is a Z-80, 64K, running CP/M 2.2. So, if anyone has any first hand knowledge or experience in doing this, I'd really be grateful.