Author Topic: [Axiom] Text routines  (Read 9533 times)

0 Members and 1 Guest are viewing this topic.

Offline jacobly

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 205
  • Rating: +161/-1
    • View Profile
[Axiom] Text routines
« 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.

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: [Axiom] Text routines
« Reply #1 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
« Last Edit: July 04, 2012, 02:44:55 am by Hayleia »
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline kindermoumoute

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 836
  • Rating: +54/-3
    • View Profile
Re: [Axiom] Text routines
« Reply #2 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 ?
Projects :

Worms armageddon z80 :
- smoothscrolling Pixelmapping : 100%
- Map editor : 80%
- Game System : 0%

Tutoriel français sur l'Axe Parser
- 1ère partie : en ligne.
- 2ème partie : en ligne.
- 3ème partie : en ligne.
- 4ème partie : 10%
- Annexe : 100%

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: [Axiom] Text routines
« Reply #3 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
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline kindermoumoute

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 836
  • Rating: +54/-3
    • View Profile
Re: [Axiom] Text routines
« Reply #4 on: July 03, 2012, 06:18:40 pm »
If I understand, it add more syze to program. :/
Projects :

Worms armageddon z80 :
- smoothscrolling Pixelmapping : 100%
- Map editor : 80%
- Game System : 0%

Tutoriel français sur l'Axe Parser
- 1ère partie : en ligne.
- 2ème partie : en ligne.
- 3ème partie : en ligne.
- 4ème partie : 10%
- Annexe : 100%

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: [Axiom] Text routines
« Reply #5 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.