Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

CP/M Chess programs

1,039 views
Skip to first unread message

Udo Munk

unread,
Oct 17, 2016, 6:08:25 PM10/17/16
to
Added a new disk image to the z80pack repository with all CP/M Chess
programs I have.

Included are:

FORTRAN IV Chess (+ chess.doc), it says Mike's Chess program.
I have no idea who wrote this, FORTRAN source is compiled with
Cromemco FORTRAN compiler. Source is on that disk and here:

http://www.autometer.de/unix4fun/z80pack/ftp/sources/stuff/

1978? Probably earlier, Cromemco FORTRAN modifications were
done 1978 I think.

Then of course 8080 Microchess 1977 patched for CP/M, see other thread.

MyChess - David Kittinger 1979
Sargon 2.1 - Dan and Kathy Spracklen 1981


PS: for Microchess patches I used 8080 instructions only, so should run on
any CP/M system.

Udo Munk

unread,
Apr 11, 2018, 2:54:06 PM4/11/18
to
On Tuesday, October 18, 2016 at 12:08:25 AM UTC+2, Udo Munk wrote:

> MyChess - David Kittinger 1979

I found the generic CP/M version of a later MyChess:

*** MYCHESS 2.3 (3/28/83) ***

WRITTEN BY: DAVID KITTINGER
COPYRIGHT 1979

Display (c) 1983 Walt Bilofsky

This one can be configured for terminals, but not for ANSI/VT100, the cursor addressing
function won't support this kind of sequences. For simpler, early terminals like ADM3A,
IMSAI VIO, VT52... it can be configured with the included config program.

I have updated the chess disk image for z80pack to include this version, it is configured
for dumb terminals without cursor addressing, so it works anywhere.

The MyChess manual also is available:
http://www.autometer.de/unix4fun/z80pack/ftp/manuals/Software/

May the pieces be with you,
Udo

Charles Richmond

unread,
Apr 11, 2018, 3:39:36 PM4/11/18
to
On 4/11/2018 1:54 PM, Udo Munk wrote:
> On Tuesday, October 18, 2016 at 12:08:25 AM UTC+2, Udo Munk wrote:
>
>> MyChess - David Kittinger 1979
>
> I found the generic CP/M version of a later MyChess:
>
> *** MYCHESS 2.3 (3/28/83) ***
>
> WRITTEN BY: DAVID KITTINGER
> COPYRIGHT 1979
>
> Display (c) 1983 Walt Bilofsky
>

From your Unix4Fun site, I downloaded a chess program that was written
in FORTRAN IV style code. I got the code to compile and run on a DEC-20
clone. This is *not* the MyChess program, is it???

--
numerist at aquaporin4 dot com

Udo Munk

unread,
Apr 11, 2018, 3:54:32 PM4/11/18
to
On Wednesday, April 11, 2018 at 9:39:36 PM UTC+2, Charles Richmond wrote:

> From your Unix4Fun site, I downloaded a chess program that was written
> in FORTRAN IV style code. I got the code to compile and run on a DEC-20
> clone. This is *not* the MyChess program, is it???

No it is not MyChess from David Kittinger, this one was written in Z80 assembler.

I have this sources since 1979, so I don't know anymore where I got it from,
DECUS or GE Timesharing Network probably, way back then we ran this on
Manfraimes. The documentation and sources say 'Mike's chess program', but
I have no idea who the Mike is who wrote it, sorry.

Alan Laughton

unread,
Apr 11, 2018, 8:30:39 PM4/11/18
to
Over at
http://heathkit.garlanger.com/software/library/TheSoftwareToolworks/software/mychess/
there appears to be a version

*** MYCHESS 2.3(b) (9/28/83) ***

WRITTEN BY: DAVID KITTINGER
COPYRIGHT 1979

Display (c) 1982 Roy Gillogly and Walt Bilofsky

on an Osbourne 1 IMD image but I having problems extracting the files.
Also included is MYCONFIG.COM which I assume allows Terminal
configuration. Has anyone been able to extract these files from this image?
Alan

roger...@gmail.com

unread,
Apr 11, 2018, 8:48:07 PM4/11/18
to
On Wednesday, April 11, 2018 at 11:54:06 AM UTC-7, Udo Munk wrote:
> This one can be configured for terminals, but not for ANSI/VT100, the cursor addressing
> function won't support this kind of sequences. For simpler, early terminals like ADM3A,
> IMSAI VIO, VT52... it can be configured with the included config program.

