Re:Bare Metal Assembly Raspberry Pi Starfox Tribute
by pjc50 on Sunday June 22, 2014 @03:49AM
(#7927198)
That depends on what you mean by "blob free"; this code doesn't use the GPU other than to setup the frame buffer. From then on it's software 3D.
Re:Bare Metal Assembly Raspberry Pi Starfox Tribute
by lnandor on Sunday June 22, 2014 @03:57AM
(#7927208)
Thanks for the feedback!
Even though the game does not need an operating system, it still requires bootcode.bin and start.elf.
The fixed point version of Bresenham's algorithm looks really nice on x86, but it uses integer division, so implementing it on an ARMv6 (no div instruction) would be quite painful.
Re:Bare Metal Assembly Raspberry Pi Starfox Tribute
by userbinator on Sunday June 22, 2014 @06:51AM
(#7927503)
In other words, this is comparable to booting a PC with a BIOS, and then the rest of the code that runs is yours. That's still pretty awesome.
Consider participating in the demoscene, this is the sort of skills that would be great for that.
Re:Bare Metal Assembly Raspberry Pi Starfox Tribute
by scotty79 on Sunday June 22, 2014 @06:47AM
(#7927494)
That reminds me of good old days of 6502 assembly and implementing bitshift based multiplication and division yourself.
Re:Bare Metal Assembly Raspberry Pi Starfox Tribute
by mobiuscog on Monday June 23, 2014 @08:14AM
(#7931463)
Absolutely. I'm surprised that having to work around no 'div' is seen as painful compared to writing the rest of the game using 3D in assembly !
Learning on 6502/Z80 meant most everything was from first principles, and although I'd hate to regress so far today (head would hurt) it really was a great way to start.
"Bare Metal" - does this mean the RPi can run blob-free?
A possible improvement I suggest is to gfx_draw_line in gfx.s - using a fixed-point algorithm could be simpler and faster: http://hbfs.wordpress.com/2009/07/28/faster-than-bresenhams-...