nanochess / fbird Goto Github PK
View Code? Open in Web Editor NEWA boot sector game in text mode
A boot sector game in text mode
F-Bird, a text bootsector game. by Oscar Toledo G. Jun/05/2017 http://nanochess.org https://github.com/nanochess Run it as a COM file or write it to the bootsector of a floppy disk. Press any key to start, gravity makes you to fall, press any key to fly! This game is written using pure 8088 instructions, so it should work on an original IBM PC with CGA card. No Hercules support (though it would be a matter of changing the video segment to B000) Here is a Youtube video of it running over emulation: https://www.youtube.com/watch?v=p31XFFAeze4 If you want to assemble it, you must download the Netwide Assembler (nasm) from www.nasm.us Use this command line: nasm -f bin fbird.asm -o fbird.com Tested with VirtualBox for Mac OS X running Windows XP running this game, it also works with DosBox and probably with qemu: qemu-system-x86_64 -fda fbird.com Note that VirtualBox doesn't emulate the PC speaker, so the "flap" sound doesn't sound at all. Enjoy it! >> THE BOOK << Do you would like more details on the inner workings? This program is fully commented in my new book Programming Boot Sector Games and you'll also find a 8086/8088 crash course! Now available from Lulu: Soft-cover http://www.lulu.com/shop/oscar-toledo-gutierrez/programming-boot-sector-games/paperback/product-24188564.html Hard-cover http://www.lulu.com/shop/oscar-toledo-gutierrez/programming-boot-sector-games/hardcover/product-24188530.html eBook https://nanochess.org/store.html These are some of the example programs documented profusely in the book: * Guess the number. * Tic-Tac-Toe game. * Text graphics. * Mandelbrot set. * F-Bird game. * Invaders game. * Pillman game. * Toledo Atomchess. * bootBASIC language.
I want to be able to boot from the floppy disk into tha game, but also use the remaining space (after the boot sector) for storage. Here's what I tried:
sudo mkfs.fat /dev/fd0; sudo dd if=fbird.com of=/dev/fd0 bs=512 count=1
This lets me boot fbird from the floppy disk but Linux cannot find a filesystem on the floppy disk.
If I do it the other way around:
sudo dd if=fbird.com of=/dev/fd0 bs=512 count=1; sudo mkfs.fat /dev/fd0
I can store files on the floppy disk but cannot boot from it.
How can I make a bootable floppy with a working FAT filesystem I can store files on?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.