there is a sequence that can put a VT100 in VT52 mode. Wouldn't expect any old
random terminal emulator to support it, though.
--
roger ivie
roger...@gmail.com

Udo Munk

unread,
Apr 11, 2018, 10:13:05 PM4/11/18
to
On Thursday, April 12, 2018 at 2:30:39 AM UTC+2, Alan Laughton wrote:

> Has anyone been able to extract these files from this image?

Yep, after some hair pulling and the usual cursing the files are now on
8" raw disk images in IBM 3740 format. The disk also includes the Osborn-1
specific version, but the generic CP/M version was more interesting for me. If
anyone needs the Osborn-1 program just let me know, I can put it up
somewhere.

Udo Munk

unread,
Apr 11, 2018, 10:27:51 PM4/11/18
to
On Thursday, April 12, 2018 at 2:48:07 AM UTC+2, roger...@gmail.com wrote:

> there is a sequence that can put a VT100 in VT52 mode. Wouldn't expect any old
> random terminal emulator to support it, though.

xterm also emulates a VT52 which nowadays works perfectly. I'm using it with
the z80pack systems, but that will work also with the other emulations. Or
you could run kermit, cu or whatever from the terminal and connect via serial
to physical hardware using the VT52.

Here is the shell script I'm using, put this into /usr/local/bin/vt52 or so:

-----
#!/bin/sh

LC_ALL=C exec xterm -ti vt52 -tn vt52 -T "DEC VT-52" &
-----

For a green terminal set the X resources in ~/.Xdefaults or whatever
your system uses like this:

-----
XTerm*Background: black
XTerm*Foreground: green
XTerm*font: 7x13
-----

You might prefer another font size tho, above works for me on an
OSX Apple notebook.

Udo Munk

unread,
Apr 11, 2018, 11:26:02 PM4/11/18
to
On Wednesday, April 11, 2018 at 8:54:06 PM UTC+2, Udo Munk wrote:

> This one can be configured for terminals, but not for ANSI/VT100, the cursor addressing
> function won't support this kind of sequences. For simpler, early terminals like ADM3A,
> IMSAI VIO, VT52... it can be configured with the included config program.

I have configure it for the IMSAI system using the VIO. If configured for such terminals
the programs draws the board and pieces with amazing neato ASCII art, not the usual
simple ASCII boards as also used by most other programs. Quite interesting and well
worth make it working for some terminal :) I never had this version and never seen this
before.

Udo Munk

unread,
Apr 12, 2018, 12:48:08 AM4/12/18
to
I have committed an updated 'vio-stuff.dsk' image to z80pack dev on GitHub:

https://github.com/udo-munk/z80pack

The disk now includes MyChess configured for the IMSAI VIO.

May the fine ASCII pieces be with you,
Udo

norwe...@gmail.com

unread,
Apr 12, 2018, 1:08:33 PM4/12/18
to

.... <snip> ....

> Sargon 2.1 - Dan and Kathy Spracklen 1981

Sargon cheats!!! Or at least the version I found does. Anybody ever figure out how to make it honest????

Charles Richmond

unread,
Apr 12, 2018, 6:31:29 PM4/12/18
to
Can you post the URL for the FORTRAN chess program??? Now I can not
find it on your site anymore...

Udo Munk

unread,
Apr 12, 2018, 7:08:26 PM4/12/18
to
On Friday, April 13, 2018 at 12:31:29 AM UTC+2, Charles Richmond wrote:

> Can you post the URL for the FORTRAN chess program??? Now I can not
> find it on your site anymore...

http://www.autometer.de/unix4fun/z80pack/ftp/sources/stuff/

Can be compiled on modern systems with GNU FORTRAN 77 and 95,
still compiles with CROMEMCO Z80 FORTRAN. Never got it working
with Microsoft FORTRAN.

Udo Munk

unread,
Apr 13, 2018, 6:46:01 PM4/13/18
to
Here is a demonstration video for MyChess running on the IMSAI 8080:

https://youtu.be/zVpINy8pcD8

Udo Munk

unread,
Sep 12, 2018, 2:22:03 AM9/12/18
to
Found an orginal copy of Sargon for CP/M and updated
the CP/M Chess disk image for z80pack. It now contains:

CHESS.COM compiled with Cromemco FORTRAN, so Z80 only
CHESS.TXT

MICRO80.COM Microchess 8080

SARGON.COM Sargon 1, Z80 only
SARGON2.COM Sargon 2, Z80 only

MYCHESS.COM MyChess 1979, Z80 only
MYCHESSN.COM MyChess 2.3 1983, Z80 only
MYCONFIG.COM configure program for later one

