I tried to search for it but had no luck. can someone give me the hex code for a TI 83 Plus that enables the cursor hook.
This page on WikiTI has info about the cursor hook. I'm not sure how familiar you are with hooks, but you will need the hook code in a static location. Sometimes you can get away with using a chunk of RAM, but almost always you will need to have the code in an application. Once you have the address, we'll call it xxxx on flash page yy, you can enable the hook with:
21xxxx3EyyEF604FC9
Z80 Assembly>English>TI-BASIC>Python>French>C>0
Can I use it with AsmPrgm? Or how do I use it?
If you have the address of the hook, then you can use the hexcode above, just replacing the xxxx and yy with the address and flash page. If you want to make an entirely new hook, that will require a lot more work.
What exactly do you want to to with the hook?
Z80 Assembly>English>TI-BASIC>Python>French>C>0
Move the cursor around the screen without putting in all those spaces on my calculator.
I've been thinking about the best way to approach this, but I have some questions and possible suggestions.
Do you just want to use it to make homescreen art, or do you want it for use in the program editor, too? It will be much harder to let it work in the program editor.
For homescreen work, do you want to be able to type and move the cursor with arrow keys?
If this is the case, this might be a job better suited to a program (BASIC or Assembly). It would consist of:
- code to read a keypress (getKey in BASIC)
- code to convert that key to a char or token (I have this code in an old BASIC RPG, and I've made assembly versions)
- code to draw the char or string at the cursor position (Output(Y,X,Str1 in BASIC, bcall(_PutC) [EF0445] or bcall(_PutS) [EF1045] in assembly)
Z80 Assembly>English>TI-BASIC>Python>French>C>0
I want it to be on the homestead and yes I would like to type and move the cursor with the arrow keys.
In that case, a BASIC program should do fine.
Also, Glyphs might be a useful (it contains a string of all of the available chars).
Z80 Assembly>English>TI-BASIC>Python>French>C>0
Hmm, that's not really something I'm up for, but I did find the code to convert a key to a char. You might be able to look at it and sort it out. Unfortunately I was using an advanced calling technique and don't have the time to detangle the nuances, but you might get an idea. This code was used in a program that required typing on the graph screen, so it will need to be modified. However, it does do the basic work of converting keys to chars and such.
(I got this from passing my prgmCMD from an old project through sourcoder3, then somewhat modified again to convert tokens):
Lbl 2
If not(fPart(I.5
I-1→I
DelVar D":→Str2
Repeat A=105
Text(-1,0,90,sub(" ↑Aa",I,1
iPart((D+C)/23→A
C+D-23Ans→F
DelVar GB+A→E
If Ans=9
Then
B-1→B
E-1→E
Asm(prgmZ01
End
9→H
Repeat A
getKey→A
If Ans
1→G
H+1
If Ans>9 or A
Then
not(G→G
Ymax-ΔY(14+6E
Line(Xmin+4FΔX,Ans,Xmin+ΔX(4F+3),Ans,G
0
End
Ans→H
End
If A≠105
Then
If A=31
3+(I=3→I
If A=21
2-(I=2→I
If A=23
min(1,D→G
If A=45
D→G
If G
Then
For(A,1,G
D-1→D
F-1
If Ans<0
Then
E-1→E
22
End
Ans→F
Text(6E+9,4F,"
End
DelVar Asub(Str2,1,D+1→Str2
End
If I=1 and A>61
Then
.1A-6.1
If fPart(Ans
Then
1+4iPart(Ans)+10fPart(Ans-.1
sub(",()/789*456-123+0.-",Ans,1
Text(6E+9,4F,Ans
Str2+Ans→Str2
D+1→D
End
End
If I>=3
Then
.1A-4.1
1+10fPart(Ans)+5iPart(Ans
If Ans=4 or Ans=5
-1
If Ans>3
Ans-2
If Ans>0
Then
If I=3
sub("ABCDEFGHIJKLMNOPQRSTUVWXYZθ' :?",Ans,1
If I=4
sub("abcdefghijklmnopqrstuvwxyzθ' :?",Ans,1
Text(6E+9,4F,Ans
Str2+Ans→Str2
D+1→D
End
End
End
End
1+B+iPart((D+C)/23
While Ans>9
Then
Asm(prgmZ01
Ans-1
End
Ans→B
DelVar G1→A
End
prgmZ01 shifted a portion of the graph screen up by 1. You shouldn't need to use this.
Z80 Assembly>English>TI-BASIC>Python>French>C>0
I used a hex code to generate a string of chars. See one of my earlier comments for a download.
Z80 Assembly>English>TI-BASIC>Python>French>C>0