4 ms·
Great work, it's always nice to see more Asm projects! "Bare Metal" - does this mean the RPi can run blob-free? A possible improvement I suggest is to gfx_dra
by userbinator 12y ago
Great work, it's always nice to see more Asm projects!
"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-algorithm/ http://hbfs.wordpress.com/2009/07/28/faster-than-bresenhams-...
- pjc50 12y agoThat 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.
- lnandor 12y agoThanks 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.
- pjmlp 12y agoLike the good old Amiga days. :) Place floppy on drive, press Ctrl+Amiga+Amiga and up you go. Congratulations.
- scotty79 12y agoThat reminds me of good old days of 6502 assembly and implementing bitshift based multiplication and division yourself.
- mobiuscog 12y agoAbsolutely. 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.
- userbinator 12y agoIn 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.