CEMETECH
Leading The Way To The Future
Login [Register]
Username:
Password:
Autologin:

Don't have an account? Register now to chat, post, use our tools, and much more.
Latest Headlines
Online Users
There are 79 users online: 0 members, 53 guests and 26 bots.
Members: None.
Bots: VoilaBot (1), Baidu (1), Spinn3r (1), Magpie Crawler (4), VoilaBot (2), Googlebot (17).
RSS & Social Media
SAX
You must log in to view the SAX chat widget
Author Message
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55733
Location: Earth, Sol, Milky Way

Posted: 06 Aug 2010 03:30:46 pm    Post subject:

qazz42 wrote:
ok, ill test it
Thanks, let me know how it goes. For you ASM programmers, that's a pretty handy incantation, by the way:


Code:
iFastCopy:
   ld a,i
   push af
      di
      ;code goes here
      ;it can ex af,af'
      ;it can also exx
      ;nothing bad will happen
      ;as far as I know
      pop af
   ret po
   ei
   ret

_________________


Back to top
qazz42


Vampire Killer


Joined: 07 Apr 2010
Posts: 4177

Posted: 06 Aug 2010 03:35:15 pm    Post subject:

Ok, it doesnt work, btw, a line of code I forgot



Code:
CPU reset



that is at the top of the error message
_________________


Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55733
Location: Earth, Sol, Milky Way

Posted: 06 Aug 2010 03:36:23 pm    Post subject:

qazz42 wrote:
Ok, it doesnt work, btw, a line of code I forgot


Code:
CPU reset


that is at the top of the error message
Wait, really? You mean it still resets even with this fix? That's unfortunate. Sad I don't have too many ideas then. It resets on the first Tokenize, though, before you see any progress bar, correct?
_________________


Back to top
qazz42


Vampire Killer


Joined: 07 Apr 2010
Posts: 4177

Posted: 06 Aug 2010 03:38:02 pm    Post subject:

yep, sadly, sorry, but it seems you have an undocumented instruction


This is the exact reset that happens when you have an asm prgm with undocumented instructions Sad
_________________


Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55733
Location: Earth, Sol, Milky Way

Posted: 06 Aug 2010 03:39:32 pm    Post subject:

qazz42 wrote:
yep, sadly, sorry, but it seems you have an undocumented instruction
Ohhhhh, wait a second, undocumented instructions! My division routine uses "slia c", aka "sll c", which is indeed undocumented. Calc84 or others, suggested replacement?
_________________


Back to top
qazz42


Vampire Killer


Joined: 07 Apr 2010
Posts: 4177

Posted: 06 Aug 2010 03:40:18 pm    Post subject:

Hehe, I am glad I knew that, your welcome btw Razz
_________________


Back to top
_player1537


Guru-in-Training


Joined: 25 Nov 2009
Posts: 2957

Posted: 06 Aug 2010 03:41:06 pm    Post subject:

Nice to know the reason behind it though Very Happy
_________________
http://tanner.myserverathome.com
Back to top
calc84maniac


Epic z80 roflpwner


Joined: 01 Aug 2006
Posts: 1503
Location: The ex-planet Pluto

Posted: 06 Aug 2010 03:44:10 pm    Post subject:

KermMartian wrote:
qazz42 wrote:
yep, sadly, sorry, but it seems you have an undocumented instruction
Ohhhhh, wait a second, undocumented instructions! My division routine uses "slia c", aka "sll c", which is indeed undocumented. Calc84 or others, suggested replacement?


Code:
scf
rl c

_________________
~calc84maniac has spoken.

Projects:
TI-Boy SE
F-Zero
Super Mario (aka Project M)
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55733
Location: Earth, Sol, Milky Way

Posted: 06 Aug 2010 03:50:46 pm    Post subject:

