Author Topic: ASM Delvar - Clean and free up from BASIC variables  (Read 12769 times)

0 Members and 1 Guest are viewing this topic.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: ASM Delvar - Clean and free up from BASIC variables
« Reply #15 on: April 18, 2010, 01:49:28 pm »
I'm with ztrumpet on this one, custom Lists are almost always highscores or save files O.O and i'm not sure if Strings should be deleted,  I know some games use them to store data.  I say just leave them out :)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: ASM Delvar - Clean and free up from BASIC variables
« Reply #16 on: April 18, 2010, 02:32:13 pm »
Not to mention there are 52007967 possible list names combinations to check for. Unless in the memory, all lists are stored in the same area and that the total space used by them can be easily detected and VAT cleaned easily, I can't imagine how slow it would be to check that many possible lists and delete them if they exist.

Don't delete pics nor strings. Some games uses them. In fact, in pure BASIC, they can be used for data storage that can be archived to circumvent the inability to archive/unarchive programs from inside other programs.

Offline mapar007

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 550
  • Rating: +28/-5
  • The Great Mata Mata
    • View Profile
Re: ASM Delvar - Clean and free up from BASIC variables
« Reply #17 on: April 18, 2010, 03:06:24 pm »
Quote

The interesting now would be someone help me debug the TI-83 build. For the TI-83 there is few documentation on bcalls, but I will try to compare to TI-83+ to see what differences come out. Debugging on calculator and watch the entire bcall disassembly is a thing I won't do. Angry Maybe it is not worth to put on TI-83 nowadays.


I'll check tomorrow. You're probably using a 83+ only side-effect or assuming a register intact. Maybe a few extra push/pops will help?
« Last Edit: April 18, 2010, 03:06:40 pm by mapar007 »

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: ASM Delvar - Clean and free up from BASIC variables
« Reply #18 on: April 18, 2010, 04:42:38 pm »
I don't think the 83 has bcalls. There are only calls.
« Last Edit: April 18, 2010, 04:42:48 pm by calc84maniac »
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline Galandros

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1140
  • Rating: +42/-10
    • View Profile
Re: ASM Delvar - Clean and free up from BASIC variables
« Reply #19 on: April 19, 2010, 04:23:35 am »
I don't think the 83 has bcalls. There are only calls.
Oops, it is definitely that for starters. xD I saw TI-83 documentation so long ago... It is just question to change the bcall macro. (instead of rst, do a call)
Thanks mapar007 for offering help.
EDIT: It rocks in TI-83, yeah!
* Galandros gives a thumb up to calcmaniac84
EDIT2: I am curious about how easily I can assemble for TI-82, TI-73, TI-85 and TI-86. Just all the z80 calculators. XD I gotta to release my include files and edit WikiTI about this.

About lists I liked to know other lists like LRESID. Of course I will not mess others that are save games.
ANd most programs I see in forums use LA, LB, LC as temporary lists... But better keep this ones out, too. And sometimes appeared LL1 to LL9 in my calculator because of some TI program I checked. (CBL related, I think)
« Last Edit: April 19, 2010, 04:36:36 am by Galandros »
Hobbing in calculator projects.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: ASM Delvar - Clean and free up from BASIC variables
« Reply #20 on: April 19, 2010, 10:06:12 am »
I remember back in 2003-04 there was something called the "TI-82, 83 and 83+ Unification FAQ", which was a guide by the TI French Team (TIFT) on porting games accross those models. It came pretty handy sometimes, but when the old TIFT site shutted down it took that guide away with them :(

Offline Galandros

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1140
  • Rating: +42/-10
    • View Profile
Re: ASM Delvar - Clean and free up from BASIC variables
« Reply #21 on: April 19, 2010, 02:23:30 pm »
I remember back in 2003-04 there was something called the "TI-82, 83 and 83+ Unification FAQ", which was a guide by the TI French Team (TIFT) on porting games accross those models. It came pretty handy sometimes, but when the old TIFT site shutted down it took that guide away with them :(
Oh, I got a copy of that somehow, actually since many time ago. (http://www.ticalc.org/archives/files/fileinfo/369/36923.html) It has some good tips only today I added to WikiTI.
I wish I remembered that FAQ before... Thanks as always DJ. If someone remembers other similar topic, tell me. :D
But I think it is worth to write a topic about porting programs between calculator models. I plan to it even giving important routines to the port.
* Galandros wonders if he can port DelVar in asm to TI-82, TI-85 and TI-86...
I will try out. I have 3 calculators models ports to go. ^^
Anyone here knows what are the most common shells in TI-82, TI-83, TI-85 and TI-86?
TI-83 is probably Ion. For TI-82 I think there is AShell and Crash but I only know their names.
For TI-85 and TI-86, I know even less. (there is Usgard shell?)
I will go into UTI topic about shells... It can have valuable information.
« Last Edit: April 19, 2010, 02:49:27 pm by Galandros »
Hobbing in calculator projects.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: ASM Delvar - Clean and free up from BASIC variables
« Reply #22 on: April 19, 2010, 02:45:03 pm »
Oh wow I didn't knew it was at ticalc too, good thing the authors posted it, I was sure it was gone for good

Offline Galandros

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1140
  • Rating: +42/-10
    • View Profile
Re: ASM Delvar - Clean and free up from BASIC variables
« Reply #23 on: April 19, 2010, 05:21:15 pm »
Ok, for TI-82 the bcalls needed are undocumented.

TI-86 variables format is different and you can have custom names even with matrices. Searching in VAT, more coding, few documentation, forget.
I tried on emulator.
TI-85 is similar with TI-86, so the same thing.

Well, next time I will waste time on something "less useless" (sounds funny). At least this gives me some experience to share in the WikiTI porting topic...

EDIT: The TI-83 version works with Venus shell but not with Ion... Some hint?
« Last Edit: April 19, 2010, 05:50:11 pm by Galandros »
Hobbing in calculator projects.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: ASM Delvar - Clean and free up from BASIC variables
« Reply #24 on: April 19, 2010, 11:24:11 pm »
I would just stick to 83+ and if you can do it, 83/82 stats maybe. The 82, 85 and 86 are barely used anymore

Offline Galandros

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1140
  • Rating: +42/-10
    • View Profile
Re: ASM Delvar - Clean and free up from BASIC variables
« Reply #25 on: May 06, 2010, 07:46:06 am »
I uploaded to ticalc today, so it is still pending.

The TI-83 build of delete all variables is buggy and causes stability on TI-OS until it crashes. So it is not provided.
All the other builds work, though.

The first post will be edited with the new source code. ;)
EDIT: done.
« Last Edit: May 06, 2010, 07:57:49 am by Galandros »
Hobbing in calculator projects.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: ASM Delvar - Clean and free up from BASIC variables
« Reply #26 on: May 06, 2010, 10:02:06 pm »
nice ^^