Saturn ASM question
|
12-29-2017, 04:56 PM
Post: #9
|
|||
|
|||
RE: Saturn ASM question
That's looking good, grsbanks!
I hope you don't mind if I offer a similar function -- not because I think it's better, but simply to introduce some different approaches for your consideration. As mentioned earlier, I like to pre-load the stack with placeholders while still in the SysRPL environment if possible. Especially when the possible results are clearly defined as in this case, which then keeps you from having to worry about memory allocations or error conditions within the Saturn code (where it usually has a larger memory footprint). Additionally, this example shows an alternative method to test the bit in question: Code: !NO CODE Note that this example uses an opcode for shifting the A register which is only available on the ARM-based systems (aka "the Saturnator"). That shouldn't be a problem here, as this function is already limited in scope to those systems anyway. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Saturn ASM question - grsbanks - 12-28-2017, 03:32 PM
RE: Saturn ASM question - pier4r - 12-28-2017, 03:53 PM
RE: Saturn ASM question - DavidM - 12-28-2017, 04:32 PM
RE: Saturn ASM question - grsbanks - 12-28-2017, 04:51 PM
RE: Saturn ASM question - DavidM - 12-28-2017, 05:48 PM
RE: Saturn ASM question - grsbanks - 12-28-2017, 05:57 PM
RE: Saturn ASM question - grsbanks - 12-28-2017, 05:14 PM
RE: Saturn ASM question - grsbanks - 12-28-2017, 06:03 PM
RE: Saturn ASM question - DavidM - 12-29-2017 04:56 PM
RE: Saturn ASM question - grsbanks - 12-30-2017, 12:11 AM
|
User(s) browsing this thread: 1 Guest(s)