Calculator Community > TI-BASIC

Zeda's Hex Codes

<< < (15/16) > >>

Munchor:

--- Quote from: Xeda112358 on April 21, 2011, 11:39:20 am ---Er, not really :/ These are tools for BASIC programmers, not routines for assembly programmers :)

--- End quote ---

Yeah I thought so, I need to create some library like that, but then again, not that useful.

Xeda112358:
I was on the french site tout82 trying to help out with some hex codes for the 82/83 when I thought of an optimisation that applied to about ten of the codes. Here is an example:

--- Code: ---Auto Fractions:
21FA893E0C77C9
optimises to:
3E0CFD770AC9
--- End code ---

--- Code: ---Alpha Press Lock
21028A3ED0B677C9
optimises to:
3ED1FD7712C9
--- End code ---

So here is v1.31

Xeda112358:
Yay, a necropostable topic! I cannot believe I never added these two codes, these are codes I am proud of for making!

Shift screen right 4   (Added v1.32)
  2140930E40AF060CED672310FB0D20F5C9
    This will shift the screen right 4 pixels.
Shift screen left 4   (added v1.32)
  213F960E40AF060CED6F2B10FB0D20F5C9
    This will shift the screen 4 pixel left.

Also, for completeness:

Shift screen up 4   (added v1.32)
  21709311409301D002EDB0EB013000EF304CC9
    This will shift the screen 1 pixel up.

Shift screen down 4   (added v1.32)
  210F96113F9601D002EDB823013000EF304CC9
    This will shift the screen 1 pixel down.

I wonder what else I should add...

Xeda112358:
In a future update, I should include:
Edit Lock/Unlock Programs
EFD74AFE04C03CEB4E234623117884121CEDB0AF12EFF142D8EE0377C9

Put the name of the program in Ans, if it exists, this will toggle the lock status of the program. Maybe I should also make a Hide/Unhide code and a short code to toggle between appvars and programs. These two, however, would require that I check for duplicates, so the code would get even more involved.

EDIT:
--- Quote from: Deep Thought on February 27, 2011, 02:15:39 pm ---This might be hard, but how about writing back a string to a label in the program? Something like


--- Code: (TI-BASIC) ---:Lbl 0
:{1,1,2,3
:Lbl 1
:Ans?L?
:"{1,3,4,7?Str1
:"0,1
:Asm(SMC

--- End code ---

True SMC in BASIC is something we have yet to see :D

--- End quote ---
Almost two years ago, but... I do not have the opcode for this one since the programs are pretty big, opcode-wise, but I finally made it :D I think it is rather snazzy as well. Also, I am not content with this being the final version :P When I do finalise it, I will put it in the hex opcodes list.

EDIT2: This is more for Axe programmers. I looked back at this post and felt that I should update it. I created a much better routine for Grammer and BatLib that I have adapted for Axe. It is now much faster and it works with relative addresses. Also, it recognises negative numbers:

--- Quote from: Xeda112358 on March 04, 2011, 11:54:05 am ---To store to Ans and make use of numbers greater than 9999, then you would need a code that looks kind of like this:

--- Code: ---7EE5E60FCB3FF53C4F060009EB606822B48423F130061AE60FCDB54E1AE6F007070707CDB54E1B0D79B720EAE111090019ED5BB4847BC9
D5E5CD804EED5BB4841922B484E13E0ACD804ED1C9
EB0608210000290730011910F9C9

--- End code ---
Do not use that because that only works in a very specific context, but that is what the code looks like in BatLib. I am not sure how to translate that to Axe because it uses calls.

Anywho, the OS bcall EFEF4A does not convert numbers >9999, but EF9247 can store numbers up to 65535.

--- End quote ---
Blegh, such an inefficient code XD Anyways, these 70 bytes can go in Axe, in-line, using Asm(


--- Code: ---EFD74A2178847EE680F5237ED68011000038284704237E07070707E5626B29291929EBE1E60F835F30011405280D3E80A8280847077E38E32318DBF128077B2F5F7A2F5713EB
--- End code ---
It is a bit big, but it works. Plus, it can be easily adapted further to make it easy to read list elements, so if you want to pass a list to your Axe program (for a library, for example), you can.

Xeda112358:
Last night I posted a hex code on TI-BASICDeveloper for making programs run on startup. To use it, pass the name of the program in Ans with a "[" before the name. For example, to run prgmHELLO on startup:
"[HELLO]:Asm(prgmOFFSCRPT

Here is the code:

--- Code: ---EFD74AFE04C0
EB4E234623
C5E5212C00
09E521CC9D
E7EFF1423803EFC64F
E1EF6A4E
1313
21D59D
012A00EDB0
E1C1
EDB0AF12
FDCB33CE
C9
154F46465343525054
2109807C
EF7B4FC9
83
FDCB09A6
EFD348
EF7E4F
212B80
E7EFF142D8
FDCB08CE
EF9B4A
FDCB088E
AF473CC9

--- End code ---
This is my first ever use of OFFSCRPT, so I apologise for anything that I broke D:

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version