News for hackers. Stuff that matters.
Re:Why did I spend 1.5 months creating a Gameboy emulator? (... by pjmlp on Wednesday May 23, 2018 @12:51PM (#17135664)
Try this Assembly tutorial

https://www.cl.cam.ac.uk/projects/raspberrypi/tutorials/os/

It has enough for doing 2D games bare metal on ARM.

And then you can jump into PiFox.

https://www.raspberrypi.org/blog/pifox-bare-metal-arm-assemb...

Re:Why did I spend 1.5 months creating a Gameboy emulator? (... by leggomylibro on Wednesday May 23, 2018 @01:58PM (#17136385)
Well I've already gotten simple 2D games working in bare-metal ARM with OLED and TFT displays, it's more the emulation aspect of things that is intimidating.

ARM Cortex-M cores are also a bit different from the Application-class processors used in boards like the Raspberry Pi. They are closer to an Arduino than a "real computer".

Re:Why did I spend 1.5 months creating a Gameboy emulator? (... by pjmlp on Wednesday May 23, 2018 @02:15PM (#17136544)
Yeah, I guess I misunderstood you.

That is how we did 8 and 16 bit coding on home micros back in the day. :)

My favourite SOC is the ESP32, but I guess it already has too much hardware to emulate and isn't an ARM anyway.

Re:Why did I spend 1.5 months creating a Gameboy emulator? (... by leggomylibro on Wednesday May 23, 2018 @02:30PM (#17136695)
Haha, no worries - embedded stuff sometimes feels so confusing that I think I misunderstand myself most of the time.

Yeah, I've wanted to learn more about the ESP32 - it seems like people have done some really cool stuff with it and it looks like you get a lot of power and connectivity.

But I'll bet you can empathize with not having enough hours in the day!

Re:Why did I spend 1.5 months creating a Gameboy emulator? (... by pjmlp on Wednesday May 23, 2018 @02:40PM (#17136818)
Yup, my github repo is full of useless, unfinished stuff. :)
Re:Why did I spend 1.5 months creating a Gameboy emulator? (... by burfog on Wednesday May 23, 2018 @01:13PM (#17135881)
The upside is that the Raspberry Pi has good documentation.

The downside is that you'll need to emulate 4 cores plus a GPU. Guest software (the stuff being emulated) may fail if the cores aren't decently fast. You may also need to do USB, audio, wireless LAN, and Ethernet.

Re:Why did I spend 1.5 months creating a Gameboy emulator? (... by pjmlp on Wednesday May 23, 2018 @01:50PM (#17136299)
I understood that leggomylibro would like to learn the hardware first, before getting into emulation.

Hence the idea of learning ARM Assembly, I guess I got it wrong.