(12C) Decimal to Fraction
|
08-08-2018, 07:31 PM
Post: #18
|
|||
|
|||
RE: (12C) Decimal to Fraction
(08-08-2018 07:04 PM)Dieter Wrote: The translation for the 12C is a bit tricky since there are no subroutines. ;-) We can just inline these calls. There are only two tests:
But we also need: Code: x=y ; c = v ? We can switch the order: Code: - ; v-c The function ABS is missing. But we can also compare the squares. Thus instead of: Code: ABS ; |n/d-f| We can just use: Code: ENTER Did I miss something? Quote:Finally I wanted to suggest an improvement regarding the GSB 6 subroutine, but you noticed this yourself. Since both calls are preceded by an ENTER the latter can also be included in the subroutine itself (requires two ENTERs then). It even looks like this way LBL 4 could be replaced with LBL 6. Good catch. And here we can shave off another 2 steps. Thanks Thomas |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)