Difference between revisions of "Talk:Variables"
Jump to navigation
Jump to search
(Created page with "7-27 Trying to directly affect the Proposition bytes with a command like SET(x0360,x000B) works perfectly fine. However, trying to copy the results with something like SETVar(...") |
|||
Line 1: | Line 1: | ||
7-27 | 7-27 | ||
Trying to directly affect the Proposition bytes with a command like SET(x0360,x000B) works perfectly fine. However, trying to copy the results with something like SETVar(x0000,x0360) will ONLY copy the x01 bit. | Trying to directly affect the Proposition bytes with a command like SET(x0360,x000B) works perfectly fine. However, trying to copy the results with something like SETVar(x0000,x0360) will ONLY copy the x01 bit. | ||
+ | |||
+ | 7-30 | ||
+ | Odd little bug. Trying to ADDVar(x0B00,x0080) should only add either 1 or 0 as Var x80 is a bit, but instead it adds four whole bytes of values, and I'm not even sure where from. SETVar works similarly. Any second offset within the Misc Words range (x0000-x007F) seems to work fine, though - I can go SETVar(x0001,x0080) and then ADDVar(x0B00,x0001) and achieve the correct result. |
Revision as of 19:33, 30 July 2023
7-27 Trying to directly affect the Proposition bytes with a command like SET(x0360,x000B) works perfectly fine. However, trying to copy the results with something like SETVar(x0000,x0360) will ONLY copy the x01 bit.
7-30 Odd little bug. Trying to ADDVar(x0B00,x0080) should only add either 1 or 0 as Var x80 is a bit, but instead it adds four whole bytes of values, and I'm not even sure where from. SETVar works similarly. Any second offset within the Misc Words range (x0000-x007F) seems to work fine, though - I can go SETVar(x0001,x0080) and then ADDVar(x0B00,x0001) and achieve the correct result.