Help - Assembly programming on Debug4x (HP50G)
|
06-12-2019, 07:24 AM
Post: #3
|
|||
|
|||
RE: Help - Assembly programming on Debug4x (HP50G)
Yes, the following in Debug4x works just fine:
Code: RPL Since you are invoking the MASD compiler (via CODEM), you could also use this alternative form to do the same thing: Code: RPL In this tiny example, there's not a significant advantage to the latter form. Both versions compile to the same size object and do the same thing. But coding in this manner makes it easier as projects grow, since you don't have to keep up with jumps and labels for simple skips. The MASD preprocessor essentially creates indexed labels as needed so you don't have to worry about them when using this syntax. It can also help by making the code easier to use in other projects without having to worry about label conflicts. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)