Programs run with any dumb terminal, even teletyper is OK.

norwe...@gmail.com

unread,
Sep 12, 2018, 1:27:19 PM9/12/18
to
Not trying to be critical. Just trying for informational. I've been looking for good chess programs for years (for CP/M). Sorry, Udo .... not much program code here:

> CHESS.COM compiled with Cromemco FORTRAN, so Z80 only
> CHESS.TXT

Glitzy page with no source code in sight.

> MICRO80.COM Microchess 8080

Empty page.

> SARGON.COM Sargon 1, Z80 only
> SARGON2.COM Sargon 2, Z80 only

Two broken links.

> MYCHESS.COM MyChess 1979, Z80 only
> MYCHESSN.COM MyChess 2.3 1983, Z80 only
> MYCONFIG.COM configure program for later one

Java code, chess "viewers", etc. Can't find the good stuff.

Do you know if the "Sargon"s are non-broken codes? I've tried to get Sargon to work for years. The version that was published in the Sargon book is broken, and cheats.

Roger

Udo Munk

unread,
Sep 12, 2018, 2:54:18 PM9/12/18
to
On Wednesday, September 12, 2018 at 7:27:19 PM UTC+2, norwe...@gmail.com wrote:
> Not trying to be critical. Just trying for informational. I've been looking for good chess
> programs for years (for CP/M). Sorry, Udo .... not much program code here:
> Glitzy page with no source code in sight.
> Empty page.
> Two broken links.

That are the files on the disk, don't know why software from
Google tries to make broken links from filenames with extension .com,
ask their 'AI' department :-P These guys should first get the
basics right like this here, before killing people with not working
'AI', IMHO.

> Java code, chess "viewers", etc. Can't find the good stuff.

That is elsewhere, maybe some search engine can find it for you ;-)

> Do you know if the "Sargon"s are non-broken codes? I've tried to get Sargon to work
> for years. The version that was published in the Sargon book is broken, and cheats.

As far as I can tell the Sargon programs work OK.
The published source from the book contains known bugs that need fixes. It does not
cheat, but the move generator isn't always working correct. After the book was
published the authors received bug fixes, which are included in the ports done after
April 1979 or so.

Martin

unread,
Sep 12, 2018, 11:09:24 PM9/12/18
to
Udo Munk schrieb:
Hi Udo!

A well done (german) overview about micro computer chess:
<http://www.andreadrian.de/schach/>

The page features a lot of "screen shots",
worth a look also for the non german speaking.

Btw, you also find the source code of sargon.
http://www.andreadrian.de/schach/sargon.asm

And if you want to look at the original:
<http://web.archive.org/web/20040911033606/http://madscientistroom.org:80/chm/Sargon.html>


For completeness
<http://www.retroarchive.org/cpm/games/sargon.zip>
and
CP/M CD-ROM: /LAMBDA/SOUNDPOT/F/OSSARGON.LBR


Martin

Udo Munk

unread,
Sep 13, 2018, 4:59:54 AM9/13/18
to
On Thursday, September 13, 2018 at 5:09:24 AM UTC+2, Martin wrote:

Hi Martin,

> A well done (german) overview about micro computer chess:
> <http://www.andreadrian.de/schach/>
>
> The page features a lot of "screen shots",
> worth a look also for the non german speaking.

I know this page, very good overview in german.

> Btw, you also find the source code of sargon.
> http://www.andreadrian.de/schach/sargon.asm

I messed with this one already, not working well.
Pretty screwed scan with lots of bugs.
I found a PDF scan of the book which is more readable
in most parts.

> For completeness
> <http://www.retroarchive.org/cpm/games/sargon.zip>

This is Sargon 2, not Sargon.

> and
> CP/M CD-ROM: /LAMBDA/SOUNDPOT/F/OSSARGON.LBR

If I remeber right also Sargon 2.

Anyway, both versions now on the disk image chess.tgz at
https://www.autometer.de/unix4fun/z80pack/ftp/

Martin

unread,
Sep 13, 2018, 1:04:49 PM9/13/18
to
Udo Munk schrieb:
> On Thursday, September 13, 2018 at 5:09:24 AM UTC+2, Martin wrote:
>
> Hi Martin,
>
>> A well done (german) overview about micro computer chess:
>> <http://www.andreadrian.de/schach/>
>>
>> The page features a lot of "screen shots",
>> worth a look also for the non german speaking.
>
> I know this page, very good overview in german.
>
[...]

Hi Udo!

Thank you for taking the time, and putting that mess of links in the
right perspective.

