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

0 Members and 1 Guest are viewing this topic.

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • 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?

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: 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: 6199
  • 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

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • 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()

Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-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

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
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

  • 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: 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

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
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

  • 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: The copying of ASM programs
« Reply #8 on: November 12, 2010, 03:18:33 pm »
And that is why I love my 89 <3

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: 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...