Skip to content

Latest commit

 

History

History
74 lines (58 loc) · 2.14 KB

README.md

File metadata and controls

74 lines (58 loc) · 2.14 KB

dino

;  ______     ______     __      __     ______        ;
;  \      \   \_    _\   \  \\   \  \   \      \      ;
;   \  \\  \     \  \     \  \`\  \  \   \  \\  \     ;
;    \  \\  \     \  \     \  \ `\ \  \   \  \\  \    ;
;     \  ``  \    _\  \_    \  \  `\\  \   \  ``  \   ;
;      \_____/    \______\   \__\   `\__\   \______\  ;
;        A tiny game in 512 bytes (bootsector)        ;

Dino is a bootsector game (512 bytes) written in 16-bit x86 assembly, that's based on Chrome's t-rex runner game!

The game can now be assembled for CPU 8086!



preview.gif

How to play

There are various ways to play dino: you can either use an x86 emulator, or burn the binary to a floppy (or some other medium), and try booting your old pc off of it.

I recommend using an emulator, namely qemu.

$ qemu-system-x86_64 a.bin || qemu-system-i386 a.bin
  • If you have make, nasm and qemu installed, you can just use this command:
$ make run

How to compile

To compile dino you'll need to have nasm installed on your machine.

  • If you have make installed, just use it like so:
$ make
  • If you want to compile by hand, use:
$ nasm -f bin -o a.bin dino.asm
  • Alternatively, if you want to generate a 1440KiB floppy disk image, use:
$ make floppy

Controls

  • Use shift to jump
  • Use ctrl to crouch

Acknowledgements


Dino: 512 bytes
This README: 2154 bytes (not counting the preview gif)