42S local label caching
|
11-16-2019, 11:22 PM
(This post was last modified: 11-16-2019 11:27 PM by Sylvain Cote.)
Post: #15
|
|||
|
|||
RE: 42S local label caching
Same program as before but with a 2 bytes label and a 3 bytes goto
FOCAL program Code: LBL "ABC" 42S Memory dump Code: 0123456789ABCDEF Reorganisation Code: 42S Memory Dump (reversed) : 42S Memory Dump (rearranged) Manual decoding Code: 42S Memory Dump : 41C Memory Dump : FOCAL program As before, there are small differences between the HP-42S and HP-41C like the global label and the end but what I am investigating here is the long form goto. The HP-41C 3 bytes GTO format is 1101 BBBR RRRR RRRR DLLL LLLL and the value is D2038F or 1101 0010 0000 0011 1000 1111 with the distance translated to 1 byte and 3 registers or 22 bytes between the GTO 15 and the LBL 15 The HP-42S 3 bytes GTO format is 1101 BBBB BBBB BBBB DLLL LLLL and the value is D0160F or 1101 0000 0001 0110 0000 1111 with the distance translated to 22 bytes between the GTO 15 and the LBL 15 Again, the initial question about the long form goto has also been answered! Sylvain |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 9 Guest(s)