This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's Your Projects subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. Project Ideas/Start New Projects => Your Projects
Author Message
darkstone knight


Advanced Member


Joined: 07 Sep 2008
Posts: 438

Posted: 31 May 2009 09:19:21 am    Post subject:

[quote name='TI-newb' post='133823' date='May 31 2009, 03:36 PM']These Emulators..are very... hazardous to calculators..[/quote]

correction...
Back to top
TI-newb


Member


Joined: 24 Dec 2008
Posts: 158

Posted: 31 May 2009 09:27:12 am    Post subject:

lol xD. so even u agree? *or is it a fact?.. i think it's a fact.
Back to top
woodswolf


Advanced Newbie


Joined: 26 Feb 2009
Posts: 53

Posted: 31 May 2009 09:41:01 am    Post subject:

ROM's are not illegal. As long as you have the original game, you have the right to download the ROM. although, why would you want too?
Back to top
calc84maniac


Elite


Joined: 22 Jan 2007
Posts: 770

Posted: 31 May 2009 11:40:37 am    Post subject:

luby wrote:
If I remember correctly, the TI-OS can only "delete" one sector (64k or 4 pages) at a time, so if an App shares a sector with another one, it could be problematic.

I'm pretty sure TI has taken this into account. Razz Otherwise one-page apps would not work.

woodswolf wrote:
ROM's are not illegal. As long as you have the original game, you have the right to download the ROM. although, why would you want too?

True, but it would be illegal for me to upload the ROM to ticalc where anyone will download it.
Back to top
DigiTan
Unregistered HyperCam 2


Super Elite (Last Title)


Joined: 10 Nov 2003
Posts: 4468

Posted: 31 May 2009 01:40:05 pm    Post subject:

Not to mention I doubt there's many downloaders who kept proof of purchase after a decade or two.
Back to top
FloppusMaximus


Advanced Member


Joined: 22 Aug 2008
Posts: 472

Posted: 31 May 2009 03:47:23 pm    Post subject:

@calc84maniac: The deleted pages didn't happen to begin with FF, did they?

