|
Hayleia
|
Axe automatically adds ending NULs to the end of strings.
Not always. It adds a zero when the string is followed by a → and when it is inside a Text command, but if you do this: "String1" "String2"none of them will be null-terminated, you need to do that: "String1"[00] "String2"[00]This can be useful when for example you need to put a @ in the middle your text data, you just have to write this: "mymail"[48]"gmail.com, where 48 is the hex for @ (note that the true hex is not 48, I put that number at random).
|
|
|
|
|
Logged
|
|
|
|
|
Sorunome
|
The runprgm Axiom lets you convert an assembly/Axe program into an appvar, and execute it. The only difference between a program and an appvar is the type byte, so it was easy functionality to implement. Of course, the program is still copied to RAM and run from RAM. Executing an appvar in flash without coping it to RAM is just too much of a headache, due to both the need to change the execution permissions (requires unlocking flash), and the fact that the location would be variable and might cross page boundries. If you really want execution from flash, use an application. The problem is that with that axiom I can't call functions that are not part of the appvar/the prog.
|
|
|
|
|
Logged
|
|
|
|
DrDnar
LV6 Super Member (Next: 500)
    
Offline
Last Login: Today at 00:54:23
Date Registered: 29 October, 2010, 00:08:46
Posts: 460
Total Post Ratings: +76
|
The runprgm Axiom lets you convert an assembly/Axe program into an appvar, and execute it. The only difference between a program and an appvar is the type byte, so it was easy functionality to implement. Of course, the program is still copied to RAM and run from RAM. Executing an appvar in flash without coping it to RAM is just too much of a headache, due to both the need to change the execution permissions (requires unlocking flash), and the fact that the location would be variable and might cross page boundries. If you really want execution from flash, use an application. The problem is that with that axiom I can't call functions that are not part of the appvar/the prog. What do you want to do? If your main program is an application, the program you called can call functions in the application if you swap it back into memory. There's already an Axiom for that.
|
|
|
|
|
Logged
|
"The tools which would teach men their own use would be beyond price."— The Republic
|
|
|
jacobly
LV4 Regular (Next: 200)
  
Offline
Last Login: Today at 03:09:09
Date Registered: 09 October, 2011, 01:53:09
Posts: 199
Total Post Ratings: +149
|
By request of Hayleia and nikitouzz. | #Axiom(MEMKIT2) | | | Load() | Key: Xmin | | Next() | Key: Xmax | | dim() | | | dim()r | | | dim()rr | | | Print(BUF) | Key: Xscl | | New(PTR,OFS,SIZ) | Key: Ymin | | Delete(PTR,OFS,SIZ) | Key: Ymax |
|
|
|
|
Logged
|
|
|
|
|
Hayleia
|
For those who wonder what this version of MEMKIT adds to the memkit bundled in Axe's zip, well nothing  But it uses a set of tokens that is compatible with Jacobly's TEXT Axiom  And Jacobly made (yet) another version of MEMKIT that sorts by alphabetical order, here 
|
|
|
|
|
Logged
|
|
|
|
|