Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - FloppusMaximus

Pages: 1 ... 11 12 [13] 14 15 ... 20
181
Axe / Re: RAM
« on: December 06, 2010, 11:56:02 pm »
Right, sorry.  In that case, I'm not sure what exactly you're asking.  Could you post an example of code you've tried that doesn't work the way you expect?

182
The Axe Parser Project / Re: On-calculator app signing
« on: December 06, 2010, 10:28:16 pm »
I'm not entirely sure, actually.  BrandonW devised a technique that you can use to run arbitrary code by sending specially crafted link packets.  But in order to actually fix the damage and reinstall an OS, you would then need to unlock Flash somehow; this can always be done on an 83+ SE or 84+, but I don't know if there's any way to do it on an 83+ BE or 73 with no OS installed.

183
The Axe Parser Project / Re: On-calculator app signing
« on: December 06, 2010, 10:12:32 pm »
Well, as "easily" as writing to other areas in Flash. :P  (And yes, that's kind of dangerous; if you screw up the certificate, it's possible to crash the boot code and make it impossible to install an OS.)

184
The Axe Parser Project / Re: On-calculator app signing
« on: December 06, 2010, 10:06:48 pm »
If you send it to another calculator, it will not expire.  What I'm calling the expiration count is a field on the certificate page; it's not stored within the app, but it's set by the OS at the time the app is installed.  For normal, non-limited-trial apps, it should be set to the value 80 00.  Since Axe circumvents the normal installation procedure, this doesn't happen, so the field is left at its default value (FF FF), which is interpreted to mean that the app should expire after being run 16 times.

185
Axe / Re: RAM
« on: December 06, 2010, 09:13:46 pm »
Well, first off, how much RAM do you really need?  Could you stick to using the main RAM, and keep compatibility with the 83+ BE?

Hardware-wise, the Z80 address space is divided into 4 "banks", which each hold one 16k memory page.  The first bank is always used for Flash page zero; the second two ("A" and "B") can be mapped to any page you like, and the fourth ("C") is always used for RAM page zero on the 83+ BE, but can be mapped to any RAM page on the 83+ SE and 84+.

Now, all of that said, you should realize that you can't usually change the pages mapped in banks B and C, unless you're very careful about it; bank C contains your program's stack, and bank B contains your program's code and variables.  Bank B - RAM page 1 - also contains lots of variables that are used by system routines, including the system interrupt service routine.

So that leaves bank A.  In a RAM assembly program, you can change bank A whenever you like (unless it's a shell program and you're using shell library routines), but you also have to be sure to restore the original page to bank A when your program finishes.  This might be a plausible strategy for Axe programs (correct me if I'm wrong, but I don't think Axe programs use any shell library routines), but it wouldn't work for Flash applications.  And of course it does break compatibility with the 83+ BE.

As far as what pages you can use: newer 84+es have only 1 extra page of RAM, whereas older 84+es, 83+ SEs, and (I believe) Nspire-84+es have 6 extra pages.  Of RAM page 3 (or, on newer calculators, the single extra page), a small amount of memory is used by the OS for storing application base pages (so if you overwrite that area, you have to call FillBasePageTable to restore it), and a further area (about a kilobyte, as I recall) is used as scratch space for USB operations.

Perhaps it would be useful for Axe to provide an "allocate temporary buffer" function, which could be implemented in various ways depending on the calculator model and the type of program (RAM versus application) you're compiling.

186
The Axe Parser Project / Re: On-calculator app signing
« on: December 06, 2010, 08:38:02 pm »
Sorry, I should have been more clear.  DuckSign is for signing the application so that you can send it to another calculator.  Setting the expiration count is a separate issue, and one that should probably be handled by the Axe Parser itself.

187
BatLib / Re: SpriteLib
« on: December 05, 2010, 11:20:52 pm »
Z-address is what it's called in the official documentation from Toshiba.  They also call the vertical direction "X" and the horizontal direction "Y", so take that with a grain of salt.

