CodeWalrus

Development => Calculators => Calc Projects, Programming & Tutorials => Topic started by: guicrith on June 04, 2015, 01:52:06 AM

Title: Ti v200 emulator in javascript (not done)
Post by: guicrith on June 04, 2015, 01:52:06 AM
This is something i am doing while i wait for a response about nspire_emu for arm android and the ti 84 + ce rom to be dumped.
This is basically jsTIfied for the 68k ti calcs (I am only writing support for v200 while i wait) but it will be open source and i will separate every thing into modules(Memory,Lcd,Cpu(I know the cpu is the same in all of them),File installer) so the other calcs can be added easily.

I know nothing about this calculator except it uses the 68k which i am familiar with.

If you know any of the information needed below please reply.

ToDo:
CPU:Scripted amiga emulator already has a cpu core for the 68k./strip out amiga related functions
Display:Need to know the layout and starting address of the framebuffer.(Also dont know the greyscale level(1bbp,2bbp,4bbp))
Keypad:Need to know starting address and layout of the keypad buffer.(or what ever it uses(ms dos just sets one value to the keycode and calls an interrupt))
Sound:Anything about 3rd-party sound mods i need to implement.
Title: Re: Ti v200 emulator in javascript (not done)
Post by: Dream of Omnimaga on June 04, 2015, 02:04:50 AM
Heya, nice to see you again. :D

This project seems interesting, but Patrick Davidson (the person that made Phoenix and Calcuzap) actually made a TI-92+ (V200-compatible) emulator already: https://www.ocf.berkeley.edu/~pad/emu/v11.html . He also made a Java TI-89 emulator (which unfortunately doesn't work in recent versions of Java that uses North-Korean security).

It's OK if you make your own, though, especially if you want to add more features and think you can improve speed, but I thought I would point that one out in case. I do not know if he accepts contributions either.

Hopefully someone can help you if you choose to pursue this project. :)
Title: Re: Ti v200 emulator in javascript (not done)
Post by: guicrith on June 04, 2015, 02:40:49 AM
Ok but i really need to make an emulator so are there any other devices with reasonable functionality(can be programmed,can play games) that are not too complicated and havent been emulated yet.(ps2/3,3ds)
Title: Re: Ti v200 emulator in javascript (not done)
Post by: Dream of Omnimaga on June 04, 2015, 02:47:07 AM
I think it would be better to stick to an older, weaker platform to start up. Most SNES emulators still can't emulate every game 100% perfectly despite 15 years of updates, so a PS3/3DS emu will most likely be even more work. One platform that many people in the calculator community would like to be emulated is the Casio FX-cg10 and the FX-cg20 (also nicknamed the Casio PRIZM). A CFX-9850G emulator would also be nice, as that calculator was very popular back in the days and had a color screen too.

The PRIZM has a lot of documentation available at http://prizm.cemetech.net/index.php/Main_Page and the CFX at http://martin.poupe.org/casio/

There is an official emulator for the PRIZM from Casio, but it isn't 100% compatible and it's $200. The two CFX ones that I tried didn't really work properly (probably requires Windows 95).


Of course, such emulator should not include the calculator ROM nor BIOS, though.
Title: Re: Ti v200 emulator in javascript (not done)
Post by: guicrith on June 04, 2015, 03:04:52 AM
The prizm seems like a challenge but if people will help i am willing to do it.
The sh-4 cpu i think is supported by mame.
Title: Re: Ti v200 emulator in javascript (not done)
Post by: Yuki on June 04, 2015, 03:30:34 AM
It's also supported by QEMU. I'd definitely want to see a Prizm emulator.
Title: Re: Ti v200 emulator in javascript (not done)
Post by: Adriweb on June 04, 2015, 05:07:03 AM
The v12 version from pad and Lionel Debroux is available here : https://tiplanet.org/pad_ti68k_emu/v12.html
Some time ago, I forked the page to have some better design : https://tiplanet.org/emu68k_fork/v12.html

But anyway, I'll let Lionel reply here directly, if needed :)
Title: Re: Ti v200 emulator in javascript (not done)
Post by: Snektron on June 04, 2015, 05:12:43 PM
So youre now looking for a cpu to make a emulator for?
Title: Re: Ti v200 emulator in javascript (not done)
Post by: guicrith on June 04, 2015, 09:47:28 PM
I was looking for a device to make an emulator for.(preferably with the cpu already emulated(typing opcode after opcode in a switch statement does not sound very fun.))
I chose the casio prizm but cant find a self contained sh4 emulator.(All the files for the sh4 are in there own directory and not directly wired into the device emulator)
So the only functions it would have are setmem32,16,8bit()/readmem32,16,8bit()/reset()/cycle(int xmanycycles).
Differing functions are fine as long as they are not hardwired to the device emulator.(like if cycle() was done in milliseconds instead of processor cycles)

I do know how a dynarec works but unless absolutely necessary i would like to avoid it because the goal with all my projects is >80% cross-compatibility.(The prizm is only 50mhz and has no gpu or audio and i would be willing to emulate an underclocked prizm (30mhz?),and put video and i/o on a second thread.)

The platforms i am targeting are

Android(arm,x86)
Mac
Windows
Ubuntu
Ios(Jailbroken)
Anything else qt creator can compile for.
(Js too if it is fast enough(will need modification for emscripten because i am using qt creator because of cross-compatibility and HATE makefiles))
Title: Re: Ti v200 emulator in javascript (not done)
Post by: Lionel Debroux on June 05, 2015, 02:59:20 PM
My version of PatrickD's JS TI-68k emulator, used in the TI-Planet archives, contains many improvements over the original one. It's an unfinished piece of work, though.
If I started such a project from scratch, I'd use a C core, and Emscripten to translate it into JS.

The Prizm is an interesting idea, and unless it's purely for learning purposes, you should leverage MAME or QEMU, though these aren't necessarily the easiest things to make GUI front-ends for.
Title: Re: Ti v200 emulator in javascript (not done)
Post by: Snektron on June 05, 2015, 03:51:02 PM
Hmm i'll think about some cpu, though i don't know very many :P