Author Topic: Referencing Text() Coordinates  (Read 3599 times)

0 Members and 1 Guest are viewing this topic.

Offline FinaleTI

  • Believe in the pony that believes in you!
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1830
  • Rating: +121/-2
  • Believe in the pony that believes in you!
    • View Profile
    • dmuckerman.tumblr.com
Referencing Text() Coordinates
« on: February 22, 2011, 09:37:30 am »
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?


Spoiler For Projects:

My projects haven't been worked on in a while, so they're all on hiatus for the time being. I do hope to eventually return to them in some form or another...

Spoiler For Pokemon TI:
Axe port of Pokemon Red/Blue to the 83+/84+ family. On hold.

Spoiler For Nostalgia:
My big personal project, an original RPG about dimensional travel and a few heroes tasked with saving the world.
Coding-wise, on hold, but I am re-working the story.

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

Spoiler For Nostalgia Origins: Sky's Story:
Prequel to Nostalgia. On hold, especially while the story is re-worked.

Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Referencing Text() Coordinates
« Reply #1 on: February 22, 2011, 03:52:13 pm »
From ti83plus.inc:

Code: [Select]
penCol equ 86D7h
penRow equ 86D8h


Also, a little-known fact regarding printing text at constant coordinates:
Code: [Select]
.Coordinate=Y*256+X
Text(30*256+20)
Text "Stuff"
Is 7 bytes smaller than:
Code: [Select]
Text(20,30,"Stuff")

The same applies for text drawn to the home screen:
Code: [Select]
.Coordinate=X*256+Y
Output(20*256+30)
Disp "Stuff"
Is smaller than:
Code: [Select]
Output(20,30,"Stuff")
By even more, 8 bytes.

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Referencing Text() Coordinates
« Reply #2 on: February 22, 2011, 06:36:32 pm »
The same applies for text drawn to the home screen:
Code: [Select]
.Coordinate=X*256+Y
Output(20*256+30)
Disp "Stuff"
Is smaller than:
Code: [Select]
Output(20,30,"Stuff")
By even more, 8 bytes.
And to think Quigibo almost took Output(one argument) out at one point...

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Referencing Text() Coordinates
« Reply #3 on: February 22, 2011, 06:53:47 pm »
From ti83plus.inc:

Code: [Select]
penCol equ 86D7h
penRow equ 86D8h


Also, a little-known fact regarding printing text at constant coordinates:
Code: [Select]
.Coordinate=Y*256+X
Text(30*256+20)
Text "Stuff"
Is 7 bytes smaller than:
Code: [Select]
Text(20,30,"Stuff")

The same applies for text drawn to the home screen:
Code: [Select]
.Coordinate=X*256+Y
Output(20*256+30)
Disp "Stuff"
Is smaller than:
Code: [Select]
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.




Offline squidgetx

  • Food.
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1881
  • Rating: +503/-17
  • rawr.
    • View Profile
Re: Referencing Text() Coordinates
« Reply #4 on: February 23, 2011, 03:12:36 pm »
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: February 23, 2011, 03:14:07 pm by squidgetx »

Offline FinaleTI

  • Believe in the pony that believes in you!
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1830
  • Rating: +121/-2
  • Believe in the pony that believes in you!
    • View Profile
    • dmuckerman.tumblr.com
Re: Referencing Text() Coordinates
« Reply #5 on: February 23, 2011, 04:55:05 pm »
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.


Spoiler For Projects:

My projects haven't been worked on in a while, so they're all on hiatus for the time being. I do hope to eventually return to them in some form or another...

Spoiler For Pokemon TI:
Axe port of Pokemon Red/Blue to the 83+/84+ family. On hold.

Spoiler For Nostalgia:
My big personal project, an original RPG about dimensional travel and a few heroes tasked with saving the world.
Coding-wise, on hold, but I am re-working the story.

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

Spoiler For Nostalgia Origins: Sky's Story:
Prequel to Nostalgia. On hold, especially while the story is re-worked.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Referencing Text() Coordinates
« Reply #6 on: February 23, 2011, 05:19:34 pm »
From ti83plus.inc:

Code: [Select]
penCol equ 86D7h
penRow equ 86D8h


Also, a little-known fact regarding printing text at constant coordinates:
Code: [Select]
.Coordinate=Y*256+X
Text(30*256+20)
Text "Stuff"
Is 7 bytes smaller than:
Code: [Select]
Text(20,30,"Stuff")

The same applies for text drawn to the home screen:
Code: [Select]
.Coordinate=X*256+Y
Output(20*256+30)
Disp "Stuff"
Is smaller than:
Code: [Select]
Output(20,30,"Stuff")
By even more, 8 bytes.
O.O I didn't know you could use Text "Stuff" syntax

Offline squidgetx

  • Food.
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1881
  • Rating: +503/-17
  • rawr.
    • View Profile
Re: Referencing Text() Coordinates
« Reply #7 on: February 23, 2011, 05:42:29 pm »
Huh. Well, you learn something new every day!
* squidgetx goes off to optimize

Wow, this opt is incredible O.o
« Last Edit: February 23, 2011, 06:19:38 pm by squidgetx »

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Referencing Text() Coordinates
« Reply #8 on: February 24, 2011, 12:06:00 am »
O.O I didn't know you could use Text "Stuff" syntax

Yep, it's like Disp "STUFF", but with graph text.
« Last Edit: February 24, 2011, 12:06:08 am by Deep Thought »