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

0 Members and 1 Guest are viewing this topic.

Offline cpcitor

  • The user previously known as FindYWay
  • 464 Plus
  • *****
  • Posts: 387
  • Country: fr
  • My heart still runs on traditional CPC.
    • My code for the CPC.
    • Awards
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 »
like
0
No reactions
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.

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 17.189
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
    • Awards
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?
like
0
No reactions

Offline cpcitor

  • The user previously known as FindYWay
  • 464 Plus
  • *****
  • Posts: 387
  • Country: fr
  • My heart still runs on traditional CPC.
    • My code for the CPC.
    • Awards
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.
like
0
No reactions
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.

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 17.189
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
    • Awards
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.
like
0
No reactions

Offline cpcitor

  • The user previously known as FindYWay
  • 464 Plus
  • *****
  • Posts: 387
  • Country: fr
  • My heart still runs on traditional CPC.
    • My code for the CPC.
    • Awards
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
like
0
No reactions
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.

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 17.189
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
    • Awards
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 🤪
like
0
No reactions

Offline BZHGames

  • CPC664
  • ***
  • Posts: 77
  • Country: fr
    • BZHGames
    • Awards
Re: Floooh's tiny8bit emulator
« Reply #6 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  :)
like
0
No reactions
Online games : Tetris, Connect4, Reversi, Marvel Memory, Laby and Amstrad games
https://bzhgames.xyz/

Offline Sid_

  • CPC664
  • ***
  • Posts: 134
  • Country: fr
    • Awards
Re: Floooh's tiny8bit emulator
« Reply #7 on: 00:01, 24 September 21 »
JavaScript is the devil. Nevertheless you can find an good implementation here https://floooh.github.io/tiny8bit/.


Offline pelrun

  • Supporter
  • 6128 Plus
  • *
  • Posts: 810
  • Country: au
    • index.php?action=treasury
    • Awards
Re: Floooh's tiny8bit emulator
« Reply #8 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.
like
1
Members reacted like:
cpcitor,

Offline BZHGames

  • CPC664
  • ***
  • Posts: 77
  • Country: fr
    • BZHGames
    • Awards
Re: Floooh's tiny8bit emulator
« Reply #9 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.
like
0
No reactions
Online games : Tetris, Connect4, Reversi, Marvel Memory, Laby and Amstrad games
https://bzhgames.xyz/