CPCWiki forum

General Category => Emulators => Topic started by: cpcitor on 20:16, 26 March 20

Title: Floooh's tiny8bit emulator
Post by: cpcitor 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)
Title: Re: Floooh's tiny8bit emulator
Post by: Gryzor 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?
Title: Re: Floooh's tiny8bit emulator
Post by: cpcitor 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.
Title: Re: Floooh's tiny8bit emulator
Post by: Gryzor on 11:17, 29 March 20
Was only referring to this:

Runnable as desktop application for Linux/Mac/Windows.
Title: Re: Floooh's tiny8bit emulator
Post by: cpcitor 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
Title: Re: Floooh's tiny8bit emulator
Post by: Gryzor 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 🤪
Title: Re: Floooh's tiny8bit emulator
Post by: BZHGames on 23:38, 23 September 21

Hi all,


I know the topic is old, but I have a quick question.


Do you know if the emulator can load a DSK in javascript?
Some games require you to insert side B of the floppy disk during the game.
I searched, but I did not find anything about it.


If anyone has a solution I'm interested  :)
Title: Re: Floooh's tiny8bit emulator
Post by: Sid_ on 00:01, 24 September 21
JavaScript is the devil. Nevertheless you can find an good implementation here https://floooh.github.io/tiny8bit/ (https://floooh.github.io/tiny8bit/).

Title: Re: Floooh's tiny8bit emulator
Post by: pelrun on 07:15, 24 September 21
Be aware that floooh's emulators are really only demo implementations to showcase/test their underlying libraries, not fully realised applications. So they don't bother with many user conveniences like live disk changes.
If you really need those features, you'll have to try another emulator or implement the features yourself.
Title: Re: Floooh's tiny8bit emulator
Post by: BZHGames on 09:35, 24 September 21

Thanks for these informations.


Sid_, I have already consulted this url but I could not find more information, thanks anyway.


pelrun, thanks for the explanation about the floooh emulator.