Omnimaga

Calculator Community => TI Calculators => TI-BASIC => Topic started by: Hot_Dog on December 16, 2010, 11:38:46 am

Title: Speed of Asm(
Post by: Hot_Dog on December 16, 2010, 11:38:46 am
When used in a Ti-Basic program, how fast does something like Asm(FDCB368E) run in comparison with other lines in a Ti-Basic program?  Meaning is it slowest?  One of the slowest?  Average speed?  Fast?
Title: Re: Speed of Asm(
Post by: lookitsan00b on December 16, 2010, 11:44:05 am
as far as I am aware, that doesn't even work.

you have to put it in a program first. (either that or you have to put the header in...)
Title: Re: Speed of Asm(
Post by: jnesselr on December 16, 2010, 11:47:48 am
I'm pretty sure it must be in a program, but ignoring that, I think it takes some time to go look up the program, but after actually loading it, I think it is really fast.
Title: Re: Speed of Asm(
Post by: yunhua98 on December 16, 2010, 11:54:24 am
lol, Axe addiction. ;)
I think its like a Goto for the Program Menus, so its slow, after it activates, it depends on the speed of the code.  btw, maybe someone could make a program that allows hex to be put directly into the Asm token?

1111st post!
Title: Re: Speed of Asm(
Post by: KermMartian on December 16, 2010, 12:31:38 pm
Use Doors CS; the Third-Party BASIC libraries (http://dcs.cemetech.net/index.php?title=Third-Party_BASIC_Libraries) offer both ExecHex via Celtic III (det(20,"CODE")) and ExecAsm via Omnicalc (real(33,"CODE")).
Title: Re: Speed of Asm(
Post by: Hot_Dog on December 16, 2010, 12:34:32 pm
Use Doors CS; the Third-Party BASIC libraries (http://dcs.cemetech.net/index.php?title=Third-Party_BASIC_Libraries) offer both ExecHex via Celtic III (det(20,"CODE")) and ExecAsm via Omnicalc (real(33,"CODE")).

Thanks, Kerm!  Although many calculators I'm aiming at won't have Doors CS
Title: Re: Speed of Asm(
Post by: jnesselr on December 16, 2010, 12:37:54 pm
Use Doors CS; the Third-Party BASIC libraries (http://dcs.cemetech.net/index.php?title=Third-Party_BASIC_Libraries) offer both ExecHex via Celtic III (det(20,"CODE")) and ExecAsm via Omnicalc (real(33,"CODE")).
I love whenever it's something about DCS, he just pops up out of nowhere! It's funny, really.  I guess you could have your hex code in ans and have another asm program run it.
Title: Re: Speed of Asm(
Post by: DJ Omnimaga on December 16, 2010, 09:19:30 pm
Yeah I think Hot Dog meant in BASIC. Also Asm() in BASIC is Asm(prgmNAME).

Speed varies. I think it depends of the ASM program size. If I remember, the code is copied in a specific memory address which can hold 8192 bytes of code and I always forget that address, and the longer the code, the longer it takes to copy. In addition to that, it searches the VAT for the program in question, so the more files there are on the calc, the longer it takes for Asm() to even respond at all.

With CODEX, with a calc free of any program, a flashing screen animation blinked extremly rapidly. So much that I almost had grayscale. However, with a calc filled with junk and running with limited RAM, the program took about 0.1 seconds to even launch. 0.1 seconds makes a huge difference when you're trying to draw a tilemap sprite by sprite. This is why The Reign of Legends 3 map loading took so long.

If you use Doors CS7 ExecAsm command (or the same command via any parser hook installer), it will launch the code instantly.