Service module (SM1C) and peripherial flags
|
05-27-2024, 08:46 AM
(This post was last modified: 05-27-2024 08:50 AM by ThomasF.)
Post: #1
|
|||
|
|||
Service module (SM1C) and peripherial flags
Hi,
I was pointed to a piece of code in the Service module for the HP41, which apparently checks or tests the peripheral flags. For me, the code looks quite strange, I understand what the test tries to do, but I can't understand how it could or should work! Apparently it loads a flag pattern in the C register, and then checks to see if the FI flags are set accordingly. But I can't understand how the flags are updated, IMHO only specific hardware can drive the FI lines and setting of the flags, this is not possible by just software. Code: We start by initializing the C register ... So after this test is executed, cpu flag 11 is set if any peripheral flag mismatches the value in C. Maybe the pattern in C is only a reference to what is expected, but the values are not used by the code, it would only make sense if C is somehow shifted out on the FI bus - but I can't see how that could be done! Or maybe if no peripheral is selected, does the value of C drive the FI-flags instead? This is something I have missed if that is the case! But that would make no sense either - since normally no peripheral is selected, and any '0' in C[S] would then cause a service request (?FI= 13 aka ?SERV). My next step is to try and write a small test program that executes this code, or just try to trace the Service module to see if this code works, or even if it is actually executed (maybe the code is left in the ROM but never used). Maybe someone has some thoughts or ideas about this? Cheers, Thomas [35/45/55/65/67/97/80 21/25/29C 31E/32E/33E|C/34C/38E 41C|CV|CX 71B 10C/11C/12C/15C|CE/16C 32S|SII/42S 28C|S 48GX/49G/50G 35S 41X] |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Service module (SM1C) and peripherial flags - ThomasF - 05-27-2024 08:46 AM
RE: Service module (SM1C) and peripherial flags - teenix - 05-27-2024, 09:41 AM
RE: Service module (SM1C) and peripherial flags - ThomasF - 05-27-2024, 10:39 AM
RE: Service module (SM1C) and peripherial flags - brouhaha - 05-27-2024, 10:43 AM
RE: Service module (SM1C) and peripherial flags - ThomasF - 05-27-2024, 10:56 AM
RE: Service module (SM1C) and peripherial flags - ThomasF - 05-28-2024, 07:06 PM
RE: Service module (SM1C) and peripherial flags - MeindertKuipers - 05-27-2024, 12:56 PM
RE: Service module (SM1C) and peripherial flags - ThomasF - 05-28-2024, 06:38 AM
|
User(s) browsing this thread: 2 Guest(s)