Your hard work already done saved me a lot of time :-)

After a first inspection of all the binaries, I was totally lost.
Everywhere modifications to a similar codebase but without any
recognizable schema.

I actually was beginning to correct the OCR errors in the scans from
madscientistroom.

Better I just leave it as is, and play with more promising things.

Greetings Martin

Udo Munk

unread,
Sep 13, 2018, 1:40:16 PM9/13/18
to
On Thursday, September 13, 2018 at 7:04:49 PM UTC+2, Martin wrote:

> I actually was beginning to correct the OCR errors in the scans from
> madscientistroom.

Yep, doing that too. The idea is to get a correct source base with the
know bugs fixed and then port that to several machines. Tedious work
and will need some time...

Martin

unread,
Sep 13, 2018, 4:23:39 PM9/13/18
to
Udo Munk schrieb:
Really hope you succeed with that.

Have you noticed, at madscientistroom there are images of all the pages
of the book, between the pages you can open/download all the 100+
original scans linked with "Image of page XX for reference".

Suggest to ignore the *really bad* OCRed html text there.

Instead start with <http://www.andreadrian.de/schach/sargon.asm> and
back out the changes made by Andre:

;X CP/M port by Andre Adrian, 23dec2011
;X modified parts are marked with ;X

He obviously fixed the machine readable version and marked his changes.
Even added the corresponding page numbers from the book.

Martin

Udo Munk

unread,
Sep 13, 2018, 4:34:54 PM9/13/18
to
On Thursday, September 13, 2018 at 10:23:39 PM UTC+2, Martin wrote:
> Have you noticed, at madscientistroom there are images of all the pages
> of the book, between the pages you can open/download all the 100+
> original scans linked with "Image of page XX for reference".

Yes, but I have the complete book scanned in one PDF, I find this more
comfortable to use than 100+ scans.

> Instead start with <http://www.andreadrian.de/schach/sargon.asm> and
> back out the changes made by Andre:
>
> ;X CP/M port by Andre Adrian, 23dec2011
> ;X modified parts are marked with ;X

Well, assemble and link this program and see your self.

> He obviously fixed the machine readable version and marked his changes.
> Even added the corresponding page numbers from the book.

Formatting not fixed, still OCR errors or typos, not really working.
The one for the Jupiter III emulation seems to work, but no source for that one,
and I need this as starting point.

Martin

unread,
Sep 13, 2018, 7:17:14 PM9/13/18
to
Udo Munk schrieb:
>
> Well, assemble and link this program and see your self.
>

Ok, lets try ...

It needs the TDL Assembler for CP/M, found "TDL Stuff.zip" from
s100computers Assembler Collection.

Get sargon.asm, SARGON.COM from Andre. Also Jupiter-SARGON.zip and
Jupiter-SARGON-src.zip.

>
> Formatting not fixed, still OCR errors or typos, not really working.
> The one for the Jupiter III emulation seems to work, but no source for that one,
> and I need this as starting point.
>

Now it gets interesting :-)

Inside Jupiter-SARGON-src.zip is *another*
Jupiter-SARGON.zip with a smaller SARGON.COM (8832 Bytes).

Rename SARGON.COM from Andre to SARGONX.COM for reference.

Extract this smaller SARGON.COM and name it SARGONY.COM.

Assemble it...


zasm-tdl sargon o


TDL Z80 CP/M DISK ASSEMBLER VERSION 2.21
.MAIN.

tdl-link sargon


TDL LINKER (CP/M) 3/28/78
SARGON.COM (2402H, 10K)


Result...

$ ls -la SARGON* sargon*
-rw-r--r-- 1 martin users 9088 Dec 23 2011 SARGONX.COM
-rw-r--r-- 1 martin users 8832 Dec 19 2011 SARGONY.COM
-rw-r--r-- 1 martin users 98155 Dec 23 2011 sargon.asm
-rw-r--r-- 1 martin users 9088 Sep 14 00:35 sargon.com
-rw-r--r-- 1 martin users 263296 Sep 14 00:44 sargon.prn
-rw-r--r-- 1 martin users 7552 Sep 14 00:35 sargon.rel

$ cksum SARGON* sargon*
3818949195 9088 SARGONX.COM
3949416565 8832 SARGONY.COM
2555951587 98155 sargon.asm
3818949195 9088 sargon.com
2719842347 263296 sargon.prn
1595414158 7552 sargon.rel


Fine, binary matched the larger one at first try :-)

What's the difference between SARGONX.COM and SARGONY.COM?
Obviously 256 Bytes :-)

