Jump to content
IGNORED

Space Invaders in 512 bytes of x86-assembly code


Recommended Posts

Not sure if expected but I was fumbling with the controls and got hit a bunch of times. With the controls left and right go til end of screen unless hit spacebar to shoot. That might just be VM anyway then the screen got all messed up after my ship got hit. Note I was running from Virtual Box using DOS defaults, your invaders.img as a boot floppy and 16M of memory.

 

260u07k.png

Edited by thetick1
Link to comment
Share on other sites

Very cool. In that video the shots and movements of the invaders are very fast. I'll have to run on an old 486 or even 286 and see if the speed is proportional to CPU. Thanks for sharing!

It uses the BIOS clock service to synchronize to 18.2 hz, so it should work on any machine.

 

Not sure if expected but I was fumbling with the controls and got hit a bunch of times. With the controls left and right go til end of screen unless hit spacebar to shoot. That might just be VM any then the screen got all messed up after hit. Note I was running from Virtual Box using DOS defaults and 16M of memory.

 

260u07k.png

You have 4 lives, I've modified the source code for boot sector to stop once you use all, but if you use the COM file it will invoke INT 20H and in boot sector it points to nothing, so it crashes very nicely, I think. :P

 

BTW the trick to stop the spaceship is to press Space to shoot, the BIOS doesn't allow me to check for pressed keys, only can get the next pressed key.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...