mkfs.fat -m's graphical alternative! This draws a 16x16 sprite when you boot your storage.

Farooq Karimi Zadeh 4e9a71ca90 Update 'LICENSE' 1 year ago
LICENSE 4e9a71ca90 Update 'LICENSE' 1 year ago
README.md d906a01dfb Update 'README.md' 1 year ago
drawlogo86.asm 542716c8a5 Updating email address 1 year ago
pixels.inc 3f59819eb7 First commit 2 years ago
screenshot.png f1b08b0b35 screenshot added 2 years ago

README.md

drawlogo86

drawlogo86 can live in your storage's boot sector and show a (not so) fancy 16x16 picture when you boot it, nice for data (micro/mini)SDs, flash memories, floppies. similar to mkfs.fat's -m but shows a small image instead of a text message.

Oh and let's not forget, drawlogo86 is for 80286+ processors

Screenshot

A screenshot of it running in QEMU with my ugly picture! drawlogo86 running in QEMU

Usage

WARNING! There is absolutely NO WARRANTY and there is risk of losing data, USE AT YOUR OWN RISK!

To make it working on your storage(let's say a floppy containing your data) you need to know what are you doing.

First of all get a copy of your data if you care about them. You need nasm and dd if you are on Unix or partcopy if you are using Windows/DOS. depending on your filesystem, you should change first line and two last lines of drawlogo86.asm. Also modify pixels.inc file which contains colors of pixels, there is 256 color for each pixel and a pixel's color can be 0x00 to 0xFF. You should also know about the file system which you are using(e.g. where boot code does start and where does it end?)

Example for FAT32 filesystem: the first line(containing org) will be org 0x7c00 + 90 (because boot code in FAT32 starts from offest 90). two last lines will be times 420 - ($-$$) db 0(FAT32 allows up to 420 bytes boot code) and ;dw 0xAA55. then assemble it using nasm drawlogo86.asm and now copy it to your storage using dd if=drawlogo86 of=/dev/sdh obs=1 seek=90.

I repeat, you MUST know what are you doing and there is RISK OF DATA LOSE, USE AT YOUR OWN RISK.

Licence

This is free software under MIT/X11 and comes WITHOUT ANY WARRANTY, see LICENSE for more details.

Bug Report/Questions/Contribute/etc

Use NotABug(Issues for Bug Report and Questions and Pull Requests for Contributing) or email me.