Skip to content

Commit

Permalink
added example for FAT32
Browse files Browse the repository at this point in the history
  • Loading branch information
FarooqKZ committed Aug 25, 2017
1 parent 9bbaca4 commit ca2a1ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ 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 two last lines of
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
Expand Down

0 comments on commit ca2a1ac

Please sign in to comment.