WP 34S and 31S bugs and fixes
|
01-12-2015, 01:31 AM
(This post was last modified: 01-12-2015 01:37 AM by Bit.)
Post: #101
|
|||
|
|||
RE: WP 34S and 31S bugs and fixes
(01-12-2015 01:14 AM)Paul Dale Wrote:(01-12-2015 12:48 AM)Bit Wrote: This wouldn't be difficult to change if that's desired, see the patch below. Solve and integrate could probably be adapted in a similar way. (STOS/RCLS aren't currently used by any XROM routines so it's safe to change their behavior when called from XROM.) I think XEQUSR does currently fill the whole stack (including A .. D if using an 8-level stack) before executing the user's routine, but correct me if I'm wrong. do_usergsb() calls usergsb_common() before calling fill(), and usergsb_common() moves the program counter out of the XROM area. Filling the stack is consistent with what some HP calculators do and IMO it's the right thing to do as the user's routine shouldn't assume anything about the stack other than it contains the input. Restoring the whole stack after the sum etc. functions return would make sense and if the user's routine needs additional storage, it should use registers that aren't part of the stack. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)