home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / kaypro / kp-cboot.doc < prev    next >
Text File  |  1984-07-10  |  5KB  |  94 lines

  1. J. Steele
  2. 7-6-84
  3.  
  4. COLD BOOT INITIALIZATION K10 CPM 2.2 F
  5.  
  6. Purpose: KAYPRO, in it's corporate wisdom decided to go for the most common
  7.          IO configuration which is 300 baud on the serial ports and using
  8.          the parallel printer.  Those who don't do this, and especially
  9.          those who use a variety of customized CP/M's have to use CONFIG
  10.          or a special boot-up routine to overcome the Kaypro scheme. The 
  11.          following technique avoids this problem once and for all plus
  12.          you learn a few added things about the "inner" secrets of the
  13.          Kaypro BIOS. (It might be easier on Kaypro to release the BIOS
  14.          and let the hackers have at it. No telling what good things might
  15.          be done.)
  16.  
  17. ----------------------------------------------------------------------------
  18.  
  19. On the COLD BOOT the IO byte and the baud ports are initialized from high
  20. memory locations which means we can get to them for our own needs.
  21.  
  22.     o The initial IO byte is loaded from EA33h
  23.     o The initial Printer Baud is loaded from EA48h
  24.     o  "    "     Modem    "    "   "     "   EA47h
  25.  
  26. --------------------------------------------------------------------------
  27.  
  28. These locations are on either side of the cursor-keypad table which makes
  29. them very easy to find and change with EDFILE to eliminate continual 
  30. use of the (barf) CONFIG program.
  31.  
  32.  
  33.  +-> This is the IO byte                                    +----> Modem Bd
  34.  |    +>cursor <+  +--> keypad table here <---------------+ |  +-> Printer Bd
  35.  |    | keys    |  |                                      | |  |
  36. 81 00 0B 0A 08 0C 30 31 32 33 34 35 36 37 38 39 2D 2C 0D 2E 05 05
  37.       ^  v  <- ->| 0  1  2  3  4  5  6  7  8  9  -  , EN  .|
  38.       up dn lf rt|   keypad face values for above bytes    |
  39. --------------------------------------------------------------------------
  40. Changing the values with the EDFILE disk editor (any will do that can find
  41. a string in the file)
  42.  
  43. >EDFILE PUTSYS.COM   (whatever putsys you are using)
  44.  
  45. S \123456\           (search for the string "123456"
  46.  
  47. This will put you in the sector and you can edit the appropriate bytes
  48. as you desire. Consult the KAYPRO manual for baud rates and any good
  49. CPM text for a discussion of the IO byte.
  50. --------------------------------------------------------------------------
  51.  
  52. The IO byte is comes stock set to 81h which enables the Parallel Printer
  53. and can be set for the serial printer by changing it to 01h. Don't make
  54. any other changes as the PUNCH and READER don't care and if you set the
  55. CONSOLE to 0 it will bring the system up looking to the PRINTER port
  56. for keyboard-screen. Nice, though if you use the K10 with a "real"
  57. terminal.
  58.  
  59. Both the MODEM and PRINTER baud come in set at 300 baud which is  05h.
  60. I set the printer to 07h as I use a 1200 baud serial printer. (an OKI
  61. that has a parallel port but is two feet too far from the box and I
  62. can make a long RS232 cable a heck of a lot cheaper than a Centronics)
  63.  
  64. Note that at the same time, you can alter the initial values of the cursor
  65. keys and the keypad. The keypad keys can be changed directly to a single
  66. byte value or by changing the desired key to 00h you may then make up to
  67. a 4 byte value in the table which follows this stuff. Best to do what you
  68. want with config first, use DDT to look at the area and then make the final
  69. edit with EDFILE or another disk file editor. (I am assuming this isn't
  70. compu-garbage talk to you, but if it is, then you need the experience of
  71. learning a bit more before you hack up the main software of the machine)
  72.  
  73. When you have made your changes, just run the PUTSYS (or whatever) and 
  74. reboot from a RESET. If the computer chokes, try again. I suggest you 
  75. work on RENamed copies of PUTSYS.COM to avoid junking your on disk
  76. backup. These bytes only affect the COLD boot from power-up or reset so
  77. any later finagling you do with Config, Stat, or Whatzit.com will be on
  78. your head.
  79.  
  80. The only r-e-a-l bad thing you can do playing around with the BIOS
  81. would be to accidentally call on the ROM monitor to junk up a disk
  82. area. This doesn't even go close. (Ask me about the time a WS went
  83. bonkers and dumped a file on the directory tracks - Real soon after,
  84. KAYPRO gave me a brand new main board, HD controller and a new Hdisk
  85. that worked right. That was before the bean counters started adding up
  86. the cost of in-the-field fixes on THEIR engineering errors. They've
  87. stopped being so nice now, but Lord help you with the first versions of
  88. the Western Digital board. The big expensive chips roast out and KAYPRO
  89. only stocks assemblies, not replacement chips. $210 in exchange cost to
  90. the dealer. Ask me how I know!!) 
  91.  
  92. THAT'S ALL FOLKS !!!!!
  93.  
  94. PS: Works just fine with ZCPR2 for the K-10. Enjoy!