EDIT: Screenshot! (Note: I had to use PindurTI instead of WabbitEmu because PTI is the only emu that emulates Z-Adress properly)
TilEm II does that as well, but I guess I'm not allowed to brag about that until I get my act together and finish it. ;)

188
Other Calculators / Re: Professionalism in calculator games
« on: December 05, 2010, 11:06:17 pm »
That's true.  There are other options - you can, if you need to, copy chunks of code into lower RAM areas to execute them - but it's certainly not as easy as writing an app.  (Not that I'd say writing an app, particularly a multi-paged one, is easy by any means.)

189
Site Feedback and Questions / Re: Posting zip file attachments on the forum
« on: December 05, 2010, 10:36:26 pm »
Looks like restarting the browser did the trick.  I still have no idea what was wrong, but thanks.

Iceweasel is the Debian rebranded version of Firefox; it's essentially identical, but (for weird and complicated reasons) they can't, or won't, use the Firefox name.

190
The Axe Parser Project / Re: On-calculator app signing
« on: December 05, 2010, 10:30:59 pm »
Yeah, BrandonW wrote a program to re-sign the calculator OS (not apps, but it's a similar amount of work); I don't remember offhand how long that program was supposed to take, but it was somewhere on the order of 10-20 minutes.  Anyway, that program wasn't very optimized. :)

191
Site Feedback and Questions / Re: Posting zip file attachments on the forum
« on: December 05, 2010, 10:27:39 pm »
The file is 143 kB, so I doubt it's a size limitation.  I'm using Iceweasel (i.e., Firefox) 3.5.15.  It's very strange; I believe I've uploaded zip files here in the past.

192
The Axe Parser Project / Re: On-calculator app signing
« on: December 05, 2010, 10:24:58 pm »
Yes, it should work for multi-page apps.

Computing the MD5 hash takes about 4 seconds per page on an 83+ BE, 1 second per page on an SE or 84+.  After that it takes about 50 seconds on a BE, or 20 seconds on an SE, to compute the signature.

193
Site Feedback and Questions / Posting zip file attachments on the forum
« on: December 05, 2010, 10:22:21 pm »
I'm trying to post a zip file as an attachment (see http://ourl.ca/74475 ) and the forum won't let me.  When I try to upload it with a .zip suffix, it gets rejected, despite the fact that zip is listed as an "allowed file type", both on the edit-my-post page and on the error page.  Any idea what might be going wrong here?

(I also tried renaming it to .txt, but then all the CRs got helpfully turned into CR-LFs.)

194
The Axe Parser Project / Re: On-calculator app signing
« on: December 05, 2010, 10:11:33 pm »
Bump!

Here is the first version of my on-calculator app signer.  The name was kind of inevitable, following the grand tradition of silly names for third-party app signing tools.

I've tested this with a number of different configurations, in emulators and on real calculators, but I can't test everything.  So please try it out and let me know if it works (i.e., after signing an application, can you then send it to another calculator?)  You should also, of course, let me know if it crashes and wipes out all your programs.

It should be mentioned that this program currently does not work on "Chameleonized" calculators.

Quigibo, if you're reading this, you should take a look at the example code (example.asm) which is included in the package.  It shows how to set the expiration count and app-installed bit for a newly installed app.  Anyone else who's interested in compiling apps on the calculator may want to have a look at it, too.

(Trying again...)

195
Other Calculators / Re: Professionalism in calculator games
« on: December 05, 2010, 06:40:16 pm »
There are a few good reasons to make your program a Flash app:
- it installs persistent hooks (in which case, a Flash app is the only reliable way to do it)
- it provides libraries for other programs (whether using hooks or by other means; this can be done without making the program an app, but it's much less convenient)
- it allows the user to edit large data files (in which case, you want to leave as much RAM as possible free for the user's data)
- or the program itself requires a huge amount of code and/or data (but in this case, you should also probably consider splitting the program up.)

Normal (RAM) assembly programs are really a lot more convenient for the user (you can hide them, rename them, launch them using any shell you like, organize them into folders if your shell does that, compress them if need be, store them in RAM or archive or on a USB stick...)

Pages: 1 ... 11 12 [13] 14 15 ... 20