News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu
avatar_cpcitor

Floooh's tiny8bit emulator

Started by cpcitor, 19:16, 26 March 20

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cpcitor

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)
Had a CPC since 1985, currently software dev professional, including embedded systems.

I made in 2013 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, later forked into CPCTelera.

Gryzor

Oh yes these are fantastic. I also love how simple the URL arguments are.

Is there a windows binary anywhere?

cpcitor

Quote from: Gryzor on 08:49, 27 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 in 2013 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, later forked into CPCTelera.

Gryzor

Was only referring to this:

Runnable as desktop application for Linux/Mac/Windows.

cpcitor

Quote from: Gryzor on 09:17, 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/

QuoteFips 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 in 2013 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, later forked into CPCTelera.

Gryzor

Well, yes thank you, I can read instructions, what I don't have is time, hence my question about a windows executable 🤪

BZHGames


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  :)
Online games : Tetris, Connect4, Reversi, Marvel Memory, Laby and Amstrad games
https://bzhgames.xyz/

Sid_

JavaScript is the devil. Nevertheless you can find an good implementation here https://floooh.github.io/tiny8bit/.


pelrun

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.

BZHGames


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.
Online games : Tetris, Connect4, Reversi, Marvel Memory, Laby and Amstrad games
https://bzhgames.xyz/

Powered by SMFPacks Menu Editor Mod