6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Mon Apr 29, 2024 7:09 pm

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Wed Oct 05, 2005 2:25 am 
Offline

Joined: Sun Aug 28, 2005 9:01 pm
Posts: 17
Location: Pennsylvania
Howdy everyone,

Until the past few days, I had never played a game of chess. :oops:

Nevertheless, I wanted to check out Daryl Rictor's modified version of Peter Jennings' MicroChess.
Needing a DOS run assembler, I downloaded TASM 3.01 from Speech Technology (see bottom of the page).

I had to make a few changes to Daryl's source file as follows:

TASM doesn't like "LABEL = $hhhh (or $hh) " , used "LABEL .EQU $hhhh (or $hh) " instead.
TASM doesn't like "*=$hhhh" , used ".ORG $hhhh" instead.
TASM encodes "LSR" as "LSR $00" , used "LSR A" instead.
NMOS 6502 can't do "PHY" or "PLY", used "STY YSAV", LDY YSAV instead.

I also need to make changes to my own internal source file:
I need to learn to play a better game of chess... :D

'Hope this helps any fellow newbies here.

Thx for the fun,
Brian


Top
 Profile  
Reply with quote  
PostPosted: Wed Apr 03, 2024 4:38 am 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3349
Location: Ontario, Canada
Enticed by a post on Hacker News, I've just finished reading Microchess for the Kim-1, a very engaging March, 2006 retrospective written by MicroChess author Peter Jennings.

Microchess for the Kim-1 was the first game program sold for home computers. After six months of development, the first copy was shipped on December 18, 1976. (And about three years later, it was Jennings who, along with VisiCorp co-founder Dan Fylstra, released the historic "killer application" VisiCalc, the first spreadsheet computer program for personal computers. :shock: )

    "I knew from the articles in Byte that the 8080 was capable of real computing, but I didn't know about the 6502. In order to satisfy my curiosity about the capabilities of both chips, and having access to a Xerox Sigma IX Time Sharing computer at work, I wrote a simulator for each chip. There is nothing like writing a simulator to focus the mind on understanding the instruction sets for the two chips. The simulators were written in APL. At the end of this exercise I was firmly convinced that I would much rather program a 6502 than an 8080. [...]

    "A well written program is a work of art. From conception to final presentation, the activity is that of an artist - the embodiment of a dream world expressed as an interactive experience for the user.

    "This is the way I have always felt about programming. And in particular, from its early stages, I thought of Microchess as my work of art.

    "But the creation of Microchess was also the fulfillment of another dream. I very much wanted to start a business of my own. Because of the lower financial barriers to entry, I knew that it would probably be a mail order business. [...]


    "One day, I asked [MOS Technology's Rick Simpson] if he would allow me to insert advertising flyers in the Kim-1 packages they shipped. He discussed it with management, and the company agreed. From then on, every Kim-1 shipped contained a goldenrod colored flyer advertising Microchess. One out of every three purchasers of the Kim-1 ordered Microchess on cassette.

    "At the time, I was still working for Comshare during the day and filling orders for Microchess at night. We had just moved from our apartment to a small house in downtown Toronto when the news of Microchess reached the installed base of Kim-1 owners. I arrived home from work to find two large canvas bags marked “Canada Post” on our front doorstep. I didn't understand. Why had our letter carrier left his bags there? It seemed very odd."

For a look at the source code, see MicroChess by Peter Jennings, modified by Daryl Rictor here on 6502.org. According to Jennings, "After a lot of trial and error and some rigorous analysis, I settled on a state machine design, which allowed the use of recursion to work through the advancing positions as moves were generated and evaluated. A move stack allowed the retracing of moves back to the original position."

And should you wish experience the power of MicroChess on a KIM-1 with 1K of RAM 8) the article includes links to simulators that run on 21st Century hardware!

-- Jeff


Attachments:
hexdump.gif
hexdump.gif [ 58.46 KiB | Viewed 4516 times ]

_________________
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html
Top
 Profile  
Reply with quote  
PostPosted: Wed Apr 03, 2024 6:12 am 
Offline

Joined: Mon Jan 19, 2004 12:49 pm
Posts: 664
Location: Potsdam, DE
While moving house recently, I came across the Z80 listing for the Spracken's Sargon chess program - I bought the book years ago and attempted to port it somehow to 6502, but never quite got around to it... one day :mrgreen:

Neil


Top
 Profile  
Reply with quote  
PostPosted: Wed Apr 03, 2024 7:38 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10793
Location: England
Splendid post Jeff, thanks!


Top
 Profile  
Reply with quote  
PostPosted: Sun Apr 07, 2024 10:20 am 
Offline
User avatar

Joined: Fri Oct 31, 2003 10:00 pm
Posts: 199
http://retro.hansotten.nl/6502-sbc/kim- ... re/#mchess

where I document Microchess for the KIM-1, original manual and articles..

Has source (in TASM format!) that delivers an exact binary as from my dumped original audio tape.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: