• Zeda's Hex Codes 5 1
Currently:  

Author Topic: Zeda's Hex Codes  (Read 66244 times)

0 Members and 1 Guest are viewing this topic.

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Zeda's Hex Codes
« Reply #60 on: March 27, 2011, 01:03:19 am »
Is this for Axe?

Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: Zeda's Hex Codes
« Reply #61 on: March 27, 2011, 01:10:48 am »
Yes, yes it is.
Not an Edit: Post 200!
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Zeda's Hex Codes
« Reply #62 on: March 27, 2011, 01:11:29 am »
So you couldn't use pixel on/off or are you editing sprites directly in a data file?

Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: Zeda's Hex Codes
« Reply #63 on: March 27, 2011, 01:18:18 am »
This is to create the sprite data, because currently the sprite only exists in the graph screen buffers.
PS: I have a Great Aunt Zeda. She has a road named after her.

Edit: Will this work on the last 8 pages or will it overflow and screw me over?
« Last Edit: March 27, 2011, 01:23:09 am by Freyaday »
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Zeda's Hex Codes
« Reply #64 on: March 27, 2011, 01:20:39 am »
This is to create the sprite data, because currently the sprite only exists in the graph screen buffers.
Oh, I see, now! Cool!
PS: I have a Great Aunt Zeda. She has a road named after her.
^-^

EDIT: Oh, wow, I never saw your edit Freyaday... I am not sure what you mean, but using the example before of turning a bit on and returning the previous state, this version also uses two pointers-- one points to the data, and the other is the bit offset:
Code: [Select]
<<Ans points to a var>>
Asm(E5
<<Ans is the bit to edit>>
Asm(7DE6073C473E010F10FDCB2CCB1DCB2CCB1DCB2CCB1DC109
Asm(47A63D3FF578B677F1ED6223

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Zeda's Hex Codes
« Reply #65 on: April 20, 2011, 09:41:17 pm »
I figured I would upload the latest version of the hex code list :) The only updates are the ones mentioned a few posts back :/

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Zeda's Hex Codes
« Reply #66 on: April 21, 2011, 11:18:26 am »
I figured I would upload the latest version of the hex code list :) The only updates are the ones mentioned a few posts back :/

Nice Zeda, will you be updating this on Omni Downloads and ticalc.org too?

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Zeda's Hex Codes
« Reply #67 on: April 21, 2011, 11:28:17 am »
I probably should update it here XD If I get around to it, I will update it on TICalc, too :)

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Zeda's Hex Codes
« Reply #68 on: April 21, 2011, 11:37:08 am »
I probably should update it here XD If I get around to it, I will update it on TICalc, too :)

I hope you do.

Is this group of hex codes the right place for me to add routines like this in hex? Or not really?

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Zeda's Hex Codes
« Reply #69 on: April 21, 2011, 11:39:20 am »
Er, not really :/ These are tools for BASIC programmers, not routines for assembly programmers :)

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Zeda's Hex Codes
« Reply #70 on: April 21, 2011, 11:41:27 am »
Er, not really :/ These are tools for BASIC programmers, not routines for assembly programmers :)

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

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Zeda's Hex Codes
« Reply #71 on: September 03, 2011, 06:18:11 pm »
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: [Select]
Auto Fractions:
21FA893E0C77C9
optimises to:
3E0CFD770AC9
Code: [Select]
Alpha Press Lock
21028A3ED0B677C9
optimises to:
3ED1FD7712C9

So here is v1.31

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Zeda's Hex Codes
« Reply #72 on: March 12, 2012, 02:40:42 pm »
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...

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Zeda's Hex Codes
« Reply #73 on: November 27, 2012, 08:24:37 am »
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:
This might be hard, but how about writing back a string to a label in the program? Something like

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

True SMC in BASIC is something we have yet to see :D
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:
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: [Select]
7EE5E60FCB3FF53C4F060009EB606822B48423F130061AE60FCDB54E1AE6F007070707CDB54E1B0D79B720EAE111090019ED5BB4847BC9
D5E5CD804EED5BB4841922B484E13E0ACD804ED1C9
EB0608210000290730011910F9C9
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.
Blegh, such an inefficient code XD Anyways, these 70 bytes can go in Axe, in-line, using Asm(

Code: [Select]
EFD74A2178847EE680F5237ED68011000038284704237E07070707E5626B29291929EBE1E60F835F30011405280D3E80A8280847077E38E32318DBF128077B2F5F7A2F5713EBIt 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.

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Zeda's Hex Codes
« Reply #74 on: January 09, 2013, 11:31:22 pm »
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: [Select]
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
This is my first ever use of OFFSCRPT, so I apologise for anything that I broke D: