0 Members and 1 Guest are viewing this topic.
It has been 59 minutes and 59 seconds. A glitch caused your previous post time to be off by about 9 minutes and half. Joking aside, I wonder how many nested commands there can be? Like, could we do Line(1,1,1,Pause Text(33,10,"HI")) and it would work? That might get confusing, though.
{====______}
{=========_}
It's been an hour, right? Okay, I was having a problem with adding the addition routinem but then I realised that I had forgotten a 7E (ld a,(hl)). Now To move on to Subtraction, then multiplication and division...
Well, theoretically you could keep going, but yeah it gets very confusing. On another note, at the moment at least, commas are not needed and unless you use a Disp command, you don't need to jump down to the next line. However, you do need an unused variable to separate numbers. So, for example, you can separate everything using a space if you wanted to. Of course, that just gets confusing, so I wouldn't try it...*Actually, you can only go until the stack is filled, so don't go more than a hundred (just to stay on the safe side-- some commands use the stack, too).
|points. Order of operations is not used. functions |are evaluated from right to left. Here is an example | 3+2*6-3 | 3+2*3 | 3+6 | 9
Just got out of classes and a Math Club meeting...Let's see...The commands should be seen as functions. They either take an input and output a result or they just output a result. The result they output is always (at the moment, anyway) the last converted value. When I add things like getKey, the result will obviously be based on that. So for example, Line(T,A,B,X,Y will output Y as a result. Disp Y,X,<<String>> will output X as the result, since X is the last calculated result. So, when you use Disp Y,X in place of T for the Line( command, you are actually only using the X from the Disp command.So to lookitsan00b, yes, you are right, if you think of it that way. It took me a bit to understand how you were saying it, but yes.@Qwerty.55: I have not added any ability to work with number bases other than ten, but I do have 16-bit addition, subtraction, and multiplication ready. I just finished a 16 bit divide routine during Calc III, so now I have to add that in...
Line(1,1,1,Pause Text(33,10,"HI"))
Arguments:{1,1,1,33,10,"HI"}Commands:Line at an index of 0Pause 3Text 3