Image Map Image Map
Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 41

Thread: Autoexec.bat for cpm?

  1. #21
    Join Date
    Jun 2014
    Location
    Salt Lake City, Utah
    Posts
    490
    Blog Entries
    1

    Default

    Cool! Will grab it and test it out tomorrow.

    Len
    Spread the joy of Vintage Addiction

    -->www.chronworks.com/<--->www.i8008.net/<--

  2. #22
    Join Date
    Jun 2014
    Location
    Salt Lake City, Utah
    Posts
    490
    Blog Entries
    1

    Default

    Ok, I'm working through the process and am on the system. The transient apps don't include getsys, putsys, movcpm, and sysgen. Grant did provide a version of putsys that is used before cpm is up and running. I assume that I can assemble that to a com file. I assume that getsys is the "reverse" of putsys and can be created from the template in the 2.2 manual.

    Are movcpm and sysgen system independant and rely on get/putsys? Where do I find those binaries, or asm files?

    len


    len
    Spread the joy of Vintage Addiction

    -->www.chronworks.com/<--->www.i8008.net/<--

  3. #23

    Default

    SYSGEN and MOVCPM are the standard commands outlined by DRI, provided with the 8" SDSS floppy version of CP/M, but for any other type of disk they need to be customized. I'm not sure about Grant's utilities, but "PUTSYS" is usually the equivalent of the SYSGEN with the "from memory, to disk" option. I don't know enough about Grant's system, but depending on how PUTSYS was written it might compile into a working COM file. But you still need to give the system image to PUTSYS somehow.

  4. #24

    Default

    Quote Originally Posted by 8008guy View Post
    Ok, I'm working through the process and am on the system. The transient apps don't include getsys, putsys, movcpm, and sysgen. Grant did provide a version of putsys that is used before cpm is up and running. I assume that I can assemble that to a com file. I assume that getsys is the "reverse" of putsys and can be created from the template in the 2.2 manual.

    Are movcpm and sysgen system independant and rely on get/putsys? Where do I find those binaries, or asm files?

    len


    len
    I took a quick look at PUTSYS, there isn't much there. it is standalone and so does not call CP/M at all. You probably can't return to CP/M after running it. It looks like all it does is write the contents of memory from 0D000H through 0FFFFH onto the first sectors of the disk (CF card). So, you must get CP/M loaded into memory first. The HEX files all specify addresses, so if there is a load function (in the ROM) that will put each HEX file into it's specified address in memory, then you should be able to load the three CP/M HEX files (CCP, BDOS, BIOS), then load PUTSYS and run it. But I'm guessing here - someone that's actually done it would be better to answer.

  5. #25
    Join Date
    Jun 2014
    Location
    Salt Lake City, Utah
    Posts
    490
    Blog Entries
    1

    Default

    i'm going to set up an emulator. There are a few of things thngs I need to get working first. I don't think Grant expected anyone to modify the cpm install.
    Spread the joy of Vintage Addiction

    -->www.chronworks.com/<--->www.i8008.net/<--

  6. #26

    Default

    I think the PUTSYS method is just how Grant did modifications to the CP/M install. I'm not sure if you are using all of his code, but his monitor ROM code will automatically download (load into memory) any HEX files that are pasted to the console serial port. Assuming you have some sort of terminal emulator window open on the main serial port, and you see the '>' monitor prompt, you should be able to just paste the HEX files into that window one by one. How you get each one into your clipboard will depend on what OS you are running on your host computer. So, I think the procedure is (order is significant!):

    1) start Z80 and get monitor prompt ">"
    2) copy CPM22.HEX to the clipboard, paste into Z80 terminal window
    3) copy CBIOSxxx.HEX to the clipboard, paste into Z80 terminal window
    4) copy PUTSYS.HEX to the clipboard, paste into Z80 terminal window
    5) enter monitor command "G5000" to run PUTSYS

    Hopefully, someone familiar with Grant's code can confirm this.

  7. #27
    Join Date
    Jun 2014
    Location
    Salt Lake City, Utah
    Posts
    490
    Blog Entries
    1

    Default

    Quote Originally Posted by durgadas311 View Post
    I think the PUTSYS method is just how Grant did modifications to the CP/M install. I'm not sure if you are using all of his code, but his monitor ROM code will automatically download (load into memory) any HEX files that are pasted to the console serial port. Assuming you have some sort of terminal emulator window open on the main serial port, and you see the '>' monitor prompt, you should be able to just paste the HEX files into that window one by one. How you get each one into your clipboard will depend on what OS you are running on your host computer. So, I think the procedure is (order is significant!):

    1) start Z80 and get monitor prompt ">"
    2) copy CPM22.HEX to the clipboard, paste into Z80 terminal window
    3) copy CBIOSxxx.HEX to the clipboard, paste into Z80 terminal window
    4) copy PUTSYS.HEX to the clipboard, paste into Z80 terminal window
    5) enter monitor command "G5000" to run PUTSYS

    Hopefully, someone familiar with Grant's code can confirm this.
    I will still need to modify the input buffer for the ccp, right?

    Tonight I tried running movcpm, I got a copy from the ver 2.2 cpm of the z80pack, and it hung. I used ddt to remove the serialization checks, no luck either.

    I did email Grant to see if he can help with the utilities.

    Len
    Spread the joy of Vintage Addiction

    -->www.chronworks.com/<--->www.i8008.net/<--

  8. #28
    Join Date
    Jun 2014
    Location
    Salt Lake City, Utah
    Posts
    490
    Blog Entries
    1

    Default

    Arggg.... Rewatching Mikes video on using ddt I now realize I probably didn't patch movcmp to ignore the serial check. I just changed it in memory.

    So can I assume that when I load and modify a file in memory the I have to exit to cpm. Go0. Then I have to do a save command to get it back to disk?

    Len
    Spread the joy of Vintage Addiction

    -->www.chronworks.com/<--->www.i8008.net/<--

  9. #29

    Default

    Quote Originally Posted by 8008guy View Post
    I will still need to modify the input buffer for the ccp, right?

    Tonight I tried running movcpm, I got a copy from the ver 2.2 cpm of the z80pack, and it hung. I used ddt to remove the serialization checks, no luck either.

    I did email Grant to see if he can help with the utilities.

    Len
    The problem with MOVCPM is that the image of CP/M 2.2 is actually embedded in MOVCPM. So by taking MOVCPM from z80pack you got the wrong BIOS and probably the wrong load addresses. Grant's CP/M is not setup for MOVCPM, as far as I can tell.

    So, stepping back a bit, it looks like Grant's CP/M is not setup to use MOVCPM or SYSGEN (since neither is provided). It looks like there is really only one direction for the "sysgen" process: from HEX file to PUTSYS to CF card. Given that, it seems the two methods for patching the CCP is to either patch the boot sectors of the CF card directly, or to patch the HEX file CPM22.HEX before you "sysgen" that onto the CF card. Note that I'm using lower-case "sysgen process" rather than upper-case SYSGEN command.

    Patching a HEX file is not really practical, and there appear to be no tools to reconstruct CPM22.HEX from a binary format. DDT will load HEX files, but I don't see any way to write/save that out to a HEX file.

    There also does not exist a program to patch the CF card directly, either. I could figure out a way using Linux tools, but you'd have to plug the CF card into your host computer.

    I haven't looked at the URL(s) talked about earlier, for that program to stuff a command into the CCP boot sectors, to see if it might work in this environment. I guess that's the next step. I also wrote a "disk patch" program that I used for such things, but would have to dust that off and convert it to whatever terminal type your terminal emulator runs... Actually, I could probably write a simple program to put a command into the CCP on the CF card for you, that would probably be easier than a general-purpose disk patch utility.

  10. #30
    Join Date
    Jun 2014
    Location
    Salt Lake City, Utah
    Posts
    490
    Blog Entries
    1

    Default

    Ok, got you. I'll play around with this a bit now that I better understand what is happening.

    Thanks

    Len
    Spread the joy of Vintage Addiction

    -->www.chronworks.com/<--->www.i8008.net/<--

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •