Programs from The First Book of KIM

Discuss software for the Micro-KIM and KIM-1

Postby jmmm » Apr Sun 27, 2008 8:05 am

Hello,
I tried loading the asteroid game and found it wouldn't work on my micro-kim. A little digging later, and I found that the game was trying to use the timer on the 2nd 6530. I swapped it to the other timer and I was up and running. The mod changes the two bytes as follows:
0280: 46
0283: 47
Also, the copy that came on the CD had a small typing error.
02C7:F1

Here is the new code:
Code: Select all
      ;180200A90085F985FA85FBA206BDCE0295E2CA10F8A5E849FF85E80F00
      ;180218A205204802209702CAD0F720401F206A1FC91510E5C900F00941
      ;18023006C903F00AD0DB06E7A940C5E7D0D346E7D0CF3826E7D0CA0E91
      ;180248A97F8D4117A9098D4217A92085E0A002A90085E1B1E225E00B7E
      ;180260F007A5E119E40085E18810F0A5E1C4E8D008A4E0C4E7D0020EED
      ;18027809088D4017A9308D4617AD4717F0FBA9008D4017EE4217EE0A02
      ;180290421746E0D0C060C6E9D01AA93085E98A48A2FDF838B5FC690EB4
      ;1802A80095FCE8D0F7D868AAE6E2A5E2C930F009A000A5E731E2D0103C
      ;1802C00760A90085E2F0F1201F1F4CC802D50208400104FF00000008C9
      ;1802D804000800061200110005002C001600290016002B002600190217
      ;00000A000A


Now, I'm having fun cruising through the LED cosmos. :)
Thank you Mr. Briel for a great product.

JMMM
jmmm
 
Posts: 10
Joined: Apr Thu 24, 2008 6:12 am

Postby jmmm » Apr Mon 28, 2008 9:11 am

Here is the KIM-TAC-TOE game:

The first section starts at 0100

Code: Select all
      ;1801004C1003EAEAEAA92015BF95BF60EAEA0808084040400101010936
      ;18011801040701020301030205080405060505030609070809090700A9
      ;18013085D9A209A5D935DB24D9D003CAD0F560B5BFD002F6DB60950EAB
      ;180148BFA008A90099C800BE1701208A03BE1F01208A03BE27012007E6
      ;1801608A0388D0E6600040000000000000004020000000000000000444
      ;0000050005


The second section starts at 0200


Code: Select all
      ;180200A900A21D95B4CAD0FBA90585BBA00420F203A204D5BBF0F70D24
      ;180218CAD0F999BB0088D0EEE6B6A00420F203A205D5B6F0F7CAD00F67
      ;180230F999B60088D0EEA903A008D9C800F00588D0F8F015BE17010CED
      ;180248200601BE1F01200601BE27012006014CFE02A209A9C035BF06EF
      ;180260F00ECAD0F7A209200601CAD0FA4C1503E6B5A5DBD01720A60C9B
      ;18027803F0FBC90AB0F7AAB4BFD0F2A940204701E6DBD0AA204C030DD4
      ;180290E6D1D0F9A90820C803A90220C803A90420C803A90120C8030A89
      ;1802A8A9C0203001D043A930203001D03CA908203001D03520B30308A2
      ;1802C0290FC5D2B01FA4B5C001D0042901D017C004D00624C4300D0A36
      ;1802D87007A902203001D011A005D002A009B6B6B5BFF00588D0F70B8A
      ;1802F0F0F3A980204701C6DBA90C4C3902A5DBD004C6D2100FE6D20D1E
      ;180308A910C5D290F4B005A90C85D2D820A603A001C913F02888C90C3F
      ;18032012F023C914D0EEA90D85FBA9D585FAA5D285F9201F1F20400CE1
      ;1803381F206A1FC911F0D5B0E585D290E184DB4C0002EAA97F8D410CA4
      ;18035017E6DAA000A20BB9C00085FCF0142920F00424DA700CA5FC0BE5
      ;1803682940D00AA5DA2908F004A900F003B90F0184FC204E1FC8C00A64
      ;18038009F006E011F0CED0CE60B5BF85D924D930067008A900F0060C63
      ;180398A904D002A9011879C80099C80060204C0320401FF0F8206A0956
      ;1803B01FAA60D838A9D465D765D885D3A204B5D395D4CA10F960EA0F06
      ;1803C885D9A20916DB16DBCAD0F9A008A5D9D9C800D012BE1701200D00
      ;1803E04001BE1F01204001BE270120400188D0E46020B303290E050770
      ;1803F8B6F0F7C90AB0F360BF122710800444380C500000002802FF0A13
      ;0000160016


Enjoy,
JMMM
jmmm
 
Posts: 10
Joined: Apr Thu 24, 2008 6:12 am

Postby jmmm » May Sun 04, 2008 7:40 pm

Here is the Bitz Program


Code: Select all
      ;180200D8A901851D20401F206A1FC514F0508514C915F01CA61CD00994
      ;1802180CC516D042AABDE71F851CD03AC517D036AABDE71F851DD00C04
      ;1802302EA61DF02AA900851C851DAD4417AA290F85178A4A4A4A4A0879
      ;18024885168615A2FCA90026152A26152AA8B97B02951CE8D0EFA90A88
      ;1802607F8D4117A009A2FAB51E8D40178C4217C611D0FCC8C8E8300C0A
      ;180278EF108A14122422A0ED08062E2207005800801110000418FE068C
      ;0000060006


JMMM
jmmm
 
Posts: 10
Joined: Apr Thu 24, 2008 6:12 am

Re: Programs from The First Book of KIM

Postby uridium » Nov Wed 23, 2011 5:07 pm

I've been having heaps of fun running these on my KIM.. Thanks for your work guys. Is it worth someone putting an archive of them all somewhere with a destruction guide as to the load'n'run points for newbies?

Al
--
Al Boyanich
adb -w -P "world> " -k /dev/meta/galaxy/ksyms /dev/god/brain
User avatar
uridium
 
Posts: 12
Joined: Jul Sun 31, 2011 11:21 pm
Location: Sydney N.S.W, Australia

Re: Programs from The First Book of KIM

Postby MOS6502 » May Tue 29, 2012 12:08 pm

Here is the code of Bagels from the 'First Book of KIM':

Code: Select all
;180200E61620401FD0F9D8A90A8518A903851038A51365166517850933
;18021812A204B5129513CA10F9A610A0C08411A006C5119002E51109DB
;180230461188D0F518690A9500C61010D2C618307AA900A20C9504093E
;180248CA10FB20CE02F0FB20CE02F0F6A508F00829604960F0A9D00D28
;180260DD206A1FC910B0E3C90A90DFA8A610E610B9E71F950498D50CC7
;18027800D003E60E8A950AA507F031A003B90A002918F012B9000008B1
;180290A203D50AF005CA10F93004E60F160A8810E4A201B40EB9E70AC0
;1802A81F9508CA10F620CE02E60FD0F920CE02D0FBF08FA203B4000C8F
;1802C0B9E71F9504CA10F6A9E38508D0E0A013A205A97F8D4117B50CE7
;1802D8048D40178C4217E611D0FC8888CA10EF20401F60FFFFFFFF0D36
;00000A000A

Program starts at 0200. Display will be blank at start (see description in the book), just start typing.
Motorola 6800, Intel 8080, Fairchild F8, Rockwell PPS8... MOS 6502 Microprocessor beats 'em all!
User avatar
MOS6502
 
Posts: 8
Joined: May Mon 28, 2012 12:26 pm
Location: Helsinki - Finland

Re:

Postby cappy2112 » Oct Wed 29, 2014 1:02 am

jburke71 wrote:Here's multi-maze from Pg. 88. Pretty cool little program. I gotta hack this one apart and figure out how they did it.

Code: Select all
;180200E6D020401FD0F9A20726D09017BC0803BD100359DE0299DE0AA5
;18021802C8C8BD180359DE0299DE02CA10E2A202D830D4BDDB02950BB9
;180230D2CA10F8A00BB1D299D8008810F8A20AA4D4A9FF3836D9360D66
;180248D82A88D0F72907A8B9C60295D8CACA10E7C6D5100AA905850CEC
;180260D5A5DE494085DEA97F8D4117A009A20AB5D88D40178C42170B76
;180278C6D6D0FCC8C8CACA10EE20401F206A1FC5D7F0CD85D7A2040E9F
;180290DDCE02F005CA10F830BCCA308DBCD302B9D8003DD702D0B10D4A
;1802A8CA1004C6D4D085D004E6D4D0F8CAD006C6D2C6D2D0EFE6D2112C
;1802C0E6D2D0E9F0F20008404801094149130901060406060408010791
;1802D8084040DA0208FFFF0400F57F150041FE5F04517D5D0451B609C1
;1802F05414F7D504547F5E0100FDFF0000000000000000000000000670
;180308050B101014181710010480108002404002024001100480100326
;00000C000C17F7


Jason


Why does this program have the extra 4 digits on the last line ->17F7?
This doesn't correlate to the paper tape dump spec.
cappy2112
 
Posts: 48
Joined: Sep Fri 26, 2014 12:28 am

Re:

Postby cappy2112 » Nov Wed 12, 2014 4:16 pm

jburke71 wrote:Here's a list of the programs in "The First Book of Kim", and the ones that we have a papertape dump for...

Recreation Programs

Pg 24: Addition *** Done ***
Pg 26: Asteroid *** Done ***
Pg 29: Bagels
Pg 34: Bandit *** Done ***
Pg 38: Bitz
Pg 40: Blackjack *** Done ***
Pg 46: Black Match
Pg 48: Card Dealer *** Done ***
Pg 50: Chess Clock
Pg 52: Clock
Pg 56: Code Test
Pg 59: Craps *** Done ***
Pg 62: Duel
Pg 64: Farmer Brown *** Done ***
Pg 67: Hi-Lo
Pg 69: HorseRace *** Done ***
Pg 72: Key Train
Pg 73: Kim Nim
Pg 77: Kim-Tac-Toe
Pg 84: Lunar Lander *** Done ***
Pg 88: Multi-Maze *** Done ***
Pg 91: Music Box
Pg 95: Ping Pong
Pg 100: Quick
Pg 101: Reverse
Pg 103: Teaser
Pg 106: Timer
Pg 107: Wumpus *** Done ***

Utilities

Pg 115: Branch *** Done ***
Pg 116: Browse *** Done ***
Pg 118: Directory
Pg 119: HyperTape
Pg 122: Memory Test *** Done ***
Pg 124: Mini Dis
Pg 127: Movit *** Done ***
Pg 129: PLL Set
Pg 130: Relocate
Pg 136: Sort
Pg 138: Super-Dupe
Pg 141: Verify Tape
Pg 141: Vu-Tape


Jason

Where are these files?
Are they in this forum- on in your dropbox account?
Would you make them public, so to avoid making typos?

I will use them to help test my disassembler.
cappy2112
 
Posts: 48
Joined: Sep Fri 26, 2014 12:28 am

Re: Programs from The First Book of KIM

Postby tranter » Mar Sun 08, 2015 12:17 pm

Just an FYI: I don't own a Micro-KIM but I have a real KIM-1 and I have been entering source code for the programs from The First Book of KIM. You can find it at https://github.com/jefftranter/6502/tre ... tBookOfKIM.

These versions build using the CC65 6502 assembler. Paper tape files are also included.
User avatar
tranter
 
Posts: 96
Joined: Jan Sun 15, 2012 6:39 pm
Location: Ottawa, Ontario, Canada

Re: Programs from The First Book of KIM

Postby tranter » Mar Mon 23, 2015 8:53 am

Just an update: All of the programs from the Games and Utilities chapters are now there. Also the KIM-1 ROMs and Microchess.
See https://github.com/jefftranter/6502/tre ... /asm/KIM-1

I also created a quick reference: https://github.com/jefftranter/6502/blo ... erence.pdf
User avatar
tranter
 
Posts: 96
Joined: Jan Sun 15, 2012 6:39 pm
Location: Ottawa, Ontario, Canada

Previous

Return to Software

Who is online

Users browsing this forum: No registered users and 3 guests

cron