I've managed to find a moment to work on this project again this evening! Almost forgot that it's so much fun and such a pain in the ass at the same time
Anyway:
I fixed
- TASM compatibility (several small problems)
- SPASM compatibility (thanks Spencer
)
That is, they are now both able to assemble the library without throwing any errors. There's still a chance that there are other problems though, but I don't expect any.
Working on
- Improved error feedback (with optional error handler and report routine for the lazy people)
The error handler and report routine is pretty much done now, but not all routines set the right flags yet when they encounter errors. Also, the error reporting has revealed a bug in my connect routine (see below), so that's slowing me down a bit.
Still to be done
- Optional checksum bit per byte (will probably make transfers about 20% slower, but who knows it might be useful to someone)
- See if I can polish bell_connect up and perhaps take a look at the connection loss problem with Ti-82
- If I have time left: write a (few) nice demo(s)
New found bug
- When two programs with different program IDs try to connect one calculator will return the right "incompatible program type" error and the other just times out while they should both give the same error
Looking at the transfer in PTI's debugger reveals that the calculator that sends it's ID second tries to send a one bit after the ID swap for God knows which reason...
I'm not yet releasing the current version, even though I'd have loved to fix the assembler compatibility, because it's too much of a mess in it's current state. I'm going to try to fix the connect bug first, then finish the error reporting, and after that I can release a new version. If anyone would like a version that works with TASM or SPASM in the mean while, just contact me and I'll help you out.
Edit: All routines should now set the error flags properly. Most of it's been tested to work too
. And it has grown quite a bit; it's now 1028 bytes with all the fun stuff enabled
Now I just have to get the connect bug and the "connection lost is sometimes crash" bug which has re-appeared out of my code and it should be alright for a release! But for now I'm going to bed. G'night!