Changeset 78 for trunk/bootcode/regular/other.asm
- Timestamp:
- Apr 8, 2017, 12:26:16 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bootcode/regular/other.asm
r76 r78 166 166 call MBR_TeletypeNL 167 167 168 ; 169 ; Write MBR back to disk to sync MBR variables. 170 ; Otherwise subsequent MBR loads will differ from the RAM stored one, 171 ; which is used by MBR protection to validate parts of the MBR. 172 ; 173 xor bx, bx 174 mov cx, 1 175 xor dh, dh 176 mov dl, [BIOS_BootDisk] 177 mov al, 1 178 mov ah, 03h 179 int 13h 180 181 182 ; Start with disk at index 0 168 183 xor cx,cx 184 169 185 PRECRAP_Main_next_disk: 170 186 187 ; Get next disk and convert to BIOS disk-number 171 188 mov dl,cl 172 189 or dl,80h … … 431 448 mov ah, 41h 432 449 mov bx, 55AAh 433 mov dl, 80h450 mov dl, [BIOS_BootDisk] ; We check using the boot-disk 434 451 int 13h 435 452 cmp bx, 0AA55h
Note:
See TracChangeset
for help on using the changeset viewer.