Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
19 June, 2013, 00:57:25 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-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
  Print  
Author Topic: [Axiom] Text routines -  (Read 534 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
jacobly
LV5 Advanced (Next: 300)
*****
Offline Offline

Last Login: Yesterday at 22:18:01
Date Registered: 09 October, 2011, 01:53:09
Posts: 200

Topic starter
Total Post Ratings: +150

View Profile
« on: 03 July, 2012, 12:17:39 »
+3

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

* text.8xv (0.52 KB - downloaded 28 times.)
Logged
Hayleia
Programming Absol
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Last Login: Yesterday at 22:47:30
Date Registered: 01 June, 2011, 20:12:47
Location: ud-ud ?
Posts: 2110


Total Post Ratings: +260

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

Thanks, that is exactly what I was looking for Cheesy

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 161 times.)
« Last Edit: 04 July, 2012, 08:44:55 by Hayleia » Logged





Spoiler for what I am according to...:
me: useless
Pokemon Test: an Absol
turiqwalrus: an eggplant
p2: A HUMAN BEING !
Blackpilar and p2: iplantonlyplantwantplanttoplantknowplantifplantyouplantareplantaplantboyplantorplantaplantgirlplant
click here to know where you got your last +1s
kindermoumoute
LV8 Addict (Next: 1000)
********
Offline Offline

Last Login: 15 June, 2013, 17:17:59
Date Registered: 15 May, 2010, 17:53:56
Posts: 837


Total Post Ratings: +51

View Profile
« 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 Offline

Last Login: Yesterday at 22:47:30
Date Registered: 01 June, 2011, 20:12:47
Location: ud-ud ?
Posts: 2110


Total Post Ratings: +260

View Profile
« 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 Sad

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

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





Spoiler for what I am according to...:
me: useless
Pokemon Test: an Absol
turiqwalrus: an eggplant
p2: A HUMAN BEING !
Blackpilar and p2: iplantonlyplantwantplanttoplantknowplantifplantyouplantareplantaplantboyplantorplantaplantgirlplant
click here to know where you got your last +1s
kindermoumoute
LV8 Addict (Next: 1000)
********
Offline Offline

Last Login: 15 June, 2013, 17:17:59
Date Registered: 15 May, 2010, 17:53:56
Posts: 837


Total Post Ratings: +51

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

If I understand, it add more syze to program. Undecided
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
LV13 Extreme Addict (Next: 9001)
*************
Offline Offline

Gender: Male
Last Login: Yesterday at 07:32:26
Date Registered: 20 April, 2009, 00:28:53
Location: Ravenholm
Posts: 5645


Total Post Ratings: +589

View Profile
« 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
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.274 seconds with 30 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.