Author Topic: Floooh's tiny8bit emulator  (Read 468 times)

0 Members and 1 Guest are viewing this topic.

Offline cpcitor

  • The user previously known as FindYWay
  • CPC6128
  • ****
  • Posts: 289
  • Country: fr
  • My heart still runs on traditional CPC.
    • My code for the CPC.
  • Liked: 142
  • Likes Given: 351
Floooh's tiny8bit emulator
« on: 20:16, 26 March 20 »
Just (re)discovered Floooh's (Andre Weissflog) emulator.

* Runnable as desktop application for Linux/Mac/Windows.
* Embeddable in a webpage via a JavaScript snippet allowing many options https://floooh.github.io/2019/01/05/wasm-embedding.html
* Not written in Javascript but in C. Compiled for the web to WebAssembly with emscripten.
* Easy to compile from source (git, fips), automatically fetches and configures dependencies. https://github.com/floooh/chips-test
* Optional emulator UI controls (including hardware monitoring, CPU pause / disassemble / breakpoints / etc).
* Probably crazy emulation accuracy given what the author writes e.g. https://floooh.github.io/2017/12/10/z80-emu-evolution.html
* And fully open-source.

* Simple demo https://floooh.github.io/tiny8bit/cpc.html
* Auto-launch capability for snapshot/disk/tape/type commands.

Snapshot -> immediate
https://floooh.github.io/tiny8bit/cpc.html?file=cpc/boulder_dash.sna&joystick=true
https://floooh.github.io/tiny8bit/cpc.html?file=cpc/arkanoid.sna&joystick=true

Disk with autoload
3D meets the aging bits : https://floooh.github.io/tiny8bit/cpc.html?file=cpc/logons_run_cpc.dsk&input=run%22logon%27s%0A
Prince of Persia : https://floooh.github.io/tiny8bit/cpc.html?file=cpc/prince_of_persia_cpc.dsk&joystick=true&input=run%22prince%0A

Tape -> slow but hey, https://floooh.github.io/tiny8bit/cpc.html?type=cpc464&file=cpc/commando.tap&joystick=true&input=run%22%0A%0A

Many of them on https://floooh.github.io/tiny8bit/

Wow.  8)
« Last Edit: 20:23, 26 March 20 by cpcitor »
Had a CPC since 1985, currently software dev professional, including embedded systems.

I made the first CPC cross-dev environment that auto-installs C compiler and tools: cpc-dev-tool-chain: a portable toolchain for C/ASM development targetting CPC.

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 15.696
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
  • Liked: 3238
  • Likes Given: 5904
Re: Floooh's tiny8bit emulator
« Reply #1 on: 09:49, 27 March 20 »
Oh yes these are fantastic. I also love how simple the URL arguments are.

Is there a windows binary anywhere?

Offline cpcitor

  • The user previously known as FindYWay
  • CPC6128
  • ****
  • Posts: 289
  • Country: fr
  • My heart still runs on traditional CPC.
    • My code for the CPC.
  • Liked: 142
  • Likes Given: 351
Re: Floooh's tiny8bit emulator
« Reply #2 on: 10:56, 29 March 20 »
Oh yes these are fantastic. I also love how simple the URL arguments are.

Is there a windows binary anywhere?

A what anywhere?  ;)

What do you mean? Most use cases don't even need the mere notion of an operating system.  ::)

What is your use case?

If you want to host an emulator on a web page of yours, download from the URLs below and copy the 3 resulting files to your web server.
Then call cpc.html with your arguments.

https://gourichon.org/cpcitor/bydate/2020/2020-03-26/tiny8bit_cpc_emulator_for_browser/cpc.html
https://gourichon.org/cpcitor/bydate/2020/2020-03-26/tiny8bit_cpc_emulator_for_browser/cpc.js
https://gourichon.org/cpcitor/bydate/2020/2020-03-26/tiny8bit_cpc_emulator_for_browser/cpc.wasm

Any webserver can serve those files, whatever its architecture.
Had a CPC since 1985, currently software dev professional, including embedded systems.

I made the first CPC cross-dev environment that auto-installs C compiler and tools: cpc-dev-tool-chain: a portable toolchain for C/ASM development targetting CPC.

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 15.696
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
  • Liked: 3238
  • Likes Given: 5904
Re: Floooh's tiny8bit emulator
« Reply #3 on: 11:17, 29 March 20 »
Was only referring to this:

Runnable as desktop application for Linux/Mac/Windows.

Offline cpcitor

  • The user previously known as FindYWay
  • CPC6128
  • ****
  • Posts: 289
  • Country: fr
  • My heart still runs on traditional CPC.
    • My code for the CPC.
  • Liked: 142
  • Likes Given: 351
Re: Floooh's tiny8bit emulator
« Reply #4 on: 22:40, 29 March 20 »
Was only referring to this:

Runnable as desktop application for Linux/Mac/Windows.

The instructions on https://github.com/floooh/chips-test work very well, the process is simple and automatically fetches all necessary elements. The whole project seems very clean.

I would have built and offered a Windows binary, but I don't currently have easy access to a Windows machine (and had I anyway, I tend to use Windows only when I'm paid for it by a client). Thinking about it, it was probably one or two years since I did something on a Windows (a VM not even a machine booting Windows).

There are instructions for http://floooh.github.io/fips/docs/crosscompiling/

Quote
Fips provides easy cross-compiling support to the following platforms:

    iOS
    Android
    emscripten

TL;DR: If you want a binary for your OS, just follow the instructions on https://github.com/floooh/chips-test
Had a CPC since 1985, currently software dev professional, including embedded systems.

I made the first CPC cross-dev environment that auto-installs C compiler and tools: cpc-dev-tool-chain: a portable toolchain for C/ASM development targetting CPC.

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 15.696
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
  • Liked: 3238
  • Likes Given: 5904
Re: Floooh's tiny8bit emulator
« Reply #5 on: 23:15, 29 March 20 »
Well, yes thank you, I can read instructions, what I don't have is time, hence my question about a windows executable 🤪