| View previous topic :: View next topic |
| Author |
Message |
Ron Murawski
Joined: 29 Oct 2006 Posts: 272 Location: Schenectady, NY
|
Post subject: Re: Your first chess program. Posted: Mon Apr 23, 2012 12:16 am |
|
|
I started out in 1981 on a Sinclair ZX80. It looked like a door wedge.
http://oldcomputers.net/zx80.html
It had a membrane keyboard that was almost unusable. I added a 32K RAM pack (for $150!). Hitting the membrane keys caused the RAM pack to wobble and would crash the machine. I quickly modified the computer by cutting into the case and added an external full-sized keyboard.
I learned Basic from the excellent Sinclair manual. Basic was not only a programming language, it was also the operating system. Back then you booted to a Basic prompt.
I soon realized Basic was a very slow language, so I learned Z80 assembly language. In the Sinclair you would create a long REM statement, and then poke in your machine code. You could then call the machine code using the following Basic line:
RAND USER 16514
where 16514 was the address of the first REM line. (That's why you needed to put it first, otherwise it got messy trying to calculate where your machine code would be located in memory.)
I remember using Z80ASM to assemble my programs
http://z80cpu.eu/mirrors/oldcomputers.dyndns.org/manuals/z80asm.pdf
At the heart of Z80ASM was something called the 'Dirty Dog' assembler - it was a quick and dirty implementation and programmers were often heard saying "You dirty dog!", hence the name. I kinda remember saying things that were worse than that... I remember disassembling the Z80ASM program and finding a text string right at the beginning saying: "Nosy, aren't you?"
After upgrading my machine to a Sinclair ZX81 (and immediately modifying it to accept my external keyboard), I bought the Sinclair disassembled ROM code and it became easy to call math and I/O functions from assembly language.
http://k1.dyndns.org/Vintage/Sinclair/80/Sinclair%20ZX81/ROMs/zx81%20version%202%20%27improved%27%20rom%20disassembly%20%28Logan,%20O%27Hara%29.html
I wrote a chess move generator in Z80 asm and it did a 7-deep perft in about 10 seconds. But, when I printed out the chess board, it would occasionally 'lose' a piece that the move generator had inexplicably lost. It was a very buggy piece of software and I never fully debugged it.
I did not return to chess programming until 2000. |
|
| Back to top |
|
 |
|
| Subject |
Author |
Date/Time |
Your first chess program. |
Dan Honeycutt |
Fri Apr 20, 2012 1:07 pm |
Re: Your first chess program. |
Martin Sedlak |
Fri Apr 20, 2012 1:28 pm |
Re: Your first chess program. |
Sam Hamilton |
Fri Apr 20, 2012 2:15 pm |
Re: Your first chess program. |
Joshua Shriver |
Sun Apr 22, 2012 4:54 am |
Re: Your first chess program. |
Ted Wong |
Sun Apr 22, 2012 6:28 am |
Re: Your first chess program. |
Thomas Petzke |
Fri Apr 20, 2012 2:02 pm |
Re: Your first chess program. |
Don Dailey |
Fri Apr 20, 2012 4:07 pm |
Re: Your first chess program. |
Gerd Isenberg |
Fri Apr 20, 2012 5:31 pm |
Re: Your first chess program. |
H.G.Muller |
Fri Apr 20, 2012 6:10 pm |
Re: Your first chess program. |
Jan Brouwer |
Fri Apr 20, 2012 7:05 pm |
Re: Your first chess program. |
Mark Lefler |
Sat Apr 21, 2012 11:59 pm |
Re: Your first chess program. |
Don Dailey |
Sun Apr 22, 2012 12:11 am |
Re: Your first chess program. |
Ed Schroder |
Sun Apr 22, 2012 8:28 am |
Re: Your first chess program. |
Don Dailey |
Sun Apr 22, 2012 11:23 am |
Re: Your first chess program. |
J. B. Buijs |
Sun Apr 22, 2012 2:03 pm |
Re: Your first chess program. |
Don Dailey |
Sun Apr 22, 2012 2:22 pm |
Re: Your first chess program. |
Dan Honeycutt |
Sun Apr 22, 2012 4:18 pm |
Re: Your first chess program. |
Don Dailey |
Sun Apr 22, 2012 4:23 pm |
Re: Your first chess program. |
Dan Honeycutt |
Sun Apr 22, 2012 4:31 pm |
Re: Your first chess program. |
Ed Schroder |
Sun Apr 22, 2012 5:11 pm |
Re: Your first chess program. |
Julien MARCEL |
Sun Apr 22, 2012 7:35 pm |
Re: Your first chess program. |
Robert Hyatt |
Fri Apr 20, 2012 7:34 pm |
Re: Your first chess program. |
Julien MARCEL |
Fri Apr 20, 2012 11:33 pm |
Re: Your first chess program. |
J. B. Buijs |
Sat Apr 21, 2012 6:27 am |
Re: Your first chess program. |
Evert Glebbeek |
Sat Apr 21, 2012 6:32 am |
Re: Your first chess program. |
Jon Dart |
Sat Apr 21, 2012 7:27 pm |
Re: Your first chess program. |
Martin Brown |
Mon Apr 23, 2012 10:19 am |
Re: Your first chess program. |
Jon Dart |
Tue Apr 24, 2012 12:01 am |
Re: Your first chess program. |
Harald Lüßen |
Sat Apr 21, 2012 11:20 pm |
Re: Your first chess program. |
F. Bluemers |
Sat Apr 21, 2012 11:44 pm |
Re: Your first chess program. |
Harald Lüßen |
Sun Apr 22, 2012 8:43 am |
Re: Your first chess program. |
Matthias Hartwich |
Mon Apr 23, 2012 8:11 pm |
Re: Your first chess program. |
Thorsten Czub |
Tue Apr 24, 2012 6:50 pm |
Re: Your first chess program. |
Joshua Shriver |
Sun Apr 22, 2012 4:43 am |
Re: Your first chess program. |
Ron Murawski |
Mon Apr 23, 2012 12:16 am |
Re: Your first chess program. |
Vincent Diepeveen |
Mon Apr 23, 2012 8:38 am |
Re: Your first chess program. |
Evert Glebbeek |
Mon Apr 23, 2012 8:45 am |
Re: Your first chess program. |
Ron Murawski |
Wed Apr 25, 2012 4:45 am |
Re: Your first chess program. |
Martin Brown |
Mon Apr 23, 2012 9:36 am |
Re: Your first chess program. |
John Merlino |
Tue Apr 24, 2012 1:06 am |
Re: Your first chess program. |
Vincent Diepeveen |
Tue Apr 24, 2012 5:28 pm |
Re: Your first chess program. |
John Merlino |
Tue Apr 24, 2012 6:41 pm |
Re: Your first chess program. |
Oscar Toledo G. |
Fri May 04, 2012 5:28 pm |
Re: Your first chess program. |
Giorgio Medeot |
Thu May 10, 2012 3:50 pm |
|
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 vote in polls in this forum
|
|