• In search of a CP/M-68K FORTRAN compiler

    From MogensB@21:1/5 to All on Sat Jan 29 02:58:35 2022
    Hi Everyone,

    I recently built a CP/M-68K system (the 68K-MBC), and I would very much like to have a FORTRAN compiler running natively on the system.
    Searching the Internet, it seems that some FORTRAN compilers were made for CP/M-68K.

    I can't find one on the "usual" CP/M sites and archives, though.

    Maybe you can help me locate one?

    Best regards,
    Mogens

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Roger Hanscom@21:1/5 to MogensB on Sat Jan 29 11:23:40 2022
    On Saturday, January 29, 2022 at 2:58:37 AM UTC-8, MogensB wrote:

    Searching the Internet, it seems that some FORTRAN compilers were made for CP/M-68K.

    Hi Mogens --

    The best archive for CP/M-68K stuff, and lots of Cromemco stuff as well, is the old Maben site. Marcus moved it to GitHub, and made it inaccessible unless you are granted permission. I find that getting permission to the GitHub repository is a *real*
    challenge. Your experience might vary?

    Roger

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Peter Higgins@21:1/5 to [email protected] on Sat Jan 29 12:40:57 2022
    On Saturday, January 29, 2022 at 11:23:41 AM UTC-8, [email protected] wrote:
    On Saturday, January 29, 2022 at 2:58:37 AM UTC-8, MogensB wrote:

    Searching the Internet, it seems that some FORTRAN compilers were made for CP/M-68K.
    Hi Mogens --

    The best archive for CP/M-68K stuff, and lots of Cromemco stuff as well, is the old Maben site. Marcus moved it to GitHub, and made it inaccessible unless you are granted permission. I find that getting permission to the GitHub repository is a *real*
    challenge. Your experience might vary?

    Roger

    The files Marcus moved to the GitHub site are almost exclusively limited to Cromemco stuff. Cromemco's Fortran compilers for Cromix are archived there, but no software for CPM-68K.
    To the best of my knowledge the only Fortran compiler for CPM-68K was produced by a company called "Silicon Valley Software", and I have never seen copy of that product archived on the internet.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From MogensB@21:1/5 to All on Sat Jan 29 14:53:11 2022
    lørdag den 29. januar 2022 kl. 22.34.13 UTC+1 skrev Martin:
    Am 01/29/2022 08:23 PM, Roger Hanscom schrieb:
    On Saturday, January 29, 2022 at 2:58:37 AM UTC-8, MogensB wrote:

    Searching the Internet, it seems that some FORTRAN compilers were made for CP/M-68K.

    Hi Mogens --

    The best archive for CP/M-68K stuff, and lots of Cromemco stuff as well, is the old Maben site. Marcus moved it to GitHub, and made it inaccessible unless you are granted permission. I find that getting permission to the GitHub repository is a *real*
    challenge. Your experience might vary?

    Roger

    From 2006, now long gone, you know where to look :-) <http://www.s100-manuals.com/CPM-BootDisks.htm>

    Thank you very much for this most useful tip/hint! I appreciate your help.

    Best regards,
    Mogens

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Peter Higgins@21:1/5 to Martin on Sun Jan 30 08:16:13 2022
    On Saturday, January 29, 2022 at 1:34:13 PM UTC-8, Martin wrote:
    From 2006, now long gone, you know where to look :-) <http://www.s100-manuals.com/CPM-BootDisks.htm>

    Thank you Martin. I must admit it took me a few minutes to figure out your cryptic hint but yes... what we were looking for it there!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Roger Hanscom@21:1/5 to All on Sun Jan 30 11:02:16 2022
    On Saturday, January 29, 2022 at 1:34:13 PM UTC-8, Martin wrote:
    From 2006, now long gone, you know where to look :-) <http://www.s100-manuals.com/CPM-BootDisks.htm>

    WOW!!! Thanks Martin!! What a "gold mine"!! I designed and built a 68K SBC (68000 running at 18.4 MHz, 2MB SRAM, 1MB EPROM, compact flash interface via 8255, and 2 serial ports via 68681(38.4k baud)). Got some things working in CP/M-68k, but found
    software to be a limiting factor. That archive has 3,000+ files --> endless fun!

    I see that CB68 (BASIC compiler) is in the archive. I have copies of it on my SBC, but although it seems to work OK for simple things, anything more complex just generates "exception $03". Anybody find it useful? What am I doing wrong? The compile
    works OK (no errors), and the link too -- "LINK68".

    Mostly, I use a GCC cross compiler and run the resulting binaries on CP/M-68k using a little thing I wrote called RUN.68K. It just loads the raw binary, and makes it look like a generic executable that CP/M-68k seems to like. GCC generates very fast
    code!

    I can post a photo of the SBC if anybody is interested.

    Roger

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Martin@21:1/5 to Roger Hanscom on Sun Jan 30 20:59:58 2022
    Am 01/30/2022 08:02 PM, Roger Hanscom schrieb:
    On Saturday, January 29, 2022 at 1:34:13 PM UTC-8, Martin wrote:
    From 2006, now long gone, you know where to look :-)
    <http://www.s100-manuals.com/CPM-BootDisks.htm>

    WOW!!! Thanks Martin!! What a "gold mine"!! I designed and built a 68K SBC (68000 running at 18.4 MHz, 2MB SRAM, 1MB EPROM, compact flash interface via 8255, and 2 serial ports via 68681(38.4k baud)). Got some things working in CP/M-68k, but found
    software to be a limiting factor. That archive has 3,000+ files --> endless fun!

    I see that CB68 (BASIC compiler) is in the archive. I have copies of it on my SBC, but although it seems to work OK for simple things, anything more complex just generates "exception $03". Anybody find it useful? What am I doing wrong? The compile
    works OK (no errors), and the link too -- "LINK68".

    Mostly, I use a GCC cross compiler and run the resulting binaries on CP/M-68k using a little thing I wrote called RUN.68K. It just loads the raw binary, and makes it look like a generic executable that CP/M-68k seems to like.. GCC generates very fast
    code!

    I can post a photo of the SBC if anybody is interested.

    Roger


    I'm collecting M68K material for a long time now.

    Always hoping to find ssytem disks for a nice coprocessor card I got
    in the late 1990s without any software or docs.

    So nothing to learn from, everything had to be found out from the
    ground by trial and error.

    Its a definicon DSI-780 with 12MHz, see <http://www.spiess.ch/emme2/e2news/news02/node2.html>

    The information found here helped me to get is running. <http://cini.classiccmp.org/pdf/byte/Definicon%2068020.pdf>

    I can reset the processor and load a memory image to the card.


    Martin

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Martin@21:1/5 to Roger Hanscom on Sun Jan 30 21:33:18 2022
    Am 01/30/2022 08:02 PM, Roger Hanscom schrieb:
    On Saturday, January 29, 2022 at 1:34:13 PM UTC-8, Martin wrote:
    From 2006, now long gone, you know where to look :-)
    <http://www.s100-manuals.com/CPM-BootDisks.htm>

    WOW!!! Thanks Martin!! What a "gold mine"!! I designed and built a 68K SBC (68000 running at 18.4 MHz, 2MB SRAM, 1MB EPROM, compact flash interface via 8255, and 2 serial ports via 68681(38.4k baud)). Got some things working in CP/M-68k, but found
    software to be a limiting factor. That archive has 3,000+ files --> endless fun!

    I see that CB68 (BASIC compiler) is in the archive. I have copies of it on my SBC, but although it seems to work OK for simple things, anything more complex just generates "exception $03". Anybody find it useful? What am I doing wrong? The compile
    works OK (no errors), and the link too -- "LINK68".

    Mostly, I use a GCC cross compiler and run the resulting binaries on CP/M-68k using a little thing I wrote called RUN.68K. It just loads the raw binary, and makes it look like a generic executable that CP/M-68k seems to like.. GCC generates very fast
    code!

    I can post a photo of the SBC if anybody is interested.

    Roger


    Oh, I really enjoyed your site!
    68000, z80, firmwares, etc., everything the technical heart ever wants.
    I'm glad to be of help now and then :-)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Schultz@21:1/5 to Roger Hanscom on Sun Jan 30 14:56:19 2022
    On 1/30/22 1:02 PM, Roger Hanscom wrote:
    I see that CB68 (BASIC compiler) is in the archive. I have copies of it on my SBC, but although it seems to work OK for simple things, anything more complex just generates "exception $03". Anybody find it useful? What am I doing wrong? The compile
    works OK (no errors), and the link too -- "LINK68".

    Exception 3 is an address error. As in the program attempted to fetch a word/long using an odd address. But you knew that...

    Run using DDT to find out more.

    --
    http://davesrocketworks.com
    David Schultz

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Martin@21:1/5 to Roger Hanscom on Sun Jan 30 22:56:21 2022
    Am 01/30/2022 08:02 PM, Roger Hanscom schrieb:
    On Saturday, January 29, 2022 at 1:34:13 PM UTC-8, Martin wrote:
    From 2006, now long gone, you know where to look :-)
    <http://www.s100-manuals.com/CPM-BootDisks.htm>

    WOW!!! Thanks Martin!! What a "gold mine"!! I designed and built a 68K SBC (68000 running at 18.4 MHz, 2MB SRAM, 1MB EPROM, compact flash interface via 8255, and 2 serial ports via 68681(38.4k baud)). Got some things working in CP/M-68k, but found
    software to be a limiting factor. That archive has 3,000+ files --> endless fun!

    I see that CB68 (BASIC compiler) is in the archive. I have copies of it on my SBC, but although it seems to work OK for simple things, anything more complex just generates "exception $03". Anybody find it useful? What am I doing wrong? The compile
    works OK (no errors), and the link too -- "LINK68".

    Mostly, I use a GCC cross compiler and run the resulting binaries on CP/M-68k using a little thing I wrote called RUN.68K. It just loads the raw binary, and makes it look like a generic executable that CP/M-68k seems to like.. GCC generates very fast
    code!

    I can post a photo of the SBC if anybody is interested.

    Roger


    I think, the CB68 files are somewhat corrupt :-(
    The difference to the files below are missing 1AH bytes.

    Try the ones from <http://www.cpm.z80.de/download/cb68.zip>

    Hth Martin

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Roger Hanscom@21:1/5 to Martin on Sun Jan 30 13:22:11 2022
    On Sunday, January 30, 2022 at 12:36:28 PM UTC-8, Martin wrote:

    Oh, I really enjoyed your site!

    Thanks! Google pulled the rug out from under me when they switched over to a new format. IMO, the new format is pretty useless, and they froze the content on my original page when they did the switch, so I can't add to it. Since their freeze, I've
    managed to build a 68020 SBC that runs at 20 MHz. It's a *real* kludge (for example it is hard-wired for an 8-bit data bus), but I discovered that the 68020 runs quite well that way (I originally thought that it would be "dog-slow"). It has 512k SRAM
    and 64k EEPROM with 2 serial ports via a 68681. BUT, there is no on-board mass storage (such as a compact flash), so all I can do is download S-records to it and run them. The PCB is small (about 14 cm. x 12 cm.). I've been thinking about trying to
    build a more full-featured version, but so far I've been reluctant (mostly because the size of the PCB would make it expen$ive!).

    I'm glad to be of help now and then :-)

    Much more than "now and then"!

    I took a look at the Byte articles on the Definicon. Pretty complete schematics! I'd love to see the equations for the PALs/GALs. I hope you can get yours running!

    Roger

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Roger Hanscom@21:1/5 to All on Sun Jan 30 14:46:07 2022
    Try the ones from <http://www.cpm.z80.de/download/cb68.zip>

    No joy! Same result. I guess I need to take David's advice, and probe around with the debugger.

    Here' the output from the compile: --------------------------------------------------
    CB68 CBASIC Compiler Version 1.0
    Serial No. 3123-0000-000061 All Rights Reserved
    Copyright (c) 1983 Digital Research, Inc. --------------------------------------------------
    end of pass 1
    end of pass 2
    1: FOR Y% = -12 TO 12
    2: FOR X% = -39 TO 39
    3: CA=FLOAT(X%)*0.0458
    4: CB=FLOAT(Y%)*0.08333
    5: A=CA
    6: B=CB
    7: K%=99
    8: FOR I% = 0 TO 15
    9: IF K% <> 99 THEN GOTO 10
    10: T=A*A-B*B+CA
    11: B=2.0*A*B+CB
    12: A=T
    13: IF (A*A+B*B) > 4.0 THEN K%=I%
    14: 10 NEXT I%
    15: IF K% > 9 THEN K%=K%+7
    16: IF K% > 99 THEN PRINT " ";
    17: IF K% < 99 THEN PRINT CHR$(48+K%);
    18: NEXT X%
    19: PRINT
    20: NEXT Y%
    21: STOP
    end of compilation
    no errors detected
    code area size: 576 00000240h
    data area size: 96 00000060h
    common area size: 0 00000000h
    symbol table space remaining: 49955

    Guess I've forgotten how to write BASIC?

    Roger

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Roger Hanscom@21:1/5 to Martin on Sun Jan 30 14:22:22 2022
    On Sunday, January 30, 2022 at 1:59:34 PM UTC-8, Martin wrote:

    I think, the CB68 files are somewhat corrupt :-(

    I think you're 100% correct. Why would a compiler produce an addressing error? Aren't they supposed to catch things like that? Or at least flag it as an error during compile or link?

    Try the ones from <http://www.cpm.z80.de/download/cb68.zip>

    Yes, I want to do that. Something must be wrong with the files I have.

    and I said:
    I can post a photo of the SBC if anybody is interested.

    I lied!! I can't see any way to do that on this thread.

    Roger

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Martin@21:1/5 to Roger Hanscom on Mon Jan 31 00:56:03 2022
    Am 01/30/2022 11:46 PM, Roger Hanscom schrieb:
    Try the ones from <http://www.cpm.z80.de/download/cb68.zip>

    No joy! Same result. I guess I need to take David's advice, and probe around with the debugger.

    Here' the output from the compile: --------------------------------------------------
    CB68 CBASIC Compiler Version 1.0
    Serial No. 3123-0000-000061 All Rights Reserved
    Copyright (c) 1983 Digital Research, Inc. --------------------------------------------------
    end of pass 1
    end of pass 2
    1: FOR Y% = -12 TO 12
    2: FOR X% = -39 TO 39
    3: CA=FLOAT(X%)*0.0458
    4: CB=FLOAT(Y%)*0.08333
    5: A=CA
    6: B=CB
    7: K%=99
    8: FOR I% = 0 TO 15
    9: IF K% <> 99 THEN GOTO 10
    10: T=A*A-B*B+CA
    11: B=2.0*A*B+CB
    12: A=T
    13: IF (A*A+B*B) > 4.0 THEN K%=I%
    14: 10 NEXT I%
    15: IF K% > 9 THEN K%=K%+7
    16: IF K% > 99 THEN PRINT " ";
    17: IF K% < 99 THEN PRINT CHR$(48+K%);
    18: NEXT X%
    19: PRINT
    20: NEXT Y%
    21: STOP
    end of compilation
    no errors detected
    code area size: 576 00000240h
    data area size: 96 00000060h
    common area size: 0 00000000h
    symbol table space remaining: 49955

    Guess I've forgotten how to write BASIC?

    Roger


    Roger, I cannot reproduce your problem with David's emulator.

    I used *both* the CB68.REL and CB68.L68 from <http://www.cpm.z80.de/download/cb68.zip>

    I used the existing linker LINK68.68K in his "diskc.cpm.fs".
    The good files are called cb68ok.68k and cb68ok.l68.


    cb68ok demo
    --------------------------------------------------
    CB68 CBASIC Compiler Version 1.0
    Serial No. 3123-0000-000061 All Rights Reserved
    Copyright (c) 1983 Digital Research, Inc. --------------------------------------------------
    end of pass 1
    end of pass 2
    1: FOR Y% = -12 TO 12
    2: FOR X% = -39 TO 39
    3: CA=FLOAT(X%)*0.0458
    4: CB=FLOAT(Y%)*0.08333
    5: A=CA
    6: B=CB
    7: K%=99
    8: FOR I% = 0 TO 15
    9: IF K% <> 99 THEN GOTO 10
    10: T=A*A-B*B+CA
    11: B=2.0*A*B+CB
    12: A=T
    13: IF (A*A+B*B) > 4.0 THEN K%=I%
    14: 10 NEXT I%
    15: IF K% > 9 THEN K%=K%+7
    16: IF K% > 99 THEN PRINT " ";
    17: IF K% < 99 THEN PRINT CHR$(48+K%);
    18: NEXT X%
    19: PRINT
    20: NEXT Y%
    21: STOP
    end of compilation
    no errors detected
    code area size: 576 00000240h
    data area size: 96 00000060h
    common area size: 0 00000000h
    symbol table space remaining: 49955


    Linking with the bad Library failed:

    link68 demo.o,cb68.l68
    --------------------------------------------------
    LINK68 Overlay Linker Release 0.f
    Serial No. XXXX-0000 All Rights Reserved
    Copyright (c) 1983 Digital Research, Inc. --------------------------------------------------

    demo.o,cb68.l68
    LINK68: FILE FORMAT ERROR IN entinp.o


    2nd try, now with the good one:

    link68 demo.o,cb68ok.l68
    --------------------------------------------------
    LINK68 Overlay Linker Release 0.f
    Serial No. XXXX-0000 All Rights Reserved
    Copyright (c) 1983 Digital Research, Inc. --------------------------------------------------

    demo.o,cb68ok.l68

    dir demo*.*
    C: DEMO BAS : DEMO 68K : DEMO O


    Test with the emulator....

    demo 000000011111111111111111122222233347E7AB322222111100000000000000000000000000000 000001111111111111111122222222333557BF75433222211111000000000000000000000000000 000111111111111111112222222233445C 643332222111110000000000000000000000000 011111111111111111222222233444556C 654433332211111100000000000000000000000 11111111111111112222233346 D978 BCF DF9 6556F4221111110000000000000000000000 111111111111122223333334469 D 6322111111000000000000000000000 1111111111222333333334457DB 85332111111100000000000000000000 11111122234B744444455556A 96532211111110000000000000000000 122222233347BAA7AB776679 A32211111110000000000000000000 2222233334567 9A A532221111111000000000000000000 222333346679 9432221111111000000000000000000 234445568 F B5432221111111000000000000000000
    864332221111111000000000000000000 234445568 F B5432221111111000000000000000000 222333346679 9432221111111000000000000000000 2222233334567 9A A532221111111000000000000000000 122222233347BAA7AB776679 A32211111110000000000000000000 11111122234B744444455556A 96532211111110000000000000000000 1111111111222333333334457DB 85332111111100000000000000000000 111111111111122223333334469 D 6322111111000000000000000000000 11111111111111112222233346 D978 BCF DF9 6556F4221111110000000000000000000000 011111111111111111222222233444556C 654433332211111100000000000000000000000 000111111111111111112222222233445C 643332222111110000000000000000000000000 000001111111111111111122222222333557BF75433222211111000000000000000000000000000 000000011111111111111111122222233347E7AB322222111100000000000000000000000000000



    WOW !!!!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Martin@21:1/5 to Martin on Mon Jan 31 05:45:03 2022
    Am 01/29/2022 10:31 PM, Martin schrieb:
    Am 01/29/2022 08:23 PM, Roger Hanscom schrieb:
    On Saturday, January 29, 2022 at 2:58:37 AM UTC-8, MogensB wrote:

    Searching the Internet, it seems that some FORTRAN compilers were
    made for CP/M-68K.

    Hi Mogens --

    The best archive for CP/M-68K stuff, and lots of Cromemco stuff as
    well, is the old Maben site. Marcus moved it to GitHub, and made it
    inaccessible unless you are granted permission. I find that getting
    permission to the GitHub repository is a *real* challenge. Your
    experience might vary?

    Roger


    From 2006, now long gone, you know where to look :-) <http://www.s100-manuals.com/CPM-BootDisks.htm>


    Bad news.

    It seems, some archives are not in good shape.
    Sorry for the noise, didn't know this until now.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Roger Hanscom@21:1/5 to Martin on Mon Jan 31 09:33:29 2022
    On Sunday, January 30, 2022 at 8:48:14 PM UTC-8, Martin wrote:

    Bad news.

    It seems, some archives are not in good shape.
    Sorry for the noise, didn't know this until now.

    Hi Martin,

    So, how can I find the "ok" files? I've forgotten how to get to the "emulator".

    Roger

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Martin@21:1/5 to Roger Hanscom on Mon Jan 31 19:45:08 2022
    Am 01/31/2022 06:33 PM, Roger Hanscom schrieb:
    On Sunday, January 30, 2022 at 8:48:14 PM UTC-8, Martin wrote:

    Bad news.

    It seems, some archives are not in good shape.
    Sorry for the noise, didn't know this until now.

    Hi Martin,

    So, how can I find the "ok" files? I've forgotten how to get to the "emulator".

    Roger



    See here for CP/M-68K on his MEX68KECB <http://davesrocketworks.com/electronics/cpm68/>

    The simulator is here <http://davesrocketworks.com/electronics/cpm68/simulator.html>

    I have only compiled the simulator under 32-bit Linux, 64-bit is
    not very useful, if you want to run a lot of old utilities :-)

    Doing everything under Slackware Linux since +20 years,
    I can only really help you to get it running on Linux.

    Can the simulator even run on any other OS?


    If nothing else, you can at lest copy files out of the HD image
    "diskc.cpm.fs" with "cpmtools".

    I'm at this time a little bit overwhelmed, to describe everything from
    start to end.

    But I will try to help you over any difficulties when they arise.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Steven Hirsch@21:1/5 to Martin on Mon Jan 31 17:15:01 2022
    On 1/29/22 16:31, Martin wrote:

    From 2006, now long gone, you know where to look :-) <http://www.s100-manuals.com/CPM-BootDisks.htm>


    Unfortunately, I am not smart enough to know where to look, but would love to get my hands on the CPM68k archive.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Schultz@21:1/5 to Steven Hirsch on Mon Jan 31 16:49:24 2022
    On 1/31/22 4:15 PM, Steven Hirsch wrote:
    On 1/29/22 16:31, Martin wrote:

     From 2006, now long gone, you know where to look :-)
    <http://www.s100-manuals.com/CPM-BootDisks.htm>


    Unfortunately, I am not smart enough to know where to look, but would
    love to get my hands on the CPM68k archive.

    The Internet Archive of course: https://archive.org/index.php

    --
    http://davesrocketworks.com
    David Schultz

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Schultz@21:1/5 to Martin on Mon Jan 31 16:48:10 2022
    On 1/31/22 12:45 PM, Martin wrote:
    See here for CP/M-68K on his MEX68KECB <http://davesrocketworks.com/electronics/cpm68/>

    The simulator is here <http://davesrocketworks.com/electronics/cpm68/simulator.html>

    I have only compiled the simulator under 32-bit Linux, 64-bit is
    not very useful, if you want to run a lot of old utilities :-)

    Doing everything under Slackware Linux since +20 years,
    I can only really help you to get it running on Linux.

    Can the simulator even run on any other OS?

    That would depend on the 68K sim used as a base: Musashi. Which has
    turned out to be a bit of a moving target. I really hated it when the
    source files were rearranged which broke existing code (like mine).

    Console I/O might need a bit of work.


    --
    http://davesrocketworks.com
    David Schultz

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From josef@21:1/5 to All on Tue Feb 1 09:31:27 2022
    On Sunday, January 30, 2022 at 1:59:34 PM UTC-8, Martin wrote:

    I think, the CB68 files are somewhat corrupt :-(
    I think you're 100% correct. Why would a compiler produce an addressing error? Aren't they supposed to catch things like that? Or at least flag it as an error during compile or link?
    Try the ones from <http://www.cpm.z80.de/download/cb68.zip>
    Yes, I want to do that. Something must be wrong with the files I have.
    and I said:
    I can post a photo of the SBC if anybody is interested.
    I lied!! I can't see any way to do that on this thread.

    Roger#

    I had exactly the same Problem with CB68 (Exception $03) on my 68000 boards. (On my 68020/030/040/060 CP/M-68k boards there was no error).

    After changing the memory region size in my CP/M Bios it worked fine.

    * Note: All the Memory Region sizes are rounded to 0xYYYY0 to avoid a problem
    * with the executables generated with the CB68 CBASIC compiler.
    * For more info see here:
    * https://www.retrobrewcomputers.org/forum/index.php?t=msg&th=576&start=0&

    Regards,

    Josef

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Roger Hanscom@21:1/5 to Martin on Tue Feb 1 09:48:23 2022
    On Monday, January 31, 2022 at 10:48:20 AM UTC-8, Martin wrote:
    ...<snip>.....
    See here for CP/M-68K on his MEX68KECB

    Thanks for the links, Martin.

    Doing everything under Slackware Linux since +20 years,

    You too!! I have been using Slackware for a similar period of time. Best Linux distribution!
    If I have *real* work to do, Linux is the only way to go.

    I'm at this time a little bit overwhelmed, to describe everything from start to end.

    I understand. I think I can figure it out myself. *grin*

    Josef --

    After changing the memory region size in my CP/M Bios it worked fine.

    Thanks for the pointer. I'll check my memory region sizes.

    Roger

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Roger Hanscom@21:1/5 to All on Tue Feb 1 10:43:34 2022
    Thanks Josef -- that fixed my problem!

    Roger

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Martin@21:1/5 to Roger Hanscom on Tue Feb 1 20:05:42 2022
    Am 01/31/2022 06:33 PM, Roger Hanscom schrieb:
    On Sunday, January 30, 2022 at 8:48:14 PM UTC-8, Martin wrote:

    Bad news.

    It seems, some archives are not in good shape.
    Sorry for the noise, didn't know this until now.

    Hi Martin,

    So, how can I find the "ok" files? I've forgotten how to get to the "emulator".

    Roger



    Rereading your question, I finally understand ...

    I have just renamed the files.
    The "ok" files are the one from "cb68.zip".

    Sorry!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Martin@21:1/5 to Roger Hanscom on Tue Feb 1 19:57:43 2022
    Am 02/01/2022 06:48 PM, Roger Hanscom schrieb:
    On Monday, January 31, 2022 at 10:48:20 AM UTC-8, Martin wrote: ....<snip>.....
    See here for CP/M-68K on his MEX68KECB

    Thanks for the links, Martin.

    Doing everything under Slackware Linux since +20 years,

    You too!! I have been using Slackware for a similar period of time. Best Linux distribution!
    If I have *real* work to do, Linux is the only way to go.

    I'm at this time a little bit overwhelmed, to describe everything from start to end.

    I understand. I think I can figure it out myself. *grin*

    Josef --

    After changing the memory region size in my CP/M Bios it worked fine.

    Thanks for the pointer. I'll check my memory region sizes.

    Roger



    The simulator is easy to build. Use the following version of musashi, which works well:
    <http://caesar.logiqx.com/zips/libs/cpu/musashi/musashi331.zip>

    Go into an empty subdirectory(!), extract both, but don't overwrite the "m68kconf.h" from cpmsim.zip.

    "make"... and a few moments later, you have a running simulator :-)
    Just did it, works well under Slackware 14.2 64-bit!

    $ make
    mkdir obj
    gcc -Wall -O2 -c -Iobj -I. cpmsim.c -o obj/sim.o
    gcc -Wall m68kmake.c -o obj/m68kmake
    obj/m68kmake obj m68k_in.c

    Musashi v3.3 68000, 68010, 68EC020, 68020 emulator
    Copyright 1998-2000 Karl Stenerud ([email protected])

    Generated 1962 opcode handlers from 503 primitives
    gcc -Wall -O2 -c -Iobj -I. m68kcpu.c -o obj/m68kcpu.o
    gcc -Wall -O2 -c -Iobj -I. obj/m68kops.c -o obj/m68kops.o
    gcc -Wall -O2 -c -Iobj -I. obj/m68kopac.c -o obj/m68kopac.o
    gcc -Wall -O2 -c -Iobj -I. obj/m68kopdm.c -o obj/m68kopdm.o
    gcc -Wall -O2 -c -Iobj -I. obj/m68kopnz.c -o obj/m68kopnz.o
    gcc -Wall -O2 -c -Iobj -I. m68kdasm.c
    gcc -Wall obj/sim.o obj/m68kcpu.o obj/m68kops.o obj/m68kopac.o obj/m68kopdm.o obj/m68kopnz.o m68kdasm.o -o cpmsim
    $
    $ ./cpmsim
    Read 32768 bytes from boot track


    CP/M-68K(tm) Version 1.2 03/20/84
    Copyright (c) 1984 Digital Research, Inc.

    CP/M-68K BIOS Version 1.0
    Simulated system of April 2014
    TPA =16251 K

    AUTOST.SUB

    INIT.REL M
    Do you really want to init disk M ?


    dir
    C: RELOC 68K : DUMP 68K : PIP 68K : STAT 68K : INIT REL
    C: SENDC68 68K : DDT 68K : AS68 68K : CP68 68K : AS68INIT
    C: C068 68K : C168 68K : AR68 68K : CONFIG 68K : LO68 68K
    C: MORE 68K : NM68 68K : SIZE68 68K : COPY SUB : CC REL
    C: CC 68K : AS68SYMB DAT : ED 68K : SID 68K : WHEREIS 68K
    C: BBYE 68K : UEMACS 68K : F83 BIN : PUTBOOT 68K : AUTOST SUB
    C: GREEN 68K : MAKE REL : ARC 68K : EMACS 68K : F83 68K
    C: SPLIT 68K : CPM SYS : MAKE 68K : EMACS HLP : DDT68000 68K
    C: SID68K 68K : EMACS RC : TAIL 68K : ROBOTS21 68K : PIP REL
    C: ERAQ 68K : LINK68 68K
    bbye
    CP/M-68K terminating normally

    $


    P.S.:
    Do you know?
    The sepulchral voice intones, "The cave is now closed."

    It will happen anytime soon!
    Hey, my shiny brass lamp is almost out of fuel!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Schultz@21:1/5 to Martin on Tue Feb 1 19:10:16 2022
    On 2/1/22 12:57 PM, Martin wrote:

    P.S.:
    Do you know?
    The sepulchral voice intones, "The cave is now closed."

    It will happen anytime soon!
    Hey, my shiny brass lamp is almost out of fuel!


    The little bird attacks the green dragon, and in an
    astounding flurry gets burnt to a cinder. The ashes blow away.


    --
    http://davesrocketworks.com
    David Schultz

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Steven Hirsch@21:1/5 to David Schultz on Wed Feb 2 10:46:34 2022
    On 1/31/22 17:49, David Schultz wrote:
    On 1/31/22 4:15 PM, Steven Hirsch wrote:
    On 1/29/22 16:31, Martin wrote:

     From 2006, now long gone, you know where to look :-)
    <http://www.s100-manuals.com/CPM-BootDisks.htm>


    Unfortunately, I am not smart enough to know where to look, but would love >> to get my hands on the CPM68k archive.

    The Internet Archive of course: https://archive.org/index.php

    For reasons known only to the Internet Archive owners, no hits were returned from a query on www.s100-manuals.com. Didn't try the CPM-BootDisks section of the URL...

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Peter Higgins@21:1/5 to Steven Hirsch on Wed Feb 2 08:17:28 2022
    On Wednesday, February 2, 2022 at 7:46:40 AM UTC-8, Steven Hirsch wrote:
    On 1/31/22 17:49, David Schultz wrote:
    On 1/31/22 4:15 PM, Steven Hirsch wrote:
    On 1/29/22 16:31, Martin wrote:

    From 2006, now long gone, you know where to look :-)
    <http://www.s100-manuals.com/CPM-BootDisks.htm>


    Unfortunately, I am not smart enough to know where to look, but would love >> to get my hands on the CPM68k archive.

    The Internet Archive of course: https://archive.org/index.php
    For reasons known only to the Internet Archive owners, no hits were returned from a query on www.s100-manuals.com. Didn't try the CPM-BootDisks section of the URL...

    That is not the correct link - go to https://archive.org/web/ (aka the "Wayback Machine") and look at what it archived in 2006.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Roger Hanscom@21:1/5 to Steven Hirsch on Wed Feb 2 09:37:36 2022
    On Wednesday, February 2, 2022 at 7:46:40 AM UTC-8, Steven Hirsch wrote:

    For reasons known only to the Internet Archive owners, no hits were returned from a query on www.s100-manuals.com. Didn't try the CPM-BootDisks section of the URL...

    Steve --

    Go to <http://www.s100-manuals.com/CPM-BootDisks.htm>. You will get a 404 error, but select the "check archives" button in the upper right corner. The WayBack Machine will come up with a page that includes a link to the Tri-Soft archive.

    Roger

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Schultz@21:1/5 to Steven Hirsch on Wed Feb 2 18:08:49 2022
    On 2/2/22 9:46 AM, Steven Hirsch wrote:
    On 1/31/22 17:49, David Schultz wrote:
    On 1/31/22 4:15 PM, Steven Hirsch wrote:
    On 1/29/22 16:31, Martin wrote:

     From 2006, now long gone, you know where to look :-)
    <http://www.s100-manuals.com/CPM-BootDisks.htm>


    Unfortunately, I am not smart enough to know where to look, but would
    love to get my hands on the CPM68k archive.

    The Internet Archive of course: https://archive.org/index.php

    For reasons known only to the Internet Archive owners, no hits were
    returned from a query on www.s100-manuals.com.  Didn't try the
    CPM-BootDisks section of the URL...


    Did you click on the search web pages option? I did:

    https://web.archive.org/web/20071223175347/http://www.s100-manuals.com:80/CPM-BootDisks.htm

    (Note also that the final entry is a page not found error so you have to
    back up in time a bit.)


    --
    http://davesrocketworks.com
    David Schultz

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Craig Ruff@21:1/5 to [email protected] on Wed Feb 2 18:52:30 2022
    In article <[email protected]>,
    Roger Hanscom <[email protected]> wrote:
    Go to <http://www.s100-manuals.com/CPM-BootDisks.htm>. You will get a 404 error,
    but select the "check archives" button in the upper right corner.

    You must have a browser plugin that provides the "check archives"
    button, or use a browser that does that. When I look with Firefox
    that doesn't happen.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Peter Higgins@21:1/5 to All on Wed Feb 2 16:52:00 2022
    Go to <http://www.s100-manuals.com/CPM-BootDisks.htm>. You will get a 404 error, but select the "check archives" button in the upper right corner. The WayBack Machine will come up with a page that includes a link to the Tri-Soft archive.

    Roger

    Roger - I think those instructions are system and browser dependent. On MacOS running either the Chrome or Safari browser, for example, the "check archives" button you are referring to does not exist - all you see is the 404 error. I had to go directly
    to the Wayback Archive web site, and manually enter a search on the URL "http://www.s100-manuals.com/CPM-BootDisks.htm"

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Steven Hirsch@21:1/5 to David Schultz on Wed Feb 2 19:57:24 2022
    On 2/2/22 19:08, David Schultz wrote:
    On 2/2/22 9:46 AM, Steven Hirsch wrote:
    On 1/31/22 17:49, David Schultz wrote:
    On 1/31/22 4:15 PM, Steven Hirsch wrote:
    On 1/29/22 16:31, Martin wrote:

     From 2006, now long gone, you know where to look :-)
    <http://www.s100-manuals.com/CPM-BootDisks.htm>


    Unfortunately, I am not smart enough to know where to look, but would love >>>> to get my hands on the CPM68k archive.

    The Internet Archive of course: https://archive.org/index.php

    For reasons known only to the Internet Archive owners, no hits were returned >> from a query on www.s100-manuals.com.  Didn't try the CPM-BootDisks section >> of the URL...


    Did you click on the search web pages option? I did:

    https://web.archive.org/web/20071223175347/http://www.s100-manuals.com:80/CPM-BootDisks.htm


    (Note also that the final entry is a page not found error so you have to back up in time a bit.)

    I'm all set now thanks to some quick help from Larry Kraemer (much appreciated).

    Do I understand correctly that some of the archive is corrupted?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Schultz@21:1/5 to Peter Higgins on Wed Feb 2 20:17:25 2022
    On 2/2/22 6:52 PM, Peter Higgins wrote:
    Go to <http://www.s100-manuals.com/CPM-BootDisks.htm>. You will get a 404 error, but select the "check archives" button in the upper right corner. The WayBack Machine will come up with a page that includes a link to the Tri-Soft archive.

    Roger

    Roger - I think those instructions are system and browser dependent. On MacOS running either the Chrome or Safari browser, for example, the "check archives" button you are referring to does not exist - all you see is the 404 error. I had to go directly
    to the Wayback Archive web site, and manually enter a search on the URL "http://www.s100-manuals.com/CPM-BootDisks.htm"

    I have a plugin on Firefox that does it.

    --
    http://davesrocketworks.com
    David Schultz

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Martin@21:1/5 to Steven Hirsch on Thu Feb 3 03:20:44 2022
    Am 02/03/2022 01:57 AM, Steven Hirsch schrieb:

    I'm all set now thanks to some quick help from Larry Kraemer (much appreciated).

    Do I understand correctly that some of the archive is corrupted?

    First results while trying to find the cause of oger's problems with CB68:

    The http://www.cpm.z80.de/download/cb68.zip:
    -rw-r--r-- 1 martin users 13824 Dec 18 1997 CB68.DOC
    -rw-r--r-- 1 martin users 93312 Dec 18 1997 CB68.L68
    -rw-r--r-- 1 martin users 213632 Dec 18 1997 CB68.REL

    Comparing this with the trisoft archive
    CPM-68K/Languages/Basic/CBASIC_68K_1.0:
    -r--r--r-- 1 martin users 93311 Apr 27 2004 CB68.L68
    -r--r--r-- 1 martin users 213629 Apr 27 2004 CB68.REL
    -r--r--r-- 1 martin users 69120 Apr 27 2004 LINK68.REL

    The odd filesizes were first alarm signals,
    further examination shows, that every 01AH byte is missing
    from the trisoft files.

    So a first glance it seems the corruption at least follows
    some regular schema.

    The LINK68.REL looks truncated relative to all other files
    of the same name elsewhere.

    Looking around searching a comparable LINK68.REL I found
    LINK68.68K in CPM-68K/Languages/Pascal/Pascal_MTP_Working:
    -r--r--r-- 1 martin users 37631 Apr 27 2004 LINK68.68K

    A good version of the file is in rlee peter's cp/m archive
    rlee/D/DIGITAL RESEARCH/CPM68K/CO16-68K:
    -rwxr-xr-x 1 martin users 37632 Apr 11 1999 LINK68.68K

    Same form of curruption, one 01AH somewhere in the middle
    is cut out.

    Not good... :-(

    Martin

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Josef@21:1/5 to All on Thu Feb 3 09:52:11 2022
    Mostly, I use a GCC cross compiler and run the resulting binaries on CP/M-68k using a little thing I wrote called RUN.68K. It just loads the raw binary, and makes it look like a generic executable that CP/M-68k seems to like. GCC generates very fast
    code!

    Roger,

    that sound very interesting !
    What GCC cross compiler version are You using ?
    How do You compile the program (compiler switches) ?
    What does RUN.68K exactly ?
    Can I have a copy of RUN.68K or RUN.S ?

    Regards,

    Josef

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Schultz@21:1/5 to Martin on Fri Feb 4 11:35:03 2022
    On 2/2/22 8:20 PM, Martin wrote:
    The odd filesizes were first alarm signals,
    further examination shows, that every 01AH byte is missing
    from the trisoft files.

    Looks like a dumb EOF mark (^Z, 0x1A) scrubber was used on binary files.

    A smart one would look only in the final record. An even smarter one
    would check for binary files first.


    It should be possible, if tedious, to undo some of the damage.

    Load the binary (this only works if it is executable) using DDT. Then
    starting from the beginning, scan the code. Deletion of a byte should
    cause significant weirdness in the following code. Insert a 0x1A in what
    looks like the appropriate spot. Reload with DDT and repeat.

    You would have to be pretty motivated.

    And patient.


    --
    http://davesrocketworks.com
    David Schultz

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Martin@21:1/5 to David Schultz on Sun Feb 6 20:40:39 2022
    Am 02/04/2022 06:35 PM, David Schultz schrieb:
    On 2/2/22 8:20 PM, Martin wrote:
    The odd filesizes were first alarm signals,
    further examination shows, that every 01AH byte is missing
    from the trisoft files.

    Looks like a dumb EOF mark (^Z, 0x1A) scrubber was used on binary files.

    A smart one would look only in the final record. An even smarter one
    would check for binary files first.


    It should be possible, if tedious, to undo some of the damage.

    Load the binary (this only works if it is executable) using DDT. Then starting from the beginning, scan the code. Deletion of a byte should
    cause significant weirdness in the following code. Insert a 0x1A in what looks like the appropriate spot. Reload with DDT and repeat.

    You would have to be pretty motivated.

    And patient.



    This was also my first idea.
    Thanks for confirming that.

    Or Create a simple automatic tool to quickly detect the first illegal
    position in a binary. Then hand fix it directly or insert a dummy byte
    and continue. At the end return to all the unclear points and retry.

    The 68k has a word oriented architecture, a shift by one quickly leads
    to illegal opcodes. But data areas will require some disassembly.

    For plain binary files, this could work.

    Is there somewhere a documentation of all the object formats
    (standard or not?) used by the compilers?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bill Shen@21:1/5 to All on Sun Feb 13 07:26:15 2022
    Did we solved the CB68 issues? compile ASCII mandelbrot with CB68 under CP/M68K is part of my test suite. It all worked on my 68K designs from 68008 to 68030 so I think I have the working binaries of CB68.rel and library CB68.L68. I believe I
    downloaded CB68 from cpm.z80.de
    Bill

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Roger Hanscom@21:1/5 to Bill Shen on Sun Feb 13 11:22:37 2022
    On Sunday, February 13, 2022 at 7:26:16 AM UTC-8, Bill Shen wrote:
    Did we solved the CB68 issues? compile ASCII mandelbrot with CB68 under CP/M68K is part of my test suite. It all worked on my 68K designs from 68008 to 68030 so I think I have the working binaries of CB68.rel and library CB68.L68. I believe I
    downloaded CB68 from cpm.z80.de
    Bill

    Hi Bill,

    I think that the questions about CB68 came up because I was unable to compile "asciiart" with my version of CB68. I thought that perhaps my CB68 (or the library) was corrupt, but it turns out that it was a problem with my CBIOS attempting to set the
    memory region with an odd number. I fixed it, and was able to compile OK.

    As an aside:
    CB68 version: 1:04 23k
    XGCC version: :13 7k
    also ran it with "COM2X" using Micro$lop MBASIC -- so slow I didn't even let it complete!!!

    Roger

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)