4K HP 67 Games rom attached for testing
|
11-19-2016, 09:46 PM
Post: #141
|
|||
|
|||
RE: 4K HP 67 Games rom attached for testing
Ok, it looks like it is working.
I was out of range. I think we are good to send off once I play a few more games. Hopefully Robert can play a bit to check. |
|||
11-19-2016, 10:48 PM
Post: #142
|
|||
|
|||
RE: 4K HP 67 Games rom attached for testing
(11-19-2016 09:46 PM)Gene Wrote: Ok, it looks like it is working. I just added a sample game to my last post. Maybe you want to try it and see if you can reproduce the results. And please don't forget the FIX 2. Just to be sure. ;-) Dieter |
|||
11-19-2016, 11:01 PM
Post: #143
|
|||
|
|||
RE: 4K HP 67 Games rom attached for testing
FIX 2 noted and included. ty
|
|||
11-20-2016, 12:47 AM
(This post was last modified: 11-20-2016 01:05 AM by Gene.)
Post: #144
|
|||
|
|||
RE: 4K HP 67 Games rom attached for testing
Urgent:
Does the AOS program have a problem? I did a XEQ AOS to initialize. Then I did 1 + 2 = and it shows 0. ? Code: 01 LBL "AOS" Link to AOS raw file: AOS raw file The code should have the fix for this NOP: NOP Original write-up from PPC Journal: AOS PPC Journal article Gene: I think it has a problem. :-( |
|||
11-20-2016, 02:31 AM
Post: #145
|
|||
|
|||
RE: 4K HP 67 Games rom attached for testing
Until we figure out if there is a problem in the AOS, this is the version that will go in. It gives answers instead of zeroes. :-)
AOS into .rom |
|||
11-20-2016, 05:11 PM
(This post was last modified: 11-20-2016 05:48 PM by Dieter.)
Post: #146
|
|||
|
|||
RE: 4K HP 67 Games rom attached for testing
(11-20-2016 02:31 AM)Gene Wrote: Until we figure out if there is a problem in the AOS, this is the version that will go in. It gives answers instead of zeroes. :-) Yes, there is a problem that I fixed in the last version I got here – but obviously the wrong one went into the zip file I posted. The problem is in the Equals-routine (E) which finally calls the clear-all routine (XEQ a) at a point where the final result is in X. Due to the CLST in the clear-routine this value is lost. So your program works correctly, it just clears its result right before returning it. #-) The attachment includes two versions: AOS_3 uses CLRG and thus clears all the 41's data registers. Here the final result is saved in Z and finally recalled by two RDNs (same as the original progam). AOS_3a uses a CLRGX loop that clears only R00...R22 and saves the result in LastX so that it can be finally recalled from there after the clearing is done. Both versions should work, both have a specific advantage: AOS_3 is faster, but clears all data registers, while AOS_3a clears only the required ones but takes 2-3 seconds longer for each "AOS" and "=" call due to the clear loop. If a complete CLRG is fine for you, use AOS_3. Edit: I wonder if this CLRG is required at all. After the stack pointers are reset everything should work without setting all registers to zero. Gene, could you try this by loading AOS_3 and removing the initial CLRG? I have filled R00...R22 with random numbers and the program seems to work fine without clearing the registers. Dieter |
|||
11-20-2016, 05:20 PM
(This post was last modified: 11-21-2016 07:42 AM by Dieter.)
Post: #147
|
|||
|
|||
RE: 4K HP 67 Games rom attached for testing
(11-20-2016 12:47 AM)Gene Wrote: Does the AOS program have a problem? I did a XEQ AOS to initialize. Then I did 1 + 2 = and it shows 0. Here is/was the problem: The final result is recalled by RCL IND 23 and then the whole operation stack is cleared (XEQ a). Here the result is lost due to the CLST (and four other values filling the stack) in that routine. Two fixed versions are attached to my previous post. (11-20-2016 12:47 AM)Gene Wrote: The code should have the fix for this NOP: NOP Excuse me, but what is this "NOP" supposed to mean? You have used this term in a few posts and it seems to mean something like a bug report. Here I expected some way of doing a NOP = "no operation" on a '41. #-) Of course this fix is and was included in AOS and AOS_3/3a. Dieter |
|||
11-20-2016, 07:12 PM
(This post was last modified: 11-20-2016 07:13 PM by Dieter.)
Post: #148
|
|||
|
|||
RE: 4K HP 67 Games rom attached for testing
(11-20-2016 02:31 AM)Gene Wrote: Until we figure out if there is a problem in the AOS, this is the version that will go in. I see there is already one download of the fixed version 3/3a, and I guess I know who did it. ;-) Anyway, here is the AOS version 4 which I am currently testing. It has no CLRG or another clearing routine, and it recalls the final result after an "=" operation directly from R13. Also note the SF22 instead of CF22 on startup which allows starting with an operator key (and x=0). Maybe you can try this one as well. Dieter |
|||
11-20-2016, 07:41 PM
Post: #149
|
|||
|
|||
RE: 4K HP 67 Games rom attached for testing
(11-20-2016 05:20 PM)Dieter Wrote: Excuse me, but what is this "NOP" supposed to mean? You have used this term in a few posts and it seems to mean something like a bug report. Here I expected some way of doing a NOP = "no operation" on a '41. #-) Gene: NOP was a column heading for corrections in the PPC Journal for many years. It might be article corrections, programming errors, etc. Here's a link to a two page illustration of the Journal cover page and the page showing the NOP column: PPC V5N4 NOP |
|||
11-20-2016, 07:55 PM
Post: #150
|
|||
|
|||
RE: 4K HP 67 Games rom attached for testing
AOS_3 is the one going into the rom.
I played with AOS4, but I think it has a bit more tweaking to do. Great idea, but I need to get the files to Angel and AOS3 seems to work fine. AOS4 had a problem with this: ( 1 + 2 ) * ( 2 + 3 ) = It showed a 0 in the middle of the calculation and gave a 0. AOS3 is a great program! :-) |
|||
11-20-2016, 08:02 PM
Post: #151
|
|||
|
|||
RE: 4K HP 67 Games rom attached for testing
Link to PDF of all program listings in the rom: PDF
Link to .zip of all .raw files in the rom: .zip of .raw The .zip file includes a space "SumDigits.raw" file which is rom filler if there is enough space. I don't expect there to be enough room, so it will be carried over to rom2. :-) If it is included, it should be XROM 23,27 to avoid changing the hard coded XROM instructions we put in to call the Seed and RN routines. |
|||
11-20-2016, 08:07 PM
Post: #152
|
|||
|
|||
RE: 4K HP 67 Games rom attached for testing
(11-20-2016 07:55 PM)Gene Wrote: AOS4 had a problem with this: Hmm... will check this. (11-20-2016 07:55 PM)Gene Wrote: AOS3 is a great program! :-) OK then. But please also try it without the CLRG at the beginning. It should work just as well without losing all data registers. Dieter |
|||
11-20-2016, 08:14 PM
Post: #153
|
|||
|
|||
RE: 4K HP 67 Games rom attached for testing
(11-20-2016 07:41 PM)Gene Wrote: Gene: NOP was a column heading for corrections in the PPC Journal for many years. It might be article corrections, programming errors, etc. Fine – but what does it stand for? I didn't find an explanation on page 3 of V5N4 you posted. Is it an acronym? An abbreviation? Or does it simply refer to the NOP instruction? Dieter |
|||
11-20-2016, 08:38 PM
Post: #154
|
|||
|
|||
RE: 4K HP 67 Games rom attached for testing
CLRG is removed from the AOS program.
I think NOP does refer to the No OPeration instruction because errors in an article didn't do anything or errors in a program were incorrect. I am not sure of the original derivation, but it has been around in HP calculator circles for ages. |
|||
11-21-2016, 01:22 AM
Post: #155
|
|||
|
|||
RE: 4K HP 67 Games rom attached for testing
Gene & Dieter,
Are you feeling like HP Quality/Test Engineers testing about-to-be-released calculator software back in the day? Impressive amount of testing and updates happening at a fast pace! --Bob Prosperi |
|||
11-21-2016, 03:44 AM
(This post was last modified: 11-21-2016 03:52 AM by Gene.)
Post: #156
|
|||
|
|||
RE: 4K HP 67 Games rom attached for testing
No, because they did a much better job at this than we are doing. :-)
And Robert and Dieter are the coders here. |
|||
11-21-2016, 08:53 PM
(This post was last modified: 11-21-2016 10:10 PM by Dieter.)
Post: #157
|
|||
|
|||
RE: 4K HP 67 Games rom attached for testing
(11-19-2016 07:14 PM)Dieter Wrote: (ST program) I just saw that one of the data registers can be saved since R07 only holds the constant 25, which is the sensor range. This value is used only once, and another time half of this to define the phaser reach (so that's 12,5 here). So I replaced R11 with R07 and inserted the two constants directly into the code: the sensor range still is 25 (line 53), the max. allowed Klingon distance for a phaser attack was rounded up to 15 (line 162, saves two bytes compared to 12,5 ;-)). If you want to update the ST program – although it is not strictly required –, here is version 3a. Edit: There is also an improved version of the SD program. Requires 96 bytes and needs two registers less than the original version. Also the output looks cleaner now since I added the one or other CF 29. ;-) Dieter |
|||
11-22-2016, 02:36 AM
Post: #158
|
|||
|
|||
RE: 4K HP 67 Games rom attached for testing
Gene,
Tried to send you a PM and it said you had reached your private message quota. |
|||
11-22-2016, 02:56 AM
Post: #159
|
|||
|
|||
RE: 4K HP 67 Games rom attached for testing
fix now. :-)
|
|||
11-22-2016, 02:58 AM
Post: #160
|
|||
|
|||
RE: 4K HP 67 Games rom attached for testing
(11-21-2016 08:53 PM)Dieter Wrote: Edit: There is also an improved version of the SD program. Requires 96 bytes and needs two registers less than the original version. Also the output looks cleaner now since I added the one or other CF 29. ;-) Gene: Post it! That's the filler program for the .rom and if it takes less room it might make it. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 10 Guest(s)