0 Members and 2 Guests are viewing this topic.
.EnglishData(Str1-40343, Str2-40343, Str3-40343)"Wayne: Aichi, did you found a solution for the pointer issue?"->Str1"Aichi: No, it seems to be impossible at the moment."->Str2"Wayne: Oh, bad News. The Game."->Str3
.GermanData(Str1-40343, Str2-40343, Str3-40343)"Wayne: Aichi, hast du eine Lösung zu deinem Pointer Problem gefunden?"->Str1"Aichi: Nein, es scheint im Moment nicht möglich zu sein."->Str2"Wayne: Oh, das sind schlechte Neuigkeiten. The Game."->Str3
.MainClrHomeGetcalc("prgmENGLISH",Y1)Getcalc("prgmGERMAN",Y2).Output what Aichi says on German1->X .The second text, Str2Output(0,0,Y2+{2*X+Y2}) .Pointer to the file + a value stored in this file to reach Str2Repeat getkey=15EndClrHome
Sorry I can't help but this is the thing I like most about axe, we can now finally make neat data files and select when transferring only those that we need! This is great for a game that is designed for multiple languages!Why the -40343? is that an appvar size limit or something?
.Axe 40351Pxl-On(0.0 403559->A 40357"123"->Str1 40362
This is what i think he is doing. He has an appvar full of data, and since this data sets are random length, you can't know where one starts and another ends. How to fix this? Well if we have 10 sets of data, we can have 10 numbers at the begining of the appvar. The first number will say "The first data set is X bytes from the begining of this appavar" and so on. When you store text into a pointer in Axe, the pointer holds the location of the text. So after "1234"->Str1, Str1 holds the location of the String "1234". Well, programs in assembly (and axe) *always* start at the location 40341. So if Str1 is 10 bytes after the start of the program, it will be located at 40351. If we want to find out how far Str1 is from the start of the program, we just subtract the location of the string (40351) from the start of the program (40341), and we get 10
Data(Str1-40341)
"ABC"->Str1
But (unlike all pure asm compilers I know) Axe is not allowing to use pointers before these pointers are defined.