You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want an easy option for "give me both the quotient and remainder"
Options:
We can have the user specify two output registers, but should that be required?
We could use r, rh0, rq0, and rb0 as the default when no remainder register is specified
We could just make you specify a complete register set if you want the remainder, and only give you the quotient otherwise
Also, what could the luna syntax be like if we wanted to allow you to specify two inputs and a remainder register, while still allowing the quotient output register to default to the register of the first input? Maybe something like div x 4 . y or div x 4 - y or div x 4 _ y, which would divide the contents of x by 4, store the quotient in x, and store the remainder in y.
The text was updated successfully, but these errors were encountered:
I want an easy option for "give me both the quotient and remainder"
Options:
r
,rh0
,rq0
, andrb0
as the default when no remainder register is specifiedAlso, what could the luna syntax be like if we wanted to allow you to specify two inputs and a remainder register, while still allowing the quotient output register to default to the register of the first input? Maybe something like
div x 4 . y
ordiv x 4 - y
ordiv x 4 _ y
, which would divide the contents ofx
by 4, store the quotient inx
, and store the remainder iny
.The text was updated successfully, but these errors were encountered: