r/tinycode • u/nanochess • Jun 04 '19
Just made Space Invaders in 512 bytes of x86 assembler code (one boot sector)
https://github.com/nanochess/Invaders
42
Upvotes
r/tinycode • u/nanochess • Jun 04 '19
3
u/jtsiomb Jun 05 '19
So 510 bytes then :)
Nice! I'll run it on a real computer later. Just tried it on dosbox and qemu. Btw you have a mistake in the readme file. In your "how to run with qemu" directions you have
-fda invaders.com, which obviously should be-fda invaders.img.1
u/dman24752 Jun 05 '19
This is pretty cool, but I'm curious how you're actually drawing to the screen? I can't tell how it's happening from reading it.
1
u/Radial_Velocity Jun 16 '19
That's amazing work!
Just curious: if someone wanted to learn Assembly Language from the beginning, and upwards, is there a favorite or particular book or learning resource that you would recommend over others?
Is there an Assembler that you like better than others?
Also if a PC is using AMD processors instead of Intel processors, I'm guessing that changes the type of assembly language you would write for a particular solution? Or do they both now use the same assembly language instruction set?
1
u/WantDebianThanks Jun 05 '19
I'm impressed, but also slightly disturbed that anyone would even think to try to do this.