Omnimaga

Calculator Community => Major Community Projects => The Axe Parser Project => Topic started by: jacobly on July 03, 2012, 06:17:39 am

Title: [Axiom] Text routines
Post by: jacobly on July 03, 2012, 06:17:39 am
#Axiom(TEXT)
(All commands are in the Vars → Zoom menu.)
Row
EXP→Row

Key:ZXmin
Get or set the current pen row.
Col
EXP→Col

Key:ZXmax
Get or set the current pen column.
Rowr
EXP→Rowr

Key:ZXmin
Get or set the current cursor row.
Colr
EXP→Colr

Key:ZXmax
Get or set the current cursor column.
Str(PTR)
Str(PTR)r
Str(PTR,BUF)


Key:ZXscl
The string that is pointed to is drawn at the current pen location to the main buffer, back buffer, or specified buffer respectively. See Fix 0 and Fix 1 commands for drawing details.
Char(CHAR)
Char(CHAR)r
Char(CHAR,BUF)


Key:ZYmin
The ASCII character is drawn at the current pen location to the main buffer, back buffer, or specified buffer respectively. See Fix 0 and Fix 1 commands for drawing details.
EXP▶Int
EXP▶Intr

Key:ZYmax
Converts the number to an unsigned or signed integer respectively and returns the pointer to that string.
EXP▶Fixed
EXP▶Fixedr

Key:ZYscl
Converts the number to an unsigned or signed 8.8 fixed point number respectively and returns the pointer to that string.
EXP▶Token
Key:ZXres
Converts the 1 or 2 byte token to a string and returns a pointer to that string.
PTR▶Tokenr
Key:ZXres
Converts the 1 or 2 byte token that is pointed to to a string and returns a pointer to that string.
PTR▶Tokenrr
Key:ZXres
Returns the 1 or 2 byte token that is pointed to.
Title: Re: [Axiom] Text routines
Post by: Hayleia on July 03, 2012, 10:28:21 am
Thanks, that is exactly what I was looking for :D

Also, I guess the answer is yes but is this faster than the OS routine ?

edit
Bug Report (or maybe I just don't know how to use it -.-)
See, my code is

8→Col
7→Row
Str(255►Int)

But there is no 255 on (8,7). There is some garbage (behind the big "3")

edit
Nevermind, it displays right but the grey background doesn't let figures appear correctly
Title: Re: [Axiom] Text routines
Post by: kindermoumoute on July 03, 2012, 11:06:06 am
Are Output(EXP) and Output(X,Y) commands unoptimized ?

Char(CHAR), what is the difference with >Char ?

Explain why you made this axiom, I don't see why it is better, and if that's more optimized, why you don't ask to quigibo to optimize his routines ?
Title: Re: [Axiom] Text routines
Post by: Hayleia on July 03, 2012, 11:22:33 am
Are Output(EXP) and Output(X,Y) commands unoptimized ?
They are OS routines, so they don't take any space but are very slow :(

Char(CHAR), what is the difference with >Char ?
This one can write on any buffer ;)

Explain why you made this axiom, I don't see why it is better, and if that's more optimized, why you don't ask to quigibo to optimize his routines ?
Because Quigibo can't optimise the OS :P
Title: Re: [Axiom] Text routines
Post by: kindermoumoute on July 03, 2012, 06:18:40 pm
If I understand, it add more syze to program. :/
Title: Re: [Axiom] Text routines
Post by: Builderboy on July 03, 2012, 10:30:10 pm
It does at more size to the program, but it also adds functionality which Axe does not provide, which is really the point of Axioms in the first place.