calc84maniac wrote:
KermMartian wrote:
qazz42 wrote:
yep, sadly, sorry, but it seems you have an undocumented instruction
Ohhhhh, wait a second, undocumented instructions! My division routine uses "slia c", aka "sll c", which is indeed undocumented. Calc84 or others, suggested replacement?


Code:
scf
rl c
Thanks calc84, you're the best. Qazz, I attached you another beta to test if you don't mind.
_________________


Back to top
qazz42


Vampire Killer


Joined: 07 Apr 2010
Posts: 4177

Posted: 06 Aug 2010 04:02:44 pm    Post subject:

Haha, we have a winner! This last one completly works


Now Kerm, new time you make a program, be sure to check for undocumented commands Smile
_________________


Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55733
Location: Earth, Sol, Milky Way

Posted: 06 Aug 2010 04:05:35 pm    Post subject:

qazz42 wrote:
Haha, we have a winner! This last one completly works

Now Kerm, new time you make a program, be sure to check for undocumented commands Smile
Yeah, I know. :S I have a set of stock multiplication and division routines that I use when I don't feel like thinking back at the algorithms behind how they work, but unfortunately my 24 bit by 16 bit unsigned division depends on sll. Smile Thanks calc84 for the tip, thanks Qazz for the tireless testing. As soon as ticalc.org accepts my program, I'll upload an update there and here with the fix.
_________________


Back to top
Xeda112358


Power User


Joined: 09 Nov 2010
Posts: 345

Posted: 07 May 2011 02:38:36 pm    Post subject:

Wow, this is pretty cool! I just gave it a try and I like it Smile I am glad it converts to BBh tokens for lowercase and whatnot, too! Have you thought about including this as well as some other small programs in DCS in the start menu? Including DOCDE7 and TOKENIZE would be pretty cool, I think Smile
Back to top
ephan


Super-Expert


Joined: 12 Nov 2010
Posts: 819

Posted: 07 May 2011 02:39:46 pm    Post subject:

Xeda112358 wrote:
Wow, this is pretty cool! I just gave it a try and I like it Smile I am glad it converts to BBh tokens for lowercase and whatnot, too! Have you thought about including this as well as some other small programs in DCS in the start menu? Including DOCDE7 and TOKENIZE would be pretty cool, I think Smile


Pre-Included software would be really amazing, I have to agree.
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55733
Location: Earth, Sol, Milky Way

Posted: 07 May 2011 02:57:58 pm    Post subject:

Xeda112358 wrote:
Wow, this is pretty cool! I just gave it a try and I like it Smile I am glad it converts to BBh tokens for lowercase and whatnot, too! Have you thought about including this as well as some other small programs in DCS in the start menu? Including DOCDE7 and TOKENIZE would be pretty cool, I think Smile
Unfortunately, even thought both of these program are less than 1KB thanks to the power of the DCS GUI API, I have far, far less than 2KB free in Doors CS (at last check, in the dozens of bytes, and that's even after tons of optimization to have the space to squeeze Direct USB gCn in). Sad There was a planned "pin" feature to put frequently-run program on the taskbar for Doors CS 7, but I never got to it; maybe for DCS 8. Smile
_________________


Back to top
Xeda112358


Power User


Joined: 09 Nov 2010
Posts: 345

Posted: 07 May 2011 03:32:36 pm    Post subject:

Ah, cool, okay! It is good to know that DoorsCS 7 uses almost every byte!
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55733
Location: Earth, Sol, Milky Way

Posted: 07 May 2011 03:34:57 pm    Post subject:

Xeda112358 wrote:
Ah, cool, okay! It is good to know that DoorsCS 7 uses almost every byte!
Yup, the most space is on the BASIC libs page, where I have a whopping 100 bytes or so free. The other two pages each have in the very low double-digits of free bytes. Smile
_________________


Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    » Goto page Previous  1, 2
» View previous topic :: View next topic  
Page 2 of 2 » All times are GMT - 5 Hours

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© Copyright 2000-2013 Cemetech & Kerm Martian :: Page Execution Time: 0.037671 seconds.