0 Members and 1 Guest are viewing this topic.
Quote from: LordConiupiter on July 01, 2010, 02:23:45 pmoh, because it has to be converted to basic type number when you store into Ans?Yes, and it is also storing to a TIOS variable, making it larger and slower. If you store to an "Axe Var", then you're just changing the content of two, easy to use bytes.
oh, because it has to be converted to basic type number when you store into Ans?
Quote from: ztrumpet on July 01, 2010, 03:23:20 pmQuote from: LordConiupiter on July 01, 2010, 02:23:45 pmoh, because it has to be converted to basic type number when you store into Ans?Yes, and it is also storing to a TIOS variable, making it larger and slower. If you store to an "Axe Var", then you're just changing the content of two, easy to use bytes. Ans takes memory for the exponent and for negation, plus seven bytes of data, many of which are unnecessary since Axe only allows storing 2-byte integers (between 0 and 65535). These are first stored to OP1 (I think), then all nine bytes of data (including seven which would otherwise have been unnecessary) have to be moved to Ans, so it's a lot slower. Storing to an Axe variable location is just that: it simply copies the two bytes over there The only reason I can see for storing to Ans within an Axe program is to make the returned value available to the user (for example, as a subroutine for BASIC programs written in Axe).
$00 $8D $01 $23 $45 $67 $89 $AB $CD ;notice $AB and $CD don't work as decimal numbers