Improve inline commenting

This commit is contained in:
Nero 2020-03-23 19:01:23 +00:00
parent 660944e70f
commit 398395371b
3 changed files with 8 additions and 0 deletions

View File

@ -16,6 +16,7 @@ cclus: dw 0
csec: dw 0
times (0x0B - ($-$$)) db 0
; BIOS PARAMETER BLOCK
fdc: ; sector size
.ss: dw 0x200
; sectors per cluster
@ -38,6 +39,7 @@ fdc: ; sector size
; mformat keeps writing until here
; if we place init earlier, code gets overwritten
; this also marks the end for the BPB
times (62 - ($-$$)) nop
init: xor ax, ax

View File

@ -1,3 +1,8 @@
/* QEMU and x86 hardware with PCI support (and up) require that BIOS options
* rom have a valid checksum, that the sum of all their bytes equals zero.
* This script edits a rom binary in-place so it fits that criteria.
*/
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>

View File

@ -1,4 +1,5 @@
; COM program displaying hello world string
; This is primarily for testing purposes
org 0x0100
main: