HP41 programming. - Printable Version +- HP Forums (https://archived.hpcalc.org/museumforum) +-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html) +--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html) +--- Thread: HP41 programming. (/thread-27224.html) |
HP41 programming. - Howard - 02-01-2003 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.
Re: HP41 programming. - Christof - 02-02-2003 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)
Re: HP41 programming. - Johnny Billquist - 02-03-2003 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. Johnny's example as a CX counterpart - Vieira, Luiz C. (Brazil) - 02-03-2003 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.
Re: Johnny's example as a CX counterpart - Johnny Billquist - 02-04-2003 Me?
Oh, and of course my batteries for the cassette
About the programming example; I was aware of the fact |