Author Topic: Running ASM programs larger than 8 KB  (Read 7617 times)

0 Members and 2 Guests 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: Running ASM programs larger than 8 KB
« Reply #15 on: January 04, 2011, 02:20:19 am »
Haha its fine, it happens round the nets :)

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: Running ASM programs larger than 8 KB
« Reply #16 on: January 04, 2011, 02:22:58 am »
Supposedly, although who knows with TI :/ Maybe it was an accident, and they don't know how to fix it :P

I'm pretty sure it was done intentionally.  A processor that "locks up" to prevent larger sizes is no coincidence from TI, because Zilog would have been sued for something like that.
Also, on the TI-73, there's no such limit. This calc also cannot natively run ASM programs (no Asm() command). You have to hack it the same way we did back in the '90s with the TI-82, 85 and 92 series. Coincidence? I don't think so. Due to lack of an Asm() command, no need to add a limit. As a result, if you use Chameleon on a 73 (by BrandonW) to convert it into a TI-83+, you get a TI-83+ that lacks the 8 KB limit.

Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: Running ASM programs larger than 8 KB
« Reply #17 on: January 04, 2011, 02:49:11 am »
By the way, I just though about this... you *could* run a contiguous program of 32kb on the calculator.  Its easy too.  In a 2 page app, just swap the 2nd page of the app into the $8000-$BFFF region and that's it!  Unfortunately though, you wouldn't be able to call any OS bcalls or use self modifying code, but other than that, it would work.
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Running ASM programs larger than 8 KB
« Reply #18 on: January 04, 2011, 02:51:25 am »
By the way, I just though about this... you *could* run a contiguous program of 32kb on the calculator.  Its easy too.  In a 2 page app, just swap the 2nd page of the app into the $8000-$BFFF region and that's it!  Unfortunately though, you wouldn't be able to call any OS bcalls or use self modifying code, but other than that, it would work.

Wouldn't jumps have an issue if you had to jump to a different page?  It would mean a lot of ram page swapping, wouldn't it?

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: Running ASM programs larger than 8 KB
« Reply #19 on: January 04, 2011, 02:52:29 am »
Do you mean we would need to carry an additional 32 KB APP that contains the code to be copied in the 8xp program?
« Last Edit: January 04, 2011, 02:52:43 am by DJ Omnimaga »

Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: Running ASM programs larger than 8 KB
« Reply #20 on: January 04, 2011, 02:56:25 am »
Wouldn't jumps have an issue if you had to jump to a different page?  It would mean a lot of ram page swapping, wouldn't it?

Nope, if its only 2 pages, there are no other pages.  Page 1 is $4000-$7FFF and page 2 is $8000-$BFFF.  A jump to say... $9001 would simply be jp $9001.  You just have to have your orgin on page 2 to .org $8000 and .org $4000 on page 1.
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: Running ASM programs larger than 8 KB
« Reply #21 on: January 04, 2011, 06:15:40 pm »
Wouldn't jumps have an issue if you had to jump to a different page?  It would mean a lot of ram page swapping, wouldn't it?

Nope, if its only 2 pages, there are no other pages.  Page 1 is $4000-$7FFF and page 2 is $8000-$BFFF.  A jump to say... $9001 would simply be jp $9001.  You just have to have your orgin on page 2 to .org $8000 and .org $4000 on page 1.
Note that a bunch of routines wouldn't be available in this mode.  Interrupts as well.