Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
21 May, 2013, 10:10:00 *
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: Referencing Text() Coordinates -  (Read 579 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
FinaleTI
Believe in the pony that believes in you!
Coder Of Tomorrow
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: 03 May, 2013, 16:35:01
Date Registered: 04 June, 2010, 00:34:27
Location: Alteria
Posts: 1818


Topic starter
Total Post Ratings: +118

View Profile WWW
« on: 22 February, 2011, 16:37:30 »
0

When you use Text(20,30), I understand that it stores 20 to somewhere that denotates the Xpos, and 30 to somewhere that denotates the Ypos.

What I would like to know is what memory location are those coordinates stored to?
Logged





So, yeah, I have a blog now. Nothing special, just your average ghost town.

Spoiler for Projects:
Spoiler for Pokemon TI:
Map engine is going to be redone from scratch, since I was lacking in organization last time. With a project as big as Pokemon, planning and organization is key, so that will probably be the brunt of the work done on this project for the time being.

Spoiler for Nostalgia:
Being worked on. Nothing really new to put here, but it's being worked on.

Spoiler for Finale's Super Insane Tunnel Pack of Doom:
I will be combining Blur and Collision Course into a single gamepack.

Spoiler for Nostalgia Origins: Sky's Story:
Currently on hold. I am unsure of whether this will remain DCS7 Hybrid BASIC or if it will use Batlib, Grammer or perhaps Axe.
This may see more progress once a demo of Nostalgia is released.
Runer112
Anti-Riot Squad
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: Today at 07:41:21
Date Registered: 02 July, 2009, 06:38:05
Posts: 1679


Total Post Ratings: +492

View Profile
« Reply #1 on: 22 February, 2011, 22:52:13 »
+1

From ti83plus.inc:


1
2
3
penCol equ 86D7h
penRow equ 86D8h


Also, a little-known fact regarding printing text at constant coordinates:

1
2
3
4
.Coordinate=Y*256+X
Text(30*256+20)
Text "Stuff"
Is 7 bytes smaller than:

1
2
Text(20,30,"Stuff")

The same applies for text drawn to the home screen:

1
2
3
4
.Coordinate=X*256+Y
Output(20*256+30)
Disp "Stuff"
Is smaller than:

1
2
Output(20,30,"Stuff")
By even more, 8 bytes.
Logged
ztrumpet
The Rarely Active One
LV13 Extreme Addict (Next: 9001)
*************
Offline Offline

Gender: Male
Last Login: 23 April, 2013, 16:09:52
Date Registered: 08 November, 2009, 21:10:12
Location: Michigan
Posts: 5687


Total Post Ratings: +360

View Profile
« Reply #2 on: 23 February, 2011, 01:36:32 »
0

The same applies for text drawn to the home screen:

1
2
3
4
.Coordinate=X*256+Y
Output(20*256+30)
Disp "Stuff"
Is smaller than:

1
2
Output(20,30,"Stuff")
By even more, 8 bytes.
And to think Quigibo almost took Output(one argument) out at one point...
Logged

Deep Thought
So much to do, so much time, so little motivation
Administrator
LV13 Extreme Addict (Next: 9001)
*
Offline Offline

Gender: Male
Last Login: 19 May, 2013, 19:18:47
Date Registered: 19 May, 2009, 08:00:00
Location: The Universe
Posts: 7813


Total Post Ratings: +706

View Profile WWW
« Reply #3 on: 23 February, 2011, 01:53:47 »
0

From ti83plus.inc:


1
2
3
penCol equ 86D7h
penRow equ 86D8h


Also, a little-known fact regarding printing text at constant coordinates:

1
2
3
4
.Coordinate=Y*256+X
Text(30*256+20)
Text "Stuff"
Is 7 bytes smaller than:

1
2
Text(20,30,"Stuff")

The same applies for text drawn to the home screen:

1
2
3
4
.Coordinate=X*256+Y
Output(20*256+30)
Disp "Stuff"
Is smaller than:

1
2
Output(20,30,"Stuff")
By even more, 8 bytes.

Why are the two different (7 bytes vs. 8 bytes)? I thought it did pretty much the same thing, but just to a different address.
Logged




squidgetx
Food.
Coder Of Tomorrow
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: 28 April, 2013, 23:50:38
Date Registered: 30 May, 2010, 19:54:18
Location: eating somewhere
Posts: 1829


Total Post Ratings: +476

View Profile
« Reply #4 on: 23 February, 2011, 22:12:36 »
0

Runer, what do you mean by Text "Stuff"? Do you mean Text("Stuff")? (Which doesn't seem to work btw) I mean, how do you get Text without parentheses?
« Last Edit: 23 February, 2011, 22:14:07 by squidgetx » Logged

Read my webcomic! | My SoundCloud
Projects:

Check out the demo now!- Current progress: battle engine and stuff
Proud author of: Cuberunner | SpaceDash | The Psyche | XXEdit | AxeSynth | StickNinja | Gravity Guy | Embers:Phoenix | Zombie Gun
Axe: Need help optimizing?
User of Axe | zStart | TokenIDE | CalcGS | MirageOS
FinaleTI
Believe in the pony that believes in you!
Coder Of Tomorrow
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: 03 May, 2013, 16:35:01
Date Registered: 04 June, 2010, 00:34:27
Location: Alteria
Posts: 1818


Topic starter
Total Post Ratings: +118

View Profile WWW
« Reply #5 on: 23 February, 2011, 23:55:05 »
0

Runer, what do you mean by Text "Stuff"? Do you mean Text("Stuff")? (Which doesn't seem to work btw) I mean, how do you get Text without parentheses?
2nd + PRGM + 6. It's normally DrawF.
Logged





So, yeah, I have a blog now. Nothing special, just your average ghost town.

Spoiler for Projects:
Spoiler for Pokemon TI:
Map engine is going to be redone from scratch, since I was lacking in organization last time. With a project as big as Pokemon, planning and organization is key, so that will probably be the brunt of the work done on this project for the time being.

Spoiler for Nostalgia:
Being worked on. Nothing really new to put here, but it's being worked on.

Spoiler for Finale's Super Insane Tunnel Pack of Doom:
I will be combining Blur and Collision Course into a single gamepack.

Spoiler for Nostalgia Origins: Sky's Story:
Currently on hold. I am unsure of whether this will remain DCS7 Hybrid BASIC or if it will use Batlib, Grammer or perhaps Axe.
This may see more progress once a demo of Nostalgia is released.
DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Offline Offline

Gender: Male
Last Login: Today at 08:22:03
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50208


Total Post Ratings: +2612

View Profile WWW
« Reply #6 on: 24 February, 2011, 00:19:34 »
0

From ti83plus.inc:


1
2
3
penCol equ 86D7h
penRow equ 86D8h


Also, a little-known fact regarding printing text at constant coordinates:

1
2
3
4
.Coordinate=Y*256+X
Text(30*256+20)
Text "Stuff"
Is 7 bytes smaller than:

1
2
Text(20,30,"Stuff")

The same applies for text drawn to the home screen:

1
2
3
4
.Coordinate=X*256+Y
Output(20*256+30)
Disp "Stuff"
Is smaller than:

1
2
Output(20,30,"Stuff")
By even more, 8 bytes.
shocked I didn't know you could use Text "Stuff" syntax
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
squidgetx
Food.
Coder Of Tomorrow
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: 28 April, 2013, 23:50:38
Date Registered: 30 May, 2010, 19:54:18
Location: eating somewhere
Posts: 1829


Total Post Ratings: +476

View Profile
« Reply #7 on: 24 February, 2011, 00:42:29 »
0

Huh. Well, you learn something new every day!
* squidgetx goes off to optimize

Wow, this opt is incredible O.o
« Last Edit: 24 February, 2011, 01:19:38 by squidgetx » Logged

Read my webcomic! | My SoundCloud
Projects:

Check out the demo now!- Current progress: battle engine and stuff
Proud author of: Cuberunner | SpaceDash | The Psyche | XXEdit | AxeSynth | StickNinja | Gravity Guy | Embers:Phoenix | Zombie Gun
Axe: Need help optimizing?
User of Axe | zStart | TokenIDE | CalcGS | MirageOS
Deep Thought
So much to do, so much time, so little motivation
Administrator
LV13 Extreme Addict (Next: 9001)
*
Offline Offline

Gender: Male
Last Login: 19 May, 2013, 19:18:47
Date Registered: 19 May, 2009, 08:00:00
Location: The Universe
Posts: 7813


Total Post Ratings: +706

View Profile WWW
« Reply #8 on: 24 February, 2011, 07:06:00 »
0

shocked I didn't know you could use Text "Stuff" syntax

Yep, it's like Disp "STUFF", but with graph text.
« Last Edit: 24 February, 2011, 07:06:08 by Deep Thought » 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.374 seconds with 31 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.