Skip to content

Chrome's t-rex based bootsector game (512 bytes) written in 16-bit x86 assembly (now with 8086 support!)

License

Notifications You must be signed in to change notification settings

franeklubi/dino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)