Post Reply 
(41C) Quotient and Remainder
04-05-2023, 12:25 PM
Post: #2
RE: (41C) Quotient and Remainder
Interesting: The QR routine in the PPC ROM gets the wrong quotient for your final example. It returns 5000000008.

For reference, here's the code for QR in the PPC ROM. The synthetic command "STO O" is used to preserve Z and T on the stack. Same input and output order as your program.

Code:
82 LBL "QR"
83 X<>Y
84 STO O
85 X<>Y
86 MOD
87 ST- O
88 LASTX
89 ST/ O
90 CLX
91 X<> O
92 X<>Y
93 RTN

<0|ɸ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(41C) Quotient and Remainder - Werner - 04-05-2023, 09:12 AM
RE: (41C) Quotient and Remainder - Joe Horn - 04-05-2023 12:25 PM
RE: (41C) Quotient and Remainder - Werner - 04-05-2023, 01:08 PM
RE: (41C) Quotient and Remainder - Werner - 04-10-2023, 07:25 AM
RE: (41C) Quotient and Remainder - Werner - 04-18-2023, 02:57 PM



User(s) browsing this thread: 2 Guest(s)