Page 2 of 3

Posted: Fri 08 Jun, 2007 6:17 pm
by Dwedit
Thanks to some lovely bugs in the GNU toolchain, it took forever to find an ARM assembly bug where an ADR instruction (PC Reletive) pointed to a destination too far, which for some reason did not cause an error. This had completely broken all memory writes.
Now to find more bugs...

Posted: Sun 10 Jun, 2007 11:32 pm
by Dwedit
My IRQ code sucks. It triggers an interrupt every time it returns from an interrupt.

EDIT: nope, turned out to be that the Z80 core decreases PC by 1 after executing a HALT instruction, and I hadn't made the IRQ checker check if it had just executed a halt instruction.

Posted: Mon 11 Jun, 2007 2:44 am
by Dwedit
Image
Woot! It now runs the Bubble Bobble ROM.

Still doesn't boot TIOS yet. Now gotta add Keyboard support!

Posted: Mon 11 Jun, 2007 3:58 am
by blueskies
bubble bobble, running on a ti83, running on a gba. That's pretty cool! good work

Posted: Mon 11 Jun, 2007 4:43 am
by Xphoenix
Can't wait to try out. Speaking of which, I have VBA...

LOOK IN MY SIG!!!

Posted: Mon 11 Jun, 2007 12:05 pm
by benryves
Excellent work. :)

I tried to convert my SMS emulator into a TI emulator - I got it to run one of my demos happily, but I could never get the TIOS to boot. I wish you a lot of luck with it..!

Posted: Mon 11 Jun, 2007 6:48 pm
by Dwedit
Image
I'm pretty sure anyone could come up with a better Skin. It needs to be 144x160 for now, and legible.

Posted: Tue 12 Jun, 2007 4:11 am
by Dwedit
Image
Woot!

The culprit behind the failures? Messed up ld rr,(nnnn) instructions. Loaded the first byte correctly, failed to load the second.
Happened because there was SMS emulation cruft hiding in there. Was treating the first byte using the correct memory map, then assumed the second byte had a different memory map where the top 6 bits were used in the memory map table instead of the top 2 bits.

Posted: Tue 12 Jun, 2007 4:17 am
by tr1p1ea
\o/ Its working!

Thats awesome DWedit! :). All these calc emus popping up, maybe i should write one j/k :P.

Posted: Tue 12 Jun, 2007 4:45 am
by Demon
Whoa that is cool... now if only I had a real Gameboy Advance. :P

Posted: Thu 14 Jun, 2007 8:58 pm
by Dwedit
Would you like to try it out? I've released an extremely early build just to get feedback. Yes, this is extremely early. Does not support sending programs to emulator, or savestates. Only emulates a TI83.
Download version 0.00 (not kidding about that version number)

How to use:
* First append a TI83 rom image to the end of the .gba file, using something like "copy /b ti83emu.gba + ti83.rom ti83emu_rom.gba"
Keys:
SELECT: Toggle keyboard overlay
Keys (keyboard visible)
* Arrows: Move cursor
* (right now cursor is not displayed over arrow keys, just move it away a few times)
* A: Press that key
* B: Quick Keys
* Start: ENTER
* L: Alpha
* R: 2nd
Quick Keys: (Hold down B while keyboard visible)
* A: ENTER
* Arrow Keys: Arrow Keys
* (other keys same as keyboard visible)
Fullscreen Keys:
* Arrows: Arrows
* A: 2nd
* B: Alpha

Note that you need to press ON to boot the TIOS.

Posted: Thu 14 Jun, 2007 10:35 pm
by Spencer
Pretty cool. I want our z80 core written in assembly now, hahaha. Everything seems to be in order, the only thing I noticed was timing was a bit off.

Posted: Sat 16 Jun, 2007 5:16 am
by Jim e
I dusted off my old 512mbit Flash cart to try this. Pretty slick, I didn't think it would be legible scaled so small, but it actually is very clear on my DS. This is nice, though it will only feeling like home if it says "ram cleared" instead of "mem cleared". :P

Posted: Sun 17 Jun, 2007 3:59 am
by Dwedit
Now time to debug the linking code... fun fun...

Posted: Sun 17 Jun, 2007 7:54 am
by Dwedit
Holy crap, linking now works.