Author Topic: TI-Nspire GB Emulator  (Read 152046 times)

0 Members and 1 Guest are viewing this topic.

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
TI-Nspire GB Emulator
« on: November 30, 2009, 02:37:13 pm »
Since Goplat released the beta of his TI-Nspire emulator (as featured on ticalc), I decided I could start writing some code to eventually run on the TI-Nspire once it gets cracked. So, I've started a Game Boy emulator (again) :)

Not much runs at the moment - Link's Awakening in particular has some major issues (probably related to some mistake I made in the cpu emulation). Only the background tilemap is supported so far - no sprites or window.


Probably the next thing to do would be to get sprites working.
« Last Edit: November 30, 2009, 10:57:36 pm by calc84maniac »
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: TI-Nspire GB Emulator
« Reply #1 on: November 30, 2009, 02:40:36 pm »
That is so awesome, I am curious if it will be easy to modify the code so it runs on future TI-Nspire OSes instead of just on emulator by replacing the Nspire emu boot code?

I can't wait to see more progress on this and possibly (calcalture animated) screenshots

Offline JoeyBelgier

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 545
  • Rating: +25/-21
  • Joey
    • View Profile
Re: TI-Nspire GB Emulator
« Reply #2 on: November 30, 2009, 03:40:00 pm »
nooooooooooooooooooooooooooooo
D:

I want F-Zero ;.;
:P

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: TI-Nspire GB Emulator
« Reply #3 on: November 30, 2009, 03:43:06 pm »
Looks nice. Will it be the same as on the 83/84s or will there be more features?

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: TI-Nspire GB Emulator
« Reply #4 on: November 30, 2009, 04:05:14 pm »
Looks nice. Will it be the same as on the 83/84s or will there be more features?
Hopefully it won't need as many "features" (such as zooming and sprite tracking) since it all fits in the screen. But, it will hopefully have better compatibility and full speed. Also, it could eventually support Game Boy Color, minus the color.

Edit: Oh, and I just realized that I have light-gray and dark-gray mixed up in that screenshot. I have that fixed now :)
« Last Edit: November 30, 2009, 04:34:46 pm by calc84maniac »
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: TI-Nspire GB Emulator
« Reply #5 on: November 30, 2009, 05:36:32 pm »
*Builderboy explodes again*

That is constructed from pure awesomness!!!  How is it coding for the nSpire?  Like, its still with asm, but how do you compile to hex code if it isn't a z80 chip?  Or is it not asm, and some kind of C compiler?

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: TI-Nspire GB Emulator
« Reply #6 on: November 30, 2009, 08:06:45 pm »
*Builderboy explodes again*

That is constructed from pure awesomness!!!  How is it coding for the nSpire?  Like, its still with asm, but how do you compile to hex code if it isn't a z80 chip?  Or is it not asm, and some kind of C compiler?
There are C compilers for ARM, but I haven't really bothered messing with them. This was coded in ARM assembly language (which does go to hex code - each opcode happens to be four bytes large). I'm still a little new to this language though.
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline JoeyBelgier

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 545
  • Rating: +25/-21
  • Joey
    • View Profile
Re: TI-Nspire GB Emulator
« Reply #7 on: November 30, 2009, 09:44:51 pm »
* NecroF-_-ckk wants an Nspire when this works :D

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: TI-Nspire GB Emulator
« Reply #8 on: November 30, 2009, 10:02:23 pm »
*ztrumpet agrees with nf...*

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: TI-Nspire GB Emulator
« Reply #9 on: November 30, 2009, 10:08:59 pm »
Added sprites. It's looking quite nice :)

Still no window support, which is why the bottom of the screen doesn't have the status bar.

Edit:
CalcCapture doesn't like me. Or, at least, it doesn't like that the graphics window can't be in focus for me to press any keys. So it doesn't look like we'll be getting any gameplay animations. On the other hand, I recorded a bit of the Kirby title screen :)
« Last Edit: November 30, 2009, 10:49:33 pm by calc84maniac »
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: TI-Nspire GB Emulator
« Reply #10 on: November 30, 2009, 10:56:43 pm »
Wow that looks really awesome! You are a genius!

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: TI-Nspire GB Emulator
« Reply #11 on: December 01, 2009, 01:51:38 am »
Got Link's Awakening working after fixing 20 or so broken opcodes (some of these were unrelated to the problem, but hey, it all counts right?)
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: TI-Nspire GB Emulator
« Reply #12 on: December 01, 2009, 01:54:01 am »
Nice :D

Now let's hope TI won't shit on us with a new TI-Nspire hardware like they did with the TI-84+ in mid 2007

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: TI-Nspire GB Emulator
« Reply #13 on: December 01, 2009, 07:45:16 am »
Obligatory screenshot:


Note that there are some graphical glitches in the second half. These were in TI-Boy too. But hopefully I'll get them fixed this time around! :)
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: TI-Nspire GB Emulator
« Reply #14 on: December 01, 2009, 07:52:41 am »
Nice!