Pardon my ignorance but can somebody give me a good example of what Indirect Addressing is all about. Seems to me that it would be just as efficient to do it by Direct Addressing.
HP41 programming.
|
02-01-2003, 11:39 PM
02-02-2003, 12:16 AM
okay, imagine a menu for a PIM. option 1 runs subroutine 01 (LBL 01), which allows you to enter a new contact. option 2 runs a subroutine (LBL 02) to delete a contact option 3 runs a subroutine (LBL 03) to search for a contact.
(execute function pointed to by the value in X)
02-03-2003, 12:59 PM
Very simple example: Clear registers 00 to 10:
01 LBL"CLR"
Now, doing that with direct addressing means you would have
You can do any number of things with indirect addressing.
02-03-2003, 01:58 PM
Hi, Jhonny; your example made me remember one CX-only feature: CLRGX. Do you have an HP41CX? Your very good example of how to use indirect addressing as for accessing registers contents would be like this in an HP41CX: .01and that's all. CLRGX is available only in the HP41CX, but I do not know if those unusual module (HEPAX, CCD, ADVANTAGE, PPC, PANAME) also have it; the X-Functions doesn't. Cheers.
02-04-2003, 09:28 AM
Me?
Oh, and of course my batteries for the cassette
About the programming example; I was aware of the fact |
« Next Oldest | Next Newest »
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Custom Programming vs. Pre-packaged programming | Eddie Shore | 3 | 1,434 |
01-24-2005, 03:42 AM Last Post: Karl Schneider |
|
hp41 programming questions | Fulcrum | 5 | 1,419 |
04-25-2004, 06:34 PM Last Post: Miki Mihajlovic |
|
HP41 Programming challange | Harry (Germany) | 22 | 4,578 |
07-28-2003, 04:50 PM Last Post: Harry |
|
RPN/RPL and the HP41 Programming Language | Vieira, Luiz C. (Brazil) | 3 | 1,240 |
11-10-2001, 02:56 PM Last Post: Andrés C. Rodríguez (Argentina) |