0 Members and 5 Guests are viewing this topic.
It is as simple as that. Square brackets take hex. If you want decimal values you can use data().
It's nearly as simple as that. Just don't put →L1 since this pointer is already used, but something else like →°MyMap. Then you can do {A+°MyMap} the same way you would do {A+L1}
What do you mean by not using L1? I thought that L1 is a specific pointer to some free memory?
Also, what is "°MyMap"?
Also, what is "°MyMap"? I mean I'm aware I can name variable, but how would I define, for example, a portion of memory 16 bytes in size?
From what I can see on the axe parser command list, Data () adds bytes to the program memory? What does that mean? What is program memory in this case?
You can't do whatever→L1. But you can do {whatever}→L1
Seen from the program editor "°MyMap" is the "°" character followed with the "M" character... etc.Seen from your program once compiled, it's a number. You just gave that number the name "°MyMap" because it's much more convenient to use.
It depends on what you call define. You can "create" 5 bytes of memory but just writing [0000000000] or Data(0,0,0,0,0) or Buff(5). Then you need a pointer to that so you can use those bytes, so you'll write → followed with a pointer. Note that doing this always works if you are only reading bytes, but if you compile as an app, you won't be able to write back to those bytes.
Quote from: Hayleia on March 30, 2014, 02:46:47 pmYou can't do whatever→L1. But you can do {whatever}→L1You mean whatever->{L1} of course.
That sounds clear enough but you made a mistake in the first section. It's not {whatever}->L1 as that would try to override the compiler constant L1 with the value at address whatever. Not gonna happen. So the correct code is whatever->{L1}. Whoops
Okay thanks everybody! I'll try to apply this to the raycaster later today and hope that it will work!