Looking inside using a very handy tool "vbindiff" from
<http://www.cjmweb.net/vbindiff/>.

The code starting with 0BF0' in the listing (0C00 absolute)
begins at 0B00 absolute, otherwise identical

Save a copy as sargon0.asm and change every .LOC:

$ diff sargon0.asm sargon.asm
189c189
< .LOC START+3EFH ;X START+2FFH
---
> .LOC START+2EFH ;X START+2FFH
379c379
< .LOC START+3F0H ;X START+300H
---
> .LOC START+2F0H ;X START+300H
2072c2072
< .LOC START+18F0H ;X START+1800H
---
> .LOC START+17F0H ;X START+1800H
2209c2209
< .LOC START+1AF0H ;X START+1A00H ; Above the move logic
---
> .LOC START+19F0H ;X START+1A00H ; Above the move logic


Assemble again, and sargon.com is identical to SARGONY.COM.

One of the two should work, not ok to start with?

Martin

Martin

unread,
Sep 13, 2018, 7:21:05 PM9/13/18
to
Martin schrieb:
>
> Assemble it...
>
>
> zasm-tdl sargon o
>
>
> TDL Z80 CP/M DISK ASSEMBLER VERSION 2.21
> ..MAIN.
>


Oops!

Actually assembled it with switch "d" to get a listing.
Important if someone tries to follow and sees the .prn

Martin

Udo Munk

unread,
Sep 14, 2018, 2:20:00 AM9/14/18
to
The offset of one page is because the program is loaded to 80H in the Jupiter.
Not possible under CP/M, so loaded to 180H.

The CP/M port is full of bugs, for example every input gets destroyed by
the CARRET macro, so you even cannot start the game. If one repairs
the macro to:

.DEFINE CARRET=
[PUSH PSW
PUSH B
PUSH D
PUSH H
LXI D,CRLF
MVI C,C.PRINTSTR
CALL BDOS
POP H
POP D
POP B
POP PSW]

it gets the input right at least, so you can try to play a game. If I see stuff like
this I just don't bother to look any further, I start over from the published
source and work from that.

dott.Piergiorgio

unread,
Sep 15, 2018, 3:46:26 AM9/15/18
to
also he done a good commenting work. A thing sorely needed in the CP/M
scene, I think.

Udo: the core issue of Sargon is that the source code was released in an
age where Changelogs and version/forking histories was basically unknown
(and a luxury in the age of the 256,256 bytes in the "standard" 8" SSSD
support...) no wonder that is hard to ID and classify those binaries of
all the variants stemming from that source release.

(not-so OT: I occasionally work around figuring how VULCAN.COM works; I
can now confirm that wasn't a rebranded dBII, but an actual DBI... I
wish I have more time to devote to CP/M research....)

Best regards from Italy,
Dott. Piergiorgio.

Peter Dassow

unread,
Sep 15, 2018, 11:27:13 AM9/15/18
to
Hi Udo,

interesting. I've found a slightly, different 2.3b of MyChess.
See my blog ( http://www.z80.eu/blog/ for further information ).
I was a bit confused about the graphics / ESC sequences for the chess
pieces, the version with N at the end of the filename looks way better
than the version without the N. In your archive is a MYCHESSX missing,
which looks again very different (the board display).
Not sure how to patch the MYCHESS without N to display useful chess
pieces (see the screenshots in my blog again).

Regards
Peter

Peter Dassow

unread,
Sep 15, 2018, 6:02:49 PM9/15/18
to
On 15.09.2018 at 17:27 Peter Dassow (me) wrote:
> On 12.09.2018 at 08:22 Udo Munk wrote:
>> Found an orginal copy of Sargon for CP/M and updated
>> the CP/M Chess disk image for z80pack. It now contains:
>>
>>
>> MYCHESS.COM   MyChess 1979, Z80 only
>> MYCHESSN.COM  MyChess 2.3 1983, Z80 only
>> MYCONFIG.COM  configure program for later one
>>
> Hi Udo,
>
> interesting. I've found a slightly, different 2.3b of MyChess.
> See my blog ( http://www.z80.eu/blog/ for further information ).
> I was a bit confused about the graphics / ESC sequences for the chess
> pieces, the version with N at the end of the filename looks way better
> than the version without the N. [...]

I have to answer the question about the strange ESC sequences by myself.
The version of MYCHESS.COM I've tested was already adapted for the
Kaypro 4/84 and their block graphics. I added a screenshot, looks way
better than before if ran on a Kaypro ;-)
0 new messages