Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
About
Team
Rules
Stats
Status
Sitemap
Chat
Downloads
Forum
News
Our Projects
Major Community Projects
Recent Posts
Unread Posts
Replies
Tools
SourceCoder3
Other Things...
Omnimaga Radio
TI-83 Plus ASM File Unsquisher
Z80 Conversion Tools
IES TI File Editor
Free RAM areas
Comprehensive Getkeyr table
URL Shortener
Online Axe Tilemap Editor
Help
Contact Us
Change Request
Report Issue/Bug
Team
Articles
Members
View the memberlist
Search For Members
Buddies
Login
Register
Omnimaga
»
Forum
»
Calculator Community
»
TI Calculators
»
Axe
(Moderator:
Runer112
) »
Two-Byte Tokens ?
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Two-Byte Tokens ? (Read 3308 times)
0 Members and 1 Guest are viewing this topic.
Hayleia
Programming Absol
Coder Of Tomorrow
LV12
Extreme Poster (Next: 5000)
Posts: 3367
Rating: +393/-7
Two-Byte Tokens ?
«
on:
June 03, 2013, 02:56:05 pm »
So I am currently experimenting things a bit with tokens, and I hit the problem most of us surely met: two-byte token. See the screenshot, everything is displaying well... except that there are "?" behind all the "L1" and a "}" behind the "AxesOff". So I guess that "L1" and "AxesOff" actually are two-byte tokens and since my code currently displays a token at each byte, I must be displaying L1, then an unknow one-byte token that is actually part of L1 and was already displayed.
So the question is: How to recognize a two-byte token so I don't display something that shouldn't ?
edit
Also, I posted this in "Axe Language" since I did my program in Axe, but this question could also apply to ASM since it only requires ASM knowledge, so if you think this is not the right place to ask this, feel free to move it.
«
Last Edit: June 03, 2013, 03:07:44 pm 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.
click here to know where you got your last +1s
jacobly
LV5
Advanced (Next: 300)
Posts: 205
Rating: +161/-1
Re: Two-Byte Tokens ?
«
Reply #1 on:
June 03, 2013, 05:43:21 pm »
Iff a byte is equal to ᴇ5C, ᴇ5D, ᴇ5E, ᴇ60, ᴇ61, ᴇ62, ᴇ63, ᴇ7E, ᴇBB, ᴇAA, or ᴇEF, then it is the first byte of a two byte token, and it can not be the second byte of a two byte token.
Logged
+1/-0 karm for this message
shmibs
しらす丼
Administrator
LV11
Super Veteran (Next: 3000)
Posts: 2132
Rating: +281/-3
try to be ok, ok?
Re: Two-Byte Tokens ?
«
Reply #2 on:
June 03, 2013, 06:45:58 pm »
^ yup, it's that simple.
take a look at
tibasicdev
if you want to see which is which in more detail.
Logged
+1/-0 karm for this message
Hayleia
Programming Absol
Coder Of Tomorrow
LV12
Extreme Poster (Next: 5000)
Posts: 3367
Rating: +393/-7
Re: Two-Byte Tokens ?
«
Reply #3 on:
June 04, 2013, 01:28:39 am »
Ok, thanks both of you. I knew there was a simple answer but I didn't know that answer.
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.
click here to know where you got your last +1s
Print
Pages: [
1
]
Go Up
« previous
next »
Omnimaga
»
Forum
»
Calculator Community
»
TI Calculators
»
Axe
(Moderator:
Runer112
) »
Two-Byte Tokens ?