Author Topic: Sugarbox, a CPC emulator for windows (and raspberry pi, soon).  (Read 4896 times)

0 Members and 1 Guest are viewing this topic.

Offline SOS

  • Supporter
  • CPC6128
  • *
  • Posts: 295
  • Country: de
  • Identity lost
    • index.php?action=treasury
  • Liked: 194
  • Likes Given: 172
Re: Sugarbox, a CPC emulator for windows.
« Reply #25 on: 12:25, 16 August 18 »
thanks.
Do you plan to implement the IDE-Interface? (XMASS,...)

Offline Lone

  • Supporter
  • CPC664
  • *
  • Posts: 94
  • Country: fr
  • Liked: 169
  • Likes Given: 73
Re: Sugarbox, a CPC emulator for windows.
« Reply #26 on: 13:29, 16 August 18 »
thanks.
Do you plan to implement the IDE-Interface? (XMASS,...)


I have no real plan for anything : New features mainly are added when asked for.
I also plan a cross platform release with a new GUI, new hardware (technimusic (an old promise) , XMASS and IDE interface, etc)
Added from these, bugfix, improvement of the CRTCs, and so on.

Offline roudoudou

  • 6128 Plus
  • ******
  • Posts: 672
  • Country: fr
    • urban exploration
  • Liked: 932
  • Likes Given: 594
Re: Sugarbox, a CPC emulator for windows.
« Reply #27 on: 14:09, 16 August 18 »
Linux support  :P
use RASM, the best assembler ever made :p

I will survive

Offline Lone

  • Supporter
  • CPC664
  • *
  • Posts: 94
  • Country: fr
  • Liked: 169
  • Likes Given: 73
Hello,


Some news from Sugarbox : I'm currently porting it to Rapsberry Pi (without any OS - bare metal rules !).


Here is a teaser of it :



https://www.youtube.com/watch?v=9sj5ZJMNrLQ


Offline robcfg

  • Supporter
  • 6128 Plus
  • *
  • Posts: 2.205
  • Country: se
  • 8-Bit Technomancer
    • index.php?action=treasury
  • Liked: 976
  • Likes Given: 2203
Nice!


Which Pi models will be supported?

Offline Lone

  • Supporter
  • CPC664
  • *
  • Posts: 94
  • Country: fr
  • Liked: 169
  • Likes Given: 73
I currently work on the PI 3 model (mainly because it's the only one I own).
I plan to make it work for Pi2 also.

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 15.076
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
  • Liked: 2967
  • Likes Given: 5219
That's really nice. The beginning of a CPC micro of sorts! What OS are you using?

Offline Lone

  • Supporter
  • CPC664
  • *
  • Posts: 94
  • Country: fr
  • Liked: 169
  • Likes Given: 73
That's really nice. The beginning of a CPC micro of sorts! What OS are you using?


No OS ! Bare metal here (so it can boot in less than 3 seconds - which was mainly why I did it : I loved when my CPC start in few seconds)

Offline Urusergi

  • CPC6128
  • ****
  • Posts: 167
  • Country: es
  • Liked: 252
  • Likes Given: 1164

No OS ! Bare metal here (so it can boot in less than 3 seconds - which was mainly why I did it : I loved when my CPC start in few seconds)

Finally I'm going to buy a Raspberry Pi 3  ;D

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 15.076
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
  • Liked: 2967
  • Likes Given: 5219

No OS ! Bare metal here (so it can boot in less than 3 seconds - which was mainly why I did it : I loved when my CPC start in few seconds)


Well yes, you did say that, but I assumed it just boots straight to the emulator instead of going through a desktop and whatnot. How are you booting directly into the CPC? It's not quite an FPGA to just load the core!

Offline robcfg

  • Supporter
  • 6128 Plus
  • *
  • Posts: 2.205
  • Country: se
  • 8-Bit Technomancer
    • index.php?action=treasury
  • Liked: 976
  • Likes Given: 2203
From the Raspberry.org forums:



- When the Raspberry Pi is first turned on, the ARM core is off, and the GPU core is on. At this point the SDRAM is disabled.
- The GPU starts executing the first stage bootloader, which is stored in ROM on the SoC. The first stage bootloader reads the SD card, and loads the second stage bootloader (bootcode.bin) into the L2 cache, and runs it.
- bootcode.bin enables SDRAM, and reads the third stage bootloader (loader.bin) from the SD card into RAM, and runs it.
- loader.bin reads the GPU firmware (start.elf).
- start.elf reads config.txt, cmdline.txt and kernel.img

Offline Lone

  • Supporter
  • CPC664
  • *
  • Posts: 94
  • Country: fr
  • Liked: 169
  • Likes Given: 73
In fact, I do a very, very light OS (no multitask, almost no drivers, etc).
It's basically some init functions, then it goes straight to the emulation core.


Have a look at https://github.com/bztsrc/raspi3-tutorial or https://github.com/rsta2/circle for some informations (really interresting by the way)


With the help of circle++ lib, it's really easy to do it (and quite fun and satisfying)

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 15.076
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
  • Liked: 2967
  • Likes Given: 5219
Ah that was what I was thinking, something minimal and lightweight to get you going :) Still, very interesting indeed! Got to try it...