﻿ [Axiom] Text routines
06 December, 2013, 01:59:48
 OmnomIRC You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

 Pages: [1]   Go Down
 Author Topic: [Axiom] Text routines -  (Read 846 times) 0 Members and 1 Guest are viewing this topic.
jacobly

Offline

Last Login: 07 August, 2013, 02:26:50
Date Registered: 09 October, 2011, 01:53:09
Posts: 201

Topic starter
Total Post Ratings: +156

 « on: 03 July, 2012, 12:17:39 » +4

 #Axiom(TEXT) (All commands are in the Vars → Zoom menu.) RowEXP→Row Key:ZXmin Get or set the current pen row. ColEXP→Col Key:ZXmax Get or set the current pen column. RowrEXP→Rowr Key:ZXmin Get or set the current cursor row. ColrEXP→Colr Key:ZXmax Get or set the current cursor column. Str(PTR)Str(PTR)rStr(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)rChar(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▶IntEXP▶Intr Key:ZYmax Converts the number to an unsigned or signed integer respectively and returns the pointer to that string. EXP▶FixedEXP▶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.
Hayleia
Programming Absol
LV11 Super Veteran (Next: 3000)

Offline

Date Registered: 01 June, 2011, 20:12:47
Location: ud-ud ?
Posts: 2494

Total Post Ratings: +310

 « Reply #1 on: 03 July, 2012, 16:28:21 » 0

Thanks, that is exactly what I was looking for

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
 TextBug.gif (316.3 KB, 192x128 - viewed 206 times.) « Last Edit: 04 July, 2012, 08:44:55 by Hayleia » Logged

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.

kindermoumoute

Offline

Last Login: 12 September, 2013, 22:14:00
Date Registered: 15 May, 2010, 17:53:56
Posts: 837

Total Post Ratings: +51

 « Reply #2 on: 03 July, 2012, 17:06:06 » 0

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 ?
 Logged

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%
Hayleia
Programming Absol
LV11 Super Veteran (Next: 3000)

Offline

Date Registered: 01 June, 2011, 20:12:47
Location: ud-ud ?
Posts: 2494

Total Post Ratings: +310

 « Reply #3 on: 03 July, 2012, 17:22:33 » 0

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
 Logged

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.

kindermoumoute

Offline

Last Login: 12 September, 2013, 22:14:00
Date Registered: 15 May, 2010, 17:53:56
Posts: 837

Total Post Ratings: +51

 « Reply #4 on: 04 July, 2012, 00:18:40 » 0

If I understand, it add more syze to program.
 Logged

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%
Builderboy
Physics Guru

Offline

Gender:
Date Registered: 20 April, 2009, 00:28:53
Location: Ravenholm
Posts: 5653

Total Post Ratings: +597

 « Reply #5 on: 04 July, 2012, 04:30:10 » 0

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.
 Logged

 Pages: [1]   Go Up