HP-67 FUN rom documentation thread
|
11-30-2016, 07:23 PM
(This post was last modified: 11-30-2016 08:01 PM by Dieter.)
Post: #2
|
|||
|
|||
RE: HP-67 FUN rom documentation thread
(11-30-2016 05:07 PM)Gene Wrote: There are some items that still need to be done. By PROGRAM, here is what is needed. OK, here is some first information. ============================================================ "2636" Registers: Game of 26: 00: random seed 01: bank 02: counts occurences of user's number 03: loop counter (13 runs) 04: loop counter (10 dice per run) 05: user's number, amount won/lost Game of 36: 00: random seed 01: bank 02: control number for indirect call (8=user, 9=HP) 03: user's score 04: HP's score 05: bet Relevant Labels: A: Start game of 26 B: Enter bet, start game of 36, user first C: Enter bet, start game of 36, HP first D: show bank 08: user rolls a die 09: HP rolls a die 77: roll a die, display scores, check if > 36. 88: adjust and display amount won/lost, show bank 99: roll a die (random number between 1 and 6) 00...03, 06, 07: used Flags: 00: set if score > 36 01: set=user first, clear=HP first ============================================================ "CH" Registers: 01: move counter Relevant Labels: 01: append "P" for pawn 02: append "N" for knight 03: append "B" for bishop 04: append "R" for rook 05: append "Q" for queen 06: append "K" for king 07: display HP's move (calls 98), get user's move and divide by 10 08: second last move 09: display final move, "checkmate" 98: decode move, generate Alpha incl. "check" (if applicable) 99: display HP's move (calls 98), get user's move 00, 10...15: used ============================================================ "GOLF" Registers: 00: random seed 01: distance to hole 02: modified user input at E, loop counter 03: user input at B, C, D 04: shot counter Labels: 01: used 02: putter loop 03: displays distance to hole in yards or feet 04: reads and checks user input at B, C, D A: new game B: Enter 1..4, hit a wood club C: Enter 1..9, hit an iron D: Enter 1..3, hit a wedge E: Enter 1..15, use the putter ============================================================ I would rather see XROM "S" and XROM "R" in the listings (instead of 23,25 and 23,26). The seed does not require at least 6 decimals, not even preferably. Actually it does not matter whether you enter 0,3 or 0,345678 – one is as good as the other. The seed should have at most 9 decimals, preferably up to 6. "GOLF": Typo at 2b): "shows" instead of "shots". "JT": the instructions should say that the secret number is between 0 and 99. ;-) "CHK": the instructions need some major corrections. The output is different from what's mentioned there (nothing "left or right of the decimal point", missing WIN/PAY message, first example should read 5, 56, 566, etc.). "SD": I posted an optimized version that requires less registers (and clears flag 29 ;-)). Obviously it did not make it into the ROM. Dieter |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)