Author Topic: z80e for Nspire  (Read 6473 times)

0 Members and 1 Guest are viewing this topic.

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
z80e for Nspire
« on: November 16, 2014, 04:26:44 pm »
Hey guys,

the KnightOS team having started (more than started actually) working on z80e, a z80 emulator written in C, and after me porting it to Windows (it uses SDL), I thought about porting it to the TI-Nspire. And guess what ? I did :w00t:

Be warned : the emulator itself not being finished, the Nspire version isn't either. Of course, I plan to mirror progress that's being made on the PC version to the Nspire version.

So far it doesn't actually run the TI-OS, but it does run the attached KnightOS ROM. You'll still see that some things aren't right, but that's really the emulator's fault. Also, it'll work both with Ndless 3.1 and Ndless 3.6, the PRG version being for Ndless 3.1.
I don't release the code yet because I still have a huuuuuge lot of clean-up to do, due to the Nspire not using many features that the PC version uses (like the CLI debugger).

But yeah, do check out the attachements. Please let me know about any bug that might crash or freeze your calc, and in what circumstances. Those may be known emulation problems, or not.

Share comments :)

EDIT : oops, forgot to put control scheme.

So yeah, control scheme so far :

TI-84+SE keyTI-Nspire key
F1A
F2B
F3C
F4D
F5E
Down, left, right, upDown, left, right, up (click on touchpad calcs)
2ndCtrl
AlphaShift
EnterEnter
ClearMenu
ModeEsc
DelDel
NumkeysSame numkeys
ONTab

You can exit the emulator at any time by pressing Q. If it doesn't work, then that's pretty much that the emulator itself is stuck, and not the emulation.

EDIT 2 : screenshot ! How could I have forgotten that.



EDIT 3 : dayum, forgot to compile with -Ofast. Attachment updated !
« Last Edit: November 16, 2014, 04:56:00 pm by Matrefeytontias »

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3913
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: z80e for Nspire
« Reply #1 on: November 16, 2014, 04:26:58 pm »
FIRST

Woah, impressive O.O

Just tried this out and it's pretty cool. It's not that fast, though :\
« Last Edit: November 16, 2014, 04:44:45 pm by aeTIos »
I'm not a nerd but I pretend:

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: z80e for Nspire
« Reply #2 on: November 16, 2014, 04:27:16 pm »
SecONd!
Edit: first edit!
« Last Edit: November 16, 2014, 04:34:53 pm by Keoni29 »
If you like my work: why not give me an internet?








Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: z80e for Nspire
« Reply #3 on: November 16, 2014, 04:47:10 pm »
Yeah, speed is a problem. As I said, the emulator is far from finished. It might even crash without a warning.

Progress on this version will only happen when progress on the PC version happens. I want to keep both versions in phase.

Offline Ivoah

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +3/-0
    • View Profile
    • Codinghobbit
Re: z80e for Nspire
« Reply #4 on: November 16, 2014, 05:23:02 pm »
Is this eventually going to be able to emulate TI-OS?
http://codinghobbit.no-ip.org
My Calcs:
TI-86 (now broken) $2
TI SR-56 - $0
TI-Nspire CX CAS - $152
TI-84+ Silver Edition - $56
TI-84+ Silver Edition - $0
TI-85 - $0
TI-73 Explorer VS - $10
ViewScreen - $3

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: z80e for Nspire
« Reply #5 on: November 16, 2014, 05:26:56 pm »
It's planned to. At the end, it's planned to be a 100% accurate emulator, not only for KnightOS.

Offline DrDnar

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 546
  • Rating: +97/-1
    • View Profile
Re: z80e for Nspire
« Reply #6 on: November 16, 2014, 05:36:18 pm »
You should load TI-Boy up, port the emulator to emscripten, and run the emulator in a Bochs so that you can run an emulated GameBoy in an emulated TI-83+ in an emulated in Nspire in an cross-compiled Javascript in an emulated PC.
"No tools will make a man a skilled workman, or master of defense, nor be of any use to him who has not learned how to handle them, and has never bestowed any attention upon them. . . . Yes, [] the tools which would teach men their own use would be beyond price."—Plato's The Republic, circa 380 BC

Offline bb010g

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 427
  • Rating: +22/-1
  • I do stuff
    • View Profile
    • elsewhere on the net
Re: z80e for Nspire
« Reply #7 on: November 16, 2014, 05:43:36 pm »
Reminds me of the old TI-84 emulator. How's this one different? Could the old one not run KnightOS?
Arch Linux user
Haskell newbie | Warming up to Lua | Being dragged into C++
Calculators: HP 35s, Casio Prizm, TI-Nspire CX CAS, HP-28s, HP Prime, Mathematica 9 (if that counts)
π: 3.14...; l: 108; i: 105; e: 101; l+i+e: 314
THE CAKE IS A LIE IS A PIE

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: z80e for Nspire
« Reply #8 on: November 16, 2014, 05:45:11 pm »
So far, the difference is that this one is actually being worked on, since the one you posted is dead. For now, it's less feature-fledged though, but that will come with time.

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: z80e for Nspire
« Reply #9 on: November 16, 2014, 07:10:35 pm »
You should load TI-Boy up, port the emulator to emscripten, and run the emulator in a Bochs so that you can run an emulated GameBoy in an emulated TI-83+ in an emulated in Nspire in an cross-compiled Javascript in an emulated PC.
Fwiw, z80e does work with emscripten. Emuception isn't happening anytime soon though. :P

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3913
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: z80e for Nspire
« Reply #10 on: November 16, 2014, 10:17:57 pm »
Yeah it's sad to have Jacobly gone, calcemu could have been fantastic :/
I'm not a nerd but I pretend:

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7918
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: z80e for Nspire
« Reply #11 on: November 17, 2014, 08:55:28 am »
Don't forget to emulate the undocumented opcodes :P

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3913
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: z80e for Nspire
« Reply #12 on: November 17, 2014, 09:16:45 am »
They are being emulated. z80e aims to be 100% compatible with everything.
I'm not a nerd but I pretend:

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: z80e for Nspire
« Reply #13 on: November 17, 2014, 02:40:28 pm »
Iirc the CPU core is already complete but I might be wrong.

Offline Ivoah

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +3/-0
    • View Profile
    • Codinghobbit
Re: z80e for Nspire
« Reply #14 on: October 30, 2015, 08:04:17 pm »
Do you have any plans to push your changes back to the z80e repo?
http://codinghobbit.no-ip.org
My Calcs:
TI-86 (now broken) $2
TI SR-56 - $0
TI-Nspire CX CAS - $152
TI-84+ Silver Edition - $56
TI-84+ Silver Edition - $0
TI-85 - $0
TI-73 Explorer VS - $10
ViewScreen - $3