(If I'm right about this, this could be a real pain for Flashbook... and just about anyone else who might want to generate apps automatically.)

edit: Yeah, the more I look at this, the more convinced I am. Even if it isn't the problem, it's almost certainly a problem. Defragmenting uses this routine to copy pages from one place to another.


Last edited by Guest on 31 May 2009 03:54:20 pm; edited 1 time in total
Back to top
Graphmastur


Advanced Member


Joined: 25 Mar 2009
Posts: 360

Posted: 31 May 2009 04:58:44 pm    Post subject:

I don't know if this will work, but if you where to take and have a computer program edit the rom into a workable file, it could be much better.
Back to top
calc84maniac


Elite


Joined: 22 Jan 2007
Posts: 770

Posted: 31 May 2009 06:42:42 pm    Post subject:

Graphmastur wrote:
I don't know if this will work, but if you where to take and have a computer program edit the rom into a workable file, it could be much better.

Won't work if the game isn't open source. Simple as that.

IMPORTANT EDIT Floppusmaximus, they do begin with $ff. That is probably the entire problem.


Last edited by Guest on 31 May 2009 06:46:52 pm; edited 1 time in total
Back to top
Graphmastur


Advanced Member


Joined: 25 Mar 2009
Posts: 360

Posted: 31 May 2009 08:27:37 pm    Post subject:

Well, they aren't open source when it is emulated!!!
Back to top
calc84maniac


Elite


Joined: 22 Jan 2007
Posts: 770

Posted: 31 May 2009 08:31:40 pm    Post subject:

Graphmastur wrote:
Well, they aren't open source when it is emulated!!!

But really, what you're asking for is a port of the gameboy game.
Back to top
Graphmastur


Advanced Member


Joined: 25 Mar 2009
Posts: 360

Posted: 31 May 2009 09:10:30 pm    Post subject:

true. Point well made. Would be cool though.
Back to top
tr1p1ea


Elite


Joined: 03 Aug 2003
Posts: 870

Posted: 01 Jun 2009 01:54:49 am    Post subject:

Does this happen on hardware or only in the emulator? There are a few documented app/defrag related bugs in both PTI and Wabbit that dont reflect the way things happen on calc.
Back to top
calc84maniac


Elite


Joined: 22 Jan 2007
Posts: 770

Posted: 01 Jun 2009 08:48:14 am    Post subject:

It happens on both (and FloppusMaximus's bcall explains it all)
Back to top
panyan


Member


Joined: 29 Dec 2007
Posts: 142

Posted: 01 Jun 2009 10:02:36 am    Post subject:

calc84maniac wrote:
It happens on both (and FloppusMaximus's bcall explains it all)


did the ff page start give you the solution?
Back to top
calc84maniac


Elite


Joined: 22 Jan 2007
Posts: 770

Posted: 01 Jun 2009 03:31:10 pm    Post subject:

I'm not sure if there's a good solution... but I think I'll add a check at startup to make sure no pages have been erased and ask for a resend if there were any.
Back to top
ztrumpet


Active Member


Joined: 06 May 2009
Posts: 555

Posted: 01 Jun 2009 04:07:32 pm    Post subject:

By resend, do you mean we would have to link to a computer and send it back to our calculators?
If you had to do this every time you deleted an APP it would be too much work.
Back to top
calc84maniac


Elite


Joined: 22 Jan 2007
Posts: 770

Posted: 01 Jun 2009 04:14:29 pm    Post subject:

ztrumpet wrote:
By resend, do you mean we would have to link to a computer and send it back to our calculators?
If you had to do this every time you deleted an APP it would be too much work.

How often do you delete apps? (By the way, this only applies to apps you have on your calc before you sent the emulator.) Also, I doubt this will be a problem with every ROM.
Back to top
ztrumpet


Active Member


Joined: 06 May 2009
Posts: 555

Posted: 01 Jun 2009 04:18:34 pm    Post subject:

Not very...
I deleted one this morning. Before then it was a few months.

Isn't there a better solution then a compleat resend?


Last edited by Guest on 01 Jun 2009 04:19:33 pm; edited 1 time in total
Back to top
magicdanw
pcGuru()


Calc Guru


Joined: 14 Feb 2007
Posts: 1110

Posted: 02 Jun 2009 02:33:50 pm    Post subject:

calc84maniac wrote:
I'm not sure if there's a good solution... but I think I'll add a check at startup to make sure no pages have been erased and ask for a resend if there were any.

IMO, the best solution would be to have some sort of macro check at assemble-time and make sure no page starts with FFh. If it does, you'd have to insert something before it, like a jump to the next instruction, you know, something to offset the FFh without affecting code flow. Not sure how you'd write the macro, depending on assembler, but good luck!

(BrandonW, feel like patching the OS's Garbage Collection routine to better detect pages in use? Razz)
Back to top
FloppusMaximus


Advanced Member


Joined: 22 Aug 2008
Posts: 472

Posted: 02 Jun 2009 07:54:07 pm    Post subject:

It might be sufficient to disable the check in CopyFlashPage. There are, however, a few other places where the routine is used, apart from the two obvious ones in the defragmenting code. It's possible that disabling the check would break something else (though I can't imagine what.)

In terms of ways you could deal with this problem: I don't know how your emulator is written, but presumably you need to emulate memory access anyway. Would it be difficult to apply special hacks on a page-by-page basis? (A simple one would be, for each of the pages that begins with FF, take the complement of every byte.) Alternatively, you could try to find one hack that works for every page -- for instance, if no page's second byte is FF, you could rotate each 256-byte block forward a byte. Compared to all the work you're doing to emulate the Gameboy's graphics, a 4-clock-cycle penalty per memory read may not even be that severe.


Last edited by Guest on 02 Jun 2009 08:23:17 pm; edited 1 time in total
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, 3, 4, 5, 6, 7, 8, 9, 10  Next
» View previous topic :: View next topic  
Page 3 of 10 » All times are UTC - 5 Hours

 

Advertisement