Author Topic: The copying of ASM programs  (Read 978 times)

0 Members and 1 Guest are viewing this topic.

Offline Hot_Dog

  • If you can't find a cat, look for its tail.
  • Support Staff
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2944
  • Rating: +445/-10
    • View Profile
The copying of ASM programs
« on: November 12, 2010, 09:40:39 am »
I read that in ASM 28 days, smc isn't saved in an ASM program because the program is copied to $9D95.  This, of course, means that there's 2 copied of the same ASM program in the calculator's memory.  What happens if a person tries to run an 8 KB ASM program when then calculator's memory is almost full?
There are people who can speak two languages, and they are called bilingual.  There are people who speak three languages and are therefore trilingual.  Then there are people who speak one language, and these people are called Americans.


Offline Xeda112358

  • Xombie. I am it.
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4182
  • Rating: +672/-6
  • meow :3
    • View Profile
Re: The copying of ASM programs
« Reply #1 on: November 12, 2010, 09:44:24 am »
It gives me a memory error.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6209
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: The copying of ASM programs
« Reply #2 on: November 12, 2010, 10:37:51 am »
It gives me a memory error.

Obviously, not enough space. Can the program be archived?

Offline Hot_Dog

  • If you can't find a cat, look for its tail.
  • Support Staff
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2944
  • Rating: +445/-10
    • View Profile
Re: The copying of ASM programs
« Reply #3 on: November 12, 2010, 01:46:02 pm »
It gives me a memory error.

Obviously, not enough space. Can the program be archived?

I have no idea.  But what I was hoping for was that two copies of the program would still exist if the program could be run.  I plan to run an ASM program without using asm()
There are people who can speak two languages, and they are called bilingual.  There are people who speak three languages and are therefore trilingual.  Then there are people who speak one language, and these people are called Americans.


Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1585
  • Rating: +822/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
Re: The copying of ASM programs
« Reply #4 on: November 12, 2010, 03:05:08 pm »
I'm not exactly sure what your are saying, but here is how it works. When you run a program, either a BASIC with prgm, and ASM with asm(, or even an asm with bcall(_executePrgm), it gets copied from where ever it is to $9D95. The program can be in flash, or it can be in ram, either way, space is allocated at $9D95 and the program is copied there. When it is done executing, the OS just deletes that memory and it is is gone, which is why smc doesn't change the program. Also, since memory must be allocated for the program to be run, if you don't have enough ram left, you will get an ERR:Memory.
zStart v1.3.013 9-20-2013 
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112

Offline calc84maniac

  • Epic z80 roflpwner
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2808
  • Rating: +452/-17
    • View Profile
Re: The copying of ASM programs
« Reply #5 on: November 12, 2010, 03:06:31 pm »
If the program is in flash, it is only copied to RAM if you are using something like Calcutil, otherwise you get an ERR: ARCHIVED (because TI-OS sucks)
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline Xeda112358

  • Xombie. I am it.
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4182
  • Rating: +672/-6
  • meow :3
    • View Profile
Re: The copying of ASM programs
« Reply #6 on: November 12, 2010, 03:11:54 pm »
Sometimes I wonder if TI is actually just letting us have fun by purposefully leaving things up to us to come up with... I mean, seriously, they have it in the OS to be able to do this yet it isn't implemented... sheesh.

Offline calc84maniac

  • Epic z80 roflpwner
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2808
  • Rating: +452/-17
    • View Profile
Re: The copying of ASM programs
« Reply #7 on: November 12, 2010, 03:16:45 pm »
Well, they did it right on the TI-89, at least. They allowed using archived variables as read-only instead of erroring upon access.
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline Xeda112358

  • Xombie. I am it.
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4182
  • Rating: +672/-6
  • meow :3
    • View Profile
Re: The copying of ASM programs
« Reply #8 on: November 12, 2010, 03:18:33 pm »
And that is why I love my 89 <3

Online DJ Omnimaga

  • Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
  • Editor
  • LV15 Omnimagician (Next: --)
  • ***************
  • Posts: 54693
  • Rating: +3126/-230
  • Retired Omnimaga founder (No longer admin)
    • View Profile
    • Omnimaga
Re: The copying of ASM programs
« Reply #9 on: November 13, 2010, 01:47:44 am »
A while ago, BrandonW was planning to write an OS patch that let 83+ users run programs directly from archive, but I forgot what happened to it...
Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)
►►Please PM Omni issues to the right admins, not me, and use the forums for calculator help, else you'll be ignored.◄◄

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter