Another attempt on disk i/o

This commit is contained in:
Nero 2020-05-02 23:57:23 +02:00
parent 404825387b
commit 36f4673c91
3 changed files with 101 additions and 129 deletions

11
inc/mbr.asm Normal file
View file

@ -0,0 +1,11 @@
mbrtab: equ 0x1BE ; start of partition table
mbrsig: equ 0x1FE ; start of signature
mbrmn: equ 0x55AA ; signature value
pardn: equ 0x00 ; byte: partition active flag
parchs: equ 0x01 ; 3 bytes: CHS for first sector
partyp: equ 0x04 ; byte: partition type
parend: equ 0x05 ; 3 bytes: CHS for last sector
paroff: equ 0x08 ; dword: partition offset in sectors
parlen: equ 0x0C ; dword: partition length in sectors
parsiz: equ 0x10