Author
Topic: CEmu (Read 41143 times)

Hello everyone. Early last month I started work on a CE calculator emulator, and it has now progressed to a nice development stage. Jacobly, Adriweb, and Lionel were very helpful along the way, and fixed a lot of the bugs I always seemed to make, and of course did an amazing job at implementing a lot of the more wild things. But now it is in working stages; support for ROM dumping from a real calculator is supported, it can boot and operate exactly like a normal TI-OS, except for file transfers, which requires emulating USB, which will take some time. There is no release yet; only a source release (which you can build yourself and play with if you so desire), and if you have sufficient knowledge in anything you feel could help out, feel free to send a pull request my way or ask nicely and I can add you as a collaborator. Rather than talk some more about it; Adriweb came up with a nice article that will explain a lot, I hope. Still a lot to do, but yay.

So, give it a test drive, and report any bugs/features/comments that you have or would like implemented, and they will be added to the todo list. Enjoy.

It has its own ROM dumping method, much like the rom8x of days past, but now a nice GUI to tell you everything. And a progress bar. Those are cool. Of course, Lionel and jacobly added ROM dumping support to TILP here.

The 84+CE and 83PCE (TI-eZ80 series) hit the market over half a year ago. However, there was no third-party emulator, and the official emulator in TI-SmartView CE does not provide the features most community programmers have come to expect from well-behaved emulators: an accurate emulation core, a debugger with a way to inspect and modify registers and memory, a disassembler, etc. Teachers, who are SmartView's main target audience, hardly need such features.The lack of a proper emulator is a significant roadblock to making TI-eZ80 native code programming popular in the community, which is a shame because the platform is a great improvement over the 84+CSE: faster CPU, more RAM, etc. Therefore, for the community’s sake, such a situation shouldn’t last for long - hence, the making of an emulator

CEmu is open source (and even free software, under the GPLv3), like nearly all community-made emulators, and made in C/C++. A native code emulator makes perfect sense for both efficiency and versatility; in the longer term, retargeting the code at browsers (JavaScript, WebAssembly) is possible nowadays, thanks to Emscripten.

The team behind CEmuMatt “MateoConLechuga” Waltz started the project and remains the main contributor.More recently, Jacob "jacobly" Young was invited to join the fun, and he has so far worked quite a bit on improving the CPU and ASIC core (as well as integration thereof with the UI), mainly.The CEmu code base leverages both Firebird (TI-Nspire emulator) and z80e (TI-Z80 emulator for KnightOS, and to which jacobly is a contributor) open-source projects.There are also other contributions, from non-TI-(e)Z80 experts: Adrien “Adriweb” Bertrand, Lionel Debroux, Fabian “Vogtinator” Vogt.And in the future… well, potentially anyone with sufficient knowledge, that’s precisely part of the power of open source

If you want to chat, we're on IRC (EFNet), on channels such as #ez80-dev and #cemu-dev

Provide more translations (for now, it's available in English and French). If you want to help, tell us, or send patches / pull requests!

Make a web-based version of CEmu, like there’s a web-based version of z80e for trying out KnightOS. Compiling the CEmu core to JavaScript (and later WebAssembly), using Emscripten, is already known to work: Adriweb has been able to get an Emscriptened CEmu core to boot a ROM and get to the home screen (confirmed by dumping the LCD buffer) :)

Think about CEmu's core’s integration on third-party projects, like TI-Planet's Project Builder - for instance, in C projects, in order to directly test the program, and eventually (if someone has enough time…) have live source-level debugging!

Look at this gdb-z80 project (code from 2011...); try to see if it can be updated for eZ80, and used with a CEmu GDB stub. Mainlining such code is highly preferable.

...

ConclusionTo sum up: CEmu is the community's open-source, native, portable, TI-84 Plus CE / TI-83 Premium CE emulator, that has been developed over the past few weeks, and of course, still is currently under development.We all hope you'll enjoy it :)

Good job on this one guys. Now @DJ Omnimaga can't complain anymore : P

By the way regarding licensing, the MIT license requires you to include the full copyright line like so for z80e code: "Copyright (c) 2014 The KnightOS Group", not sure how the GPL works for Firebird/libti* code but I think "many thanks" is not enough from a legal point of view.I don't want you guys to get in trouble (even though I don't think the original authors would bother taking legal action against you for this).

By the way regarding licensing, the MIT license requires you to include the full copyright line like so for z80e code: "Copyright (c) 2014 The KnightOS Group", not sure how the GPL works for Firebird/libti* code but I think "many thanks" is not enough from a legal point of view.I don't want you guys to get in trouble (even though I don't think the original authors would bother taking legal action against you for this).

Yep, apparently we forgot to do the proper required acks. Should be fixed in a few minutes

Edit: well, IANAL but with this commit, it's probably better. it's open to PRs anyway, so anyone who can do better, well, just propose the change

Nice work! I looked through the code, though, and the licensing issues are still not quite right. In the readme, it says that the code is "inspired" by z80e, which seems to be untrue - this looks like you started with a copy of the z80e code and modified it, so you need to avoid implying that it's an original creation that was "inspired" by the z80e code. You should copy and paste all of the licenses into your LICENSE file and include a summary of what code came from which project. Check this out for an example:

Also, if you're interested in contributing your improvements to CE support in z80e upstream, then it'd be nice if you called out what portions of the code are GPL'd and what portions are MIT licensed, so that we know what we can integrate upstream.

Well I haven't myself contributed to the core, so I wouldn't know all the details (nor how compatible it would be for merging some things upstream), but yes, some parts are directly taken from z80e and Firebird.If it's just a phrasing issue and a matter of copying the proper license text, though, this can be fixed quickly.

Edit : proper license copies in appropriate files now done, by mateo in this commit.

Awesome news Mateo and great job to everyone who participated to the development of this emulator. Not to mention that it's open-source, so people will still be able to maintain it even when the original authors are inactive.

Thanks for the cross-post as well. Hopefully when this emulator will have full file transfer support (unless it does already?) it will kickstart CE development (a lot of people were not interested because there was no emulator available)