2021-07-03 05:07:57 +01:00
<!DOCTYPE HTML>
< html >
< head >
< meta http-equiv = "Content-Type" content = "text/html;charset=US-ASCII" >
2021-10-27 08:28:16 +01:00
< meta name = "generator" content = "ZealOS V1.04" >
2021-07-03 05:07:57 +01:00
< style type = "text/css" >
2021-10-08 07:06:11 +01:00
body {background-color:#1f1f1f;}
.cF0{color:#e3e3e3;background-color:#1f1f1f;}
.cF1{color:#4f84a6;background-color:#1f1f1f;}
.cF2{color:#73a255;background-color:#1f1f1f;}
.cF3{color:#297582;background-color:#1f1f1f;}
.cF4{color:#b34f4b;background-color:#1f1f1f;}
.cF5{color:#8a52c3;background-color:#1f1f1f;}
.cF6{color:#b7822f;background-color:#1f1f1f;}
.cF7{color:#444444;background-color:#1f1f1f;}
.cF8{color:#6d6d6d;background-color:#1f1f1f;}
.cF9{color:#94bfde;background-color:#1f1f1f;}
.cFA{color:#a1ce97;background-color:#1f1f1f;}
.cFB{color:#6db4be;background-color:#1f1f1f;}
.cFC{color:#e88e88;background-color:#1f1f1f;}
.cFD{color:#ca94e8;background-color:#1f1f1f;}
.cFE{color:#d4b475;background-color:#1f1f1f;}
.cFF{color:#1f1f1f;background-color:#1f1f1f;}
2021-07-03 05:07:57 +01:00
< / style >
< / head >
< body >
2021-07-05 01:12:38 +01:00
< pre style = "font-family:monospace;font-size:12pt" >
2021-07-04 23:11:34 +01:00
< a name = "l1" > < / a > < span class = cF0 > #< / span > < span class = cF1 > define< / span > < span class = cF0 > < / span > < span class = cF3 > BOOT_HIGH_LOC_DVD< / span > < span class = cF0 > (< / span > < span class = cF7 > (< / span > < span class = cF3 > BOOT_RAM_LIMIT< / span > < span class = cF0 > - (< / span > < span class = cF3 > BOOT_STACK_SIZE< / span > < span class = cF0 > + < / span > < span class = cF3 > DVD_BOOT_LOADER_SIZE< / span > < span class = cF0 > )< / span > < span class = cF7 > )< / span > < span class = cF0 > > > < / span > < span class = cFE > 4< / span > < span class = cF0 > )
2021-07-03 05:07:57 +01:00
< a name = "l2" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l3" > < / a > < / span > < span class = cF5 > DefinePrint< / span > < span class = cF0 > (< / span > < span class = cF6 > " DD_BOOT_HIGH_LOC_DVD" < / span > < span class = cF0 > , < / span > < span class = cF6 > " %08X" < / span > < span class = cF0 > , < / span > < span class = cF3 > BOOT_HIGH_LOC_DVD< / span > < span class = cF0 > < < < / span > < span class = cFE > 4< / span > < span class = cF0 > );
2021-07-03 05:07:57 +01:00
< a name = "l4" > < / a > < / span > < span class = cF5 > DefinePrint< / span > < span class = cF0 > (< / span > < span class = cF6 > " DD_BOOT_HIGH_LOC_DVD_END" < / span > < span class = cF0 > , < / span > < span class = cF6 > " %08X" < / span > < span class = cF0 > , < / span > < span class = cF3 > BOOT_RAM_LIMIT< / span > < span class = cF0 > - < / span > < span class = cFE > 1< / span > < span class = cF0 > );
< a name = "l5" > < / a >
< a name = "l6" > < / a > < / span > < span class = cF1 > asm< / span > < span class = cF0 > {
< a name = "l7" > < / a > < / span > < span class = cF1 > USE16< / span > < span class = cF0 >
< a name = "l8" > < / a > < / span > < span class = cFD > BDVD_START< / span > < span class = cF0 > ::
< a name = "l9" > < / a > < / span > < span class = cF2 > //DL is supposed to have the BIOS drive number< / span > < span class = cF0 >
2021-07-04 23:11:34 +01:00
< a name = "l10" > < / a > < / span > < span class = cF1 > CLD< / span > < span class = cF0 >
< a name = "l11" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cFC > AX< / span > < span class = cF0 > , < / span > < span class = cF3 > BOOT_HIGH_LOC_DVD< / span > < span class = cF0 >
< a name = "l12" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cFC > ES< / span > < span class = cF0 > , < / span > < span class = cFC > AX< / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = "l13" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l14" > < / a > < / span > < span class = cF1 > CLI< / span > < span class = cF0 >
< a name = "l15" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cFC > SS< / span > < span class = cF0 > , < / span > < span class = cFC > AX< / span > < span class = cF0 >
< a name = "l16" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cFC > SP< / span > < span class = cF0 > , < / span > < span class = cF3 > BOOT_STACK_SIZE< / span > < span class = cF0 > + < / span > < span class = cF3 > DVD_BOOT_LOADER_SIZE< / span > < span class = cF0 >
< a name = "l17" > < / a > < / span > < span class = cF1 > STI< / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = "l18" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l19" > < / a > < / span > < span class = cF1 > CALL< / span > < span class = cF0 > BDVD_GET_RIP
2021-07-03 05:07:57 +01:00
< a name = "l20" > < / a > BDVD_GET_RIP:
2021-07-04 23:11:34 +01:00
< a name = "l21" > < / a > < / span > < span class = cF1 > POP< / span > < span class = cF0 > < / span > < span class = cFC > BX< / span > < span class = cF0 >
< a name = "l22" > < / a > < / span > < span class = cF1 > SUB< / span > < span class = cF0 > < / span > < span class = cFC > BX< / span > < span class = cF0 > , BDVD_GET_RIP - < / span > < span class = cFD > BDVD_START< / span > < span class = cF0 >
< a name = "l23" > < / a > < / span > < span class = cF1 > SHR< / span > < span class = cF0 > < / span > < span class = cFC > BX< / span > < span class = cF0 > , < / span > < span class = cFE > 4< / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = "l24" > < / a > < / span > < span class = cF2 > //This copies this bootloader's code to 0x00096600< / span > < span class = cF0 >
2021-07-04 23:11:34 +01:00
< a name = "l25" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cFC > AX< / span > < span class = cF0 > , < / span > < span class = cFC > CS< / span > < span class = cF0 >
< a name = "l26" > < / a > < / span > < span class = cF1 > ADD< / span > < span class = cF0 > < / span > < span class = cFC > AX< / span > < span class = cF0 > , < / span > < span class = cFC > BX< / span > < span class = cF0 >
< a name = "l27" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cFC > DS< / span > < span class = cF0 > , < / span > < span class = cFC > AX< / span > < span class = cF0 >
< a name = "l28" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cFC > CX< / span > < span class = cF0 > , < / span > < span class = cF3 > DVD_BOOT_LOADER_SIZE< / span > < span class = cF0 >
< a name = "l29" > < / a > < / span > < span class = cF1 > XOR< / span > < span class = cF0 > < / span > < span class = cFC > SI< / span > < span class = cF0 > , < / span > < span class = cFC > SI< / span > < span class = cF0 >
< a name = "l30" > < / a > < / span > < span class = cF1 > XOR< / span > < span class = cF0 > < / span > < span class = cFC > DI< / span > < span class = cF0 > , < / span > < span class = cFC > DI< / span > < span class = cF0 >
< a name = "l31" > < / a > < / span > < span class = cF1 > REP_MOVSB< / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = "l32" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l33" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cFC > AX< / span > < span class = cF0 > , < / span > < span class = cF3 > BOOT_HIGH_LOC_DVD< / span > < span class = cF0 >
< a name = "l34" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cFC > DS< / span > < span class = cF0 > , < / span > < span class = cFC > AX< / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = "l35" > < / a >
< a name = "l36" > < / a > < / span > < span class = cF2 > //The assembler doesn't support 16-bit very well.< / span > < span class = cF0 >
2021-07-04 23:11:34 +01:00
< a name = "l37" > < / a > < / span > < span class = cF1 > DU8< / span > < span class = cF0 > < / span > < span class = cFE > 0xEA< / span > < span class = cF0 > ; < / span > < span class = cF2 > //JMP BOOT_HIGH_LOC_DVD:BDVD_MAIN< / span > < span class = cF0 >
< a name = "l38" > < / a > < / span > < span class = cF1 > DU16< / span > < span class = cF0 > < / span > < span class = cFD > BDVD_MAIN< / span > < span class = cF0 > - < / span > < span class = cFD > BDVD_START< / span > < span class = cF0 > , < / span > < span class = cF3 > BOOT_HIGH_LOC_DVD< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l39" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l40" > < / a > BDVD_BIOS_DRIVE_NUM: < / span > < span class = cF1 > DU8< / span > < span class = cF0 > < / span > < span class = cFE > 0< / span > < span class = cF0 > ;
< a name = "l41" > < / a > BDVD_PAGE: < / span > < span class = cF1 > DU8< / span > < span class = cF0 > < / span > < span class = cFE > 0< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l42" > < / a >
Rename abs_addres to abs_address.
Update documentation/comments to rename addr, fun, var, stmt, blk, desc, reg, seg, ptr, dup, clus, val, and bttn, to address, function, variable, statement, block, description, register, segment, pointer, duplicate, cluster, value, and button, respectively.
2021-10-07 02:35:32 +01:00
< a name = "l43" > < / a > BDVD_DAP: < / span > < span class = cF1 > DU8< / span > < span class = cF0 > < / span > < span class = cFE > 16< / span > < span class = cF0 > , < / span > < span class = cFE > 0< / span > < span class = cF0 > , < / span > < span class = cFE > 1< / span > < span class = cF0 > , < / span > < span class = cFE > 0< / span > < span class = cF0 > ; < / span > < span class = cF2 > //One block at a time< / span > < span class = cF0 >
2021-07-04 23:11:34 +01:00
< a name = "l44" > < / a > BDVD_DAP_BUF: < / span > < span class = cF1 > DU16< / span > < span class = cF0 > < / span > < span class = cFE > 0< / span > < span class = cF0 > , < / span > < span class = cFE > 0< / span > < span class = cF0 > ;
< a name = "l45" > < / a > BDVD_DAP_BLK: < / span > < span class = cF1 > DU64< / span > < span class = cF0 > < / span > < span class = cFE > 0< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l46" > < / a >
2021-07-11 22:47:19 +01:00
< a name = "l47" > < / a > BDVD_ZEALOS_MESSAGE: < / span > < span class = cF1 > DU8< / span > < span class = cF0 > < / span > < span class = cF6 > " Loading ZealOS" < / span > < span class = cF0 > , < / span > < span class = cFE > 0< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l48" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l49" > < / a > BDVD_NOT64_MESSAGE: < / span > < span class = cF1 > DU8< / span > < span class = cF0 > < / span > < span class = cF6 > " ZealOS requires a 64-bit capable processor.\n\r" < / span > < span class = cF0 > , < / span > < span class = cFE > 0< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l50" > < / a >
< a name = "l51" > < / a > < / span > < span class = cF2 > //These get patched.< / span > < span class = cF0 >
2021-07-04 23:11:34 +01:00
< a name = "l52" > < / a > < / span > < span class = cFD > BDVD_BLK_LO< / span > < span class = cF0 > :: < / span > < span class = cF1 > DU16< / span > < span class = cF0 > < / span > < span class = cFE > 0< / span > < span class = cF0 > ;
< a name = "l53" > < / a > < / span > < span class = cFD > BDVD_BLK_HI< / span > < span class = cF0 > :: < / span > < span class = cF1 > DU16< / span > < span class = cF0 > < / span > < span class = cFE > 0< / span > < span class = cF0 > ;
< a name = "l54" > < / a > < / span > < span class = cFD > BDVD_BLK_COUNT< / span > < span class = cF0 > :: < / span > < span class = cF1 > DU16< / span > < span class = cF0 > < / span > < span class = cFE > 0< / span > < span class = cF0 > ;
< a name = "l55" > < / a > < / span > < span class = cFD > BDVD_SHIFT_BLKS< / span > < span class = cF0 > :: < / span > < span class = cF1 > DU16< / span > < span class = cF0 > < / span > < span class = cFE > 0< / span > < span class = cF0 > ;
< a name = "l56" > < / a > < / span > < span class = cFD > BDVD_PROGRESS_STEP< / span > < span class = cF0 > :: < / span > < span class = cF1 > DU32< / span > < span class = cF0 > < / span > < span class = cFE > 0< / span > < span class = cF0 > ;
< a name = "l57" > < / a > < / span > < span class = cFD > BDVD_PROGRESS_VAL< / span > < span class = cF0 > :: < / span > < span class = cF1 > DU32< / span > < span class = cF0 > < / span > < span class = cFE > 0< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l58" > < / a >
< a name = "l59" > < / a > < / span > < span class = cFD > BDVD_PUT_CHAR< / span > < span class = cF0 > ::
2021-07-04 23:11:34 +01:00
< a name = "l60" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cFC > AH< / span > < span class = cF0 > , < / span > < span class = cFE > 0xE< / span > < span class = cF0 >
< a name = "l61" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cFC > BL< / span > < span class = cF0 > , < / span > < span class = cFE > 7< / span > < span class = cF0 > < / span > < span class = cF2 > //Might be foreground color on some BIOS's< / span > < span class = cF0 >
< a name = "l62" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cFC > BH< / span > < span class = cF0 > , < / span > < span class = cF1 > U8< / span > < span class = cF0 > [BDVD_PAGE - < / span > < span class = cFD > BDVD_START< / span > < span class = cF0 > ]
< a name = "l63" > < / a > < / span > < span class = cF1 > INT< / span > < span class = cF0 > < / span > < span class = cFE > 0x10< / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = "l64" > < / a > < / span > < span class = cFD > BDVD_RET< / span > < span class = cF0 > ::
2021-07-04 23:11:34 +01:00
< a name = "l65" > < / a > < / span > < span class = cF1 > RET< / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = "l66" > < / a > < / span > < span class = cFD > BDVD_PUTS< / span > < span class = cF0 > ::
2021-07-04 23:11:34 +01:00
< a name = "l67" > < / a > @@1: < / span > < span class = cF1 > LODSB< / span > < span class = cF0 >
< a name = "l68" > < / a > < / span > < span class = cF1 > TEST< / span > < span class = cF0 > < / span > < span class = cFC > AL< / span > < span class = cF0 > , < / span > < span class = cFC > AL< / span > < span class = cF0 >
< a name = "l69" > < / a > < / span > < span class = cF1 > JZ< / span > < span class = cF0 > < / span > < span class = cFD > BDVD_RET< / span > < span class = cF0 >
< a name = "l70" > < / a > < / span > < span class = cF1 > CALL< / span > < span class = cF0 > < / span > < span class = cFD > BDVD_PUT_CHAR< / span > < span class = cF0 >
< a name = "l71" > < / a > < / span > < span class = cF1 > JMP< / span > < span class = cF0 > @@1
2021-07-03 05:07:57 +01:00
< a name = "l72" > < / a >
< a name = "l73" > < / a > < / span > < span class = cFD > BDVD_MAIN< / span > < span class = cF0 > ::
2021-07-04 23:11:34 +01:00
< a name = "l74" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cF1 > U8< / span > < span class = cF0 > [BDVD_BIOS_DRIVE_NUM - < / span > < span class = cFD > BDVD_START< / span > < span class = cF0 > ], < / span > < span class = cFC > DL< / span > < span class = cF0 > < / span > < span class = cF2 > //Passed in by BIOS< / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = "l75" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l76" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cFC > AH< / span > < span class = cF0 > , < / span > < span class = cFE > 0xF< / span > < span class = cF0 >
< a name = "l77" > < / a > < / span > < span class = cF1 > INT< / span > < span class = cF0 > < / span > < span class = cFE > 0x10< / span > < span class = cF0 >
< a name = "l78" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cF1 > U8< / span > < span class = cF0 > [BDVD_PAGE - < / span > < span class = cFD > BDVD_START< / span > < span class = cF0 > ], < / span > < span class = cFC > BH< / span > < span class = cF0 > < / span > < span class = cF2 > //Video page< / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = "l79" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l80" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cFC > EAX< / span > < span class = cF0 > , < / span > < span class = cFE > 0x80000000< / span > < span class = cF0 >
< a name = "l81" > < / a > < / span > < span class = cF1 > CPUID< / span > < span class = cF0 >
< a name = "l82" > < / a > < / span > < span class = cF1 > CMP< / span > < span class = cF0 > < / span > < span class = cFC > EAX< / span > < span class = cF0 > , < / span > < span class = cFE > 0x80000001< / span > < span class = cF0 >
< a name = "l83" > < / a > < / span > < span class = cF1 > JB< / span > < span class = cF0 > @@05
2021-07-03 05:07:57 +01:00
< a name = "l84" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l85" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cFC > EAX< / span > < span class = cF0 > , < / span > < span class = cFE > 0x80000001< / span > < span class = cF0 >
< a name = "l86" > < / a > < / span > < span class = cF1 > CPUID< / span > < span class = cF0 >
< a name = "l87" > < / a > < / span > < span class = cF1 > BT< / span > < span class = cF0 > < / span > < span class = cFC > EDX< / span > < span class = cF0 > , < / span > < span class = cFE > 29< / span > < span class = cF0 >
< a name = "l88" > < / a > < / span > < span class = cF1 > JC< / span > < span class = cF0 > @@15
< a name = "l89" > < / a > @@05: < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cFC > SI< / span > < span class = cF0 > , BDVD_NOT64_MESSAGE - < / span > < span class = cFD > BDVD_START< / span > < span class = cF0 >
< a name = "l90" > < / a > < / span > < span class = cF1 > CALL< / span > < span class = cF0 > < / span > < span class = cFD > BDVD_PUTS< / span > < span class = cF0 >
< a name = "l91" > < / a > @@10: < / span > < span class = cF1 > JMP< / span > < span class = cF0 > @@10
2021-07-03 05:07:57 +01:00
< a name = "l92" > < / a >
2021-07-11 22:47:19 +01:00
< a name = "l93" > < / a > @@15: < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cFC > SI< / span > < span class = cF0 > , BDVD_ZEALOS_MESSAGE - < / span > < span class = cFD > BDVD_START< / span > < span class = cF0 >
2021-07-04 23:11:34 +01:00
< a name = "l94" > < / a > < / span > < span class = cF1 > CALL< / span > < span class = cF0 > < / span > < span class = cFD > BDVD_PUTS< / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = "l95" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l96" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cFC > AX< / span > < span class = cF0 > , < / span > < span class = cF3 > BOOT_RAM_BASE< / span > < span class = cF0 > / < / span > < span class = cFE > 16< / span > < span class = cF0 >
< a name = "l97" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cFC > ES< / span > < span class = cF0 > , < / span > < span class = cFC > AX< / span > < span class = cF0 >
< a name = "l98" > < / a > < / span > < span class = cF1 > XOR< / span > < span class = cF0 > < / span > < span class = cFC > ECX< / span > < span class = cF0 > , < / span > < span class = cFC > ECX< / span > < span class = cF0 >
< a name = "l99" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cFC > CX< / span > < span class = cF0 > , < / span > < span class = cF9 > U16< / span > < span class = cF0 > [< / span > < span class = cFD > BDVD_BLK_COUNT< / span > < span class = cF0 > - < / span > < span class = cFD > BDVD_START< / span > < span class = cF0 > ]
2021-07-03 05:07:57 +01:00
< a name = "l100" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l101" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cFC > EAX< / span > < span class = cF0 > , (< / span > < span class = cFE > 80< / span > < span class = cF0 > - < / span > < span class = cFE > 7< / span > < span class = cF0 > - < / span > < span class = cFE > 9< / span > < span class = cF0 > ) * < / span > < span class = cFE > 65536< / span > < span class = cF0 > < / span > < span class = cF2 > //80 columns< / span > < span class = cF0 >
< a name = "l102" > < / a > < / span > < span class = cF1 > XOR< / span > < span class = cF0 > < / span > < span class = cFC > EDX< / span > < span class = cF0 > , < / span > < span class = cFC > EDX< / span > < span class = cF0 >
< a name = "l103" > < / a > < / span > < span class = cF1 > DIV< / span > < span class = cF0 > < / span > < span class = cFC > ECX< / span > < span class = cF0 >
< a name = "l104" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cF9 > U32< / span > < span class = cF0 > [< / span > < span class = cFD > BDVD_PROGRESS_STEP< / span > < span class = cF0 > - < / span > < span class = cFD > BDVD_START< / span > < span class = cF0 > ], < / span > < span class = cFC > EAX< / span > < span class = cF0 >
< a name = "l105" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cF9 > U32< / span > < span class = cF0 > [< / span > < span class = cFD > BDVD_PROGRESS_VAL< / span > < span class = cF0 > - < / span > < span class = cFD > BDVD_START< / span > < span class = cF0 > ], < / span > < span class = cFE > 0< / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = "l106" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l107" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cFC > AX< / span > < span class = cF0 > , < / span > < span class = cF9 > U16< / span > < span class = cF0 > [< / span > < span class = cFD > BDVD_BLK_LO< / span > < span class = cF0 > - < / span > < span class = cFD > BDVD_START< / span > < span class = cF0 > ]
< a name = "l108" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cFC > DX< / span > < span class = cF0 > , < / span > < span class = cF9 > U16< / span > < span class = cF0 > [< / span > < span class = cFD > BDVD_BLK_HI< / span > < span class = cF0 > - < / span > < span class = cFD > BDVD_START< / span > < span class = cF0 > ]
2021-07-03 05:07:57 +01:00
< a name = "l109" > < / a >
Rename abs_addres to abs_address.
Update documentation/comments to rename addr, fun, var, stmt, blk, desc, reg, seg, ptr, dup, clus, val, and bttn, to address, function, variable, statement, block, description, register, segment, pointer, duplicate, cluster, value, and button, respectively.
2021-10-07 02:35:32 +01:00
< a name = "l110" > < / a > @@20: < / span > < span class = cF1 > PUSH< / span > < span class = cF0 > < / span > < span class = cFC > CX< / span > < span class = cF0 > < / span > < span class = cF2 > //Block count< / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = "l111" > < / a >
Rename abs_addres to abs_address.
Update documentation/comments to rename addr, fun, var, stmt, blk, desc, reg, seg, ptr, dup, clus, val, and bttn, to address, function, variable, statement, block, description, register, segment, pointer, duplicate, cluster, value, and button, respectively.
2021-10-07 02:35:32 +01:00
< a name = "l112" > < / a > < / span > < span class = cF2 > //READ BLOCK< / span > < span class = cF0 >
< a name = "l113" > < / a > < / span > < span class = cF1 > PUSH< / span > < span class = cF0 > < / span > < span class = cFC > AX< / span > < span class = cF0 > < / span > < span class = cF2 > //Block lo< / span > < span class = cF0 >
< a name = "l114" > < / a > < / span > < span class = cF1 > PUSH< / span > < span class = cF0 > < / span > < span class = cFC > DX< / span > < span class = cF0 > < / span > < span class = cF2 > //Block hi< / span > < span class = cF0 >
2021-07-04 23:11:34 +01:00
< a name = "l115" > < / a > < / span > < span class = cF1 > PUSH< / span > < span class = cF0 > < / span > < span class = cFC > ES< / span > < span class = cF0 > < / span > < span class = cF2 > //Buf seg< / span > < span class = cF0 >
< a name = "l116" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cF9 > U16< / span > < span class = cF0 > [BDVD_DAP_BLK - < / span > < span class = cFD > BDVD_START< / span > < span class = cF0 > ], < / span > < span class = cFC > AX< / span > < span class = cF0 >
< a name = "l117" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cF9 > U16< / span > < span class = cF0 > [BDVD_DAP_BLK + < / span > < span class = cFE > 2< / span > < span class = cF0 > - < / span > < span class = cFD > BDVD_START< / span > < span class = cF0 > ], < / span > < span class = cFC > DX< / span > < span class = cF0 >
< a name = "l118" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cFC > AX< / span > < span class = cF0 > , < / span > < span class = cFC > ES< / span > < span class = cF0 >
< a name = "l119" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cF9 > U16< / span > < span class = cF0 > [BDVD_DAP_BUF + < / span > < span class = cFE > 2< / span > < span class = cF0 > - < / span > < span class = cFD > BDVD_START< / span > < span class = cF0 > ], < / span > < span class = cFC > AX< / span > < span class = cF0 > < / span > < span class = cF2 > //ES:0000< / span > < span class = cF0 >
< a name = "l120" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cFC > SI< / span > < span class = cF0 > , BDVD_DAP - < / span > < span class = cFD > BDVD_START< / span > < span class = cF0 > < / span > < span class = cF2 > //DS:SI=DAP< / span > < span class = cF0 >
< a name = "l121" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cFC > AH< / span > < span class = cF0 > , < / span > < span class = cFE > 0x42< / span > < span class = cF0 >
< a name = "l122" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cFC > DL< / span > < span class = cF0 > , < / span > < span class = cF1 > U8< / span > < span class = cF0 > [BDVD_BIOS_DRIVE_NUM - < / span > < span class = cFD > BDVD_START< / span > < span class = cF0 > ]
< a name = "l123" > < / a > < / span > < span class = cF1 > INT< / span > < span class = cF0 > < / span > < span class = cFE > 0x13< / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = "l124" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l125" > < / a > < / span > < span class = cF1 > POP< / span > < span class = cF0 > < / span > < span class = cFC > AX< / span > < span class = cF0 > < / span > < span class = cF2 > //ES< / span > < span class = cF0 >
< a name = "l126" > < / a > < / span > < span class = cF1 > ADD< / span > < span class = cF0 > < / span > < span class = cFC > AX< / span > < span class = cF0 > , < / span > < span class = cF3 > DVD_BLK_SIZE< / span > < span class = cF0 > / < / span > < span class = cFE > 16< / span > < span class = cF0 >
< a name = "l127" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cFC > ES< / span > < span class = cF0 > , < / span > < span class = cFC > AX< / span > < span class = cF0 >
< a name = "l128" > < / a > < / span > < span class = cF1 > POP< / span > < span class = cF0 > < / span > < span class = cFC > DX< / span > < span class = cF0 >
< a name = "l129" > < / a > < / span > < span class = cF1 > POP< / span > < span class = cF0 > < / span > < span class = cFC > AX< / span > < span class = cF0 >
< a name = "l130" > < / a > < / span > < span class = cF1 > INC< / span > < span class = cF0 > < / span > < span class = cFC > AX< / span > < span class = cF0 >
< a name = "l131" > < / a > < / span > < span class = cF1 > JNZ< / span > < span class = cF0 > @@25
< a name = "l132" > < / a > < / span > < span class = cF1 > INC< / span > < span class = cF0 > < / span > < span class = cFC > DX< / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = "l133" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l134" > < / a > @@25: < / span > < span class = cF1 > PUSH< / span > < span class = cF0 > < / span > < span class = cFC > AX< / span > < span class = cF0 >
< a name = "l135" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cFC > BX< / span > < span class = cF0 > , < / span > < span class = cF9 > U16< / span > < span class = cF0 > [< / span > < span class = cFD > BDVD_PROGRESS_VAL< / span > < span class = cF0 > + < / span > < span class = cFE > 2< / span > < span class = cF0 > - < / span > < span class = cFD > BDVD_START< / span > < span class = cF0 > ]
< a name = "l136" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cFC > EAX< / span > < span class = cF0 > , < / span > < span class = cF9 > U32< / span > < span class = cF0 > [< / span > < span class = cFD > BDVD_PROGRESS_STEP< / span > < span class = cF0 > - < / span > < span class = cFD > BDVD_START< / span > < span class = cF0 > ]
< a name = "l137" > < / a > < / span > < span class = cF1 > ADD< / span > < span class = cF0 > < / span > < span class = cF9 > U32< / span > < span class = cF0 > [< / span > < span class = cFD > BDVD_PROGRESS_VAL< / span > < span class = cF0 > - < / span > < span class = cFD > BDVD_START< / span > < span class = cF0 > ], < / span > < span class = cFC > EAX< / span > < span class = cF0 >
< a name = "l138" > < / a > < / span > < span class = cF1 > CMP< / span > < span class = cF0 > < / span > < span class = cF9 > U16< / span > < span class = cF0 > [< / span > < span class = cFD > BDVD_PROGRESS_VAL< / span > < span class = cF0 > + < / span > < span class = cFE > 2< / span > < span class = cF0 > - < / span > < span class = cFD > BDVD_START< / span > < span class = cF0 > ], < / span > < span class = cFC > BX< / span > < span class = cF0 >
< a name = "l139" > < / a > < / span > < span class = cF1 > JE< / span > < span class = cF0 > @@30
< a name = "l140" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cFC > AL< / span > < span class = cF0 > , < / span > < span class = cF6 > '.'< / span > < span class = cF0 >
< a name = "l141" > < / a > < / span > < span class = cF1 > CALL< / span > < span class = cF0 > < / span > < span class = cFD > BDVD_PUT_CHAR< / span > < span class = cF0 >
< a name = "l142" > < / a > @@30: < / span > < span class = cF1 > POP< / span > < span class = cF0 > < / span > < span class = cFC > AX< / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = "l143" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l144" > < / a > < / span > < span class = cF1 > POP< / span > < span class = cF0 > < / span > < span class = cFC > CX< / span > < span class = cF0 >
< a name = "l145" > < / a > < / span > < span class = cF1 > LOOP< / span > < span class = cF0 > @@20
2021-07-03 05:07:57 +01:00
< a name = "l146" > < / a >
< a name = "l147" > < / a > < / span > < span class = cF2 > //Shift backward to align< / span > < span class = cF0 >
2021-07-04 23:11:34 +01:00
< a name = "l148" > < / a > < / span > < span class = cF1 > PUSH< / span > < span class = cF0 > < / span > < span class = cFC > DS< / span > < span class = cF0 >
< a name = "l149" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cFC > BX< / span > < span class = cF0 > , < / span > < span class = cF9 > U16< / span > < span class = cF0 > [< / span > < span class = cFD > BDVD_SHIFT_BLKS< / span > < span class = cF0 > - < / span > < span class = cFD > BDVD_START< / span > < span class = cF0 > ]
< a name = "l150" > < / a > < / span > < span class = cF1 > SHL< / span > < span class = cF0 > < / span > < span class = cFC > BX< / span > < span class = cF0 > , < / span > < span class = cF3 > BLK_SIZE_BITS< / span > < span class = cF0 > - < / span > < span class = cFE > 4< / span > < span class = cF0 >
< a name = "l151" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cFC > CX< / span > < span class = cF0 > , < / span > < span class = cF9 > U16< / span > < span class = cF0 > [< / span > < span class = cFD > BDVD_BLK_COUNT< / span > < span class = cF0 > - < / span > < span class = cFD > BDVD_START< / span > < span class = cF0 > ]
< a name = "l152" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cFC > AX< / span > < span class = cF0 > , < / span > < span class = cF3 > BOOT_RAM_BASE< / span > < span class = cF0 > / < / span > < span class = cFE > 16< / span > < span class = cF0 >
< a name = "l153" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cFC > ES< / span > < span class = cF0 > , < / span > < span class = cFC > AX< / span > < span class = cF0 >
< a name = "l154" > < / a > < / span > < span class = cF1 > ADD< / span > < span class = cF0 > < / span > < span class = cFC > AX< / span > < span class = cF0 > , < / span > < span class = cFC > BX< / span > < span class = cF0 >
< a name = "l155" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cFC > DS< / span > < span class = cF0 > , < / span > < span class = cFC > AX< / span > < span class = cF0 >
< a name = "l156" > < / a > @@35: < / span > < span class = cF1 > PUSH< / span > < span class = cF0 > < / span > < span class = cFC > CX< / span > < span class = cF0 >
< a name = "l157" > < / a > < / span > < span class = cF1 > XOR< / span > < span class = cF0 > < / span > < span class = cFC > SI< / span > < span class = cF0 > , < / span > < span class = cFC > SI< / span > < span class = cF0 >
< a name = "l158" > < / a > < / span > < span class = cF1 > XOR< / span > < span class = cF0 > < / span > < span class = cFC > DI< / span > < span class = cF0 > , < / span > < span class = cFC > DI< / span > < span class = cF0 >
< a name = "l159" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cFC > CX< / span > < span class = cF0 > , < / span > < span class = cF3 > DVD_BLK_SIZE< / span > < span class = cF0 > / < / span > < span class = cFE > 4< / span > < span class = cF0 >
< a name = "l160" > < / a > < / span > < span class = cF1 > REP_MOVSD< / span > < span class = cF0 >
< a name = "l161" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cFC > AX< / span > < span class = cF0 > , < / span > < span class = cFC > DS< / span > < span class = cF0 >
< a name = "l162" > < / a > < / span > < span class = cF1 > ADD< / span > < span class = cF0 > < / span > < span class = cFC > AX< / span > < span class = cF0 > , < / span > < span class = cF3 > DVD_BLK_SIZE< / span > < span class = cF0 > / < / span > < span class = cFE > 16< / span > < span class = cF0 >
< a name = "l163" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cFC > DS< / span > < span class = cF0 > , < / span > < span class = cFC > AX< / span > < span class = cF0 >
< a name = "l164" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cFC > AX< / span > < span class = cF0 > , < / span > < span class = cFC > ES< / span > < span class = cF0 >
< a name = "l165" > < / a > < / span > < span class = cF1 > ADD< / span > < span class = cF0 > < / span > < span class = cFC > AX< / span > < span class = cF0 > , < / span > < span class = cF3 > DVD_BLK_SIZE< / span > < span class = cF0 > / < / span > < span class = cFE > 16< / span > < span class = cF0 >
< a name = "l166" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cFC > ES< / span > < span class = cF0 > , < / span > < span class = cFC > AX< / span > < span class = cF0 >
< a name = "l167" > < / a > < / span > < span class = cF1 > POP< / span > < span class = cF0 > < / span > < span class = cFC > CX< / span > < span class = cF0 >
< a name = "l168" > < / a > < / span > < span class = cF1 > LOOP< / span > < span class = cF0 > @@35
< a name = "l169" > < / a > < / span > < span class = cF1 > POP< / span > < span class = cF0 > < / span > < span class = cFC > DS< / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = "l170" > < / a >
2021-10-08 07:06:11 +01:00
< a name = "l171" > < / a > < / span > < span class = cF2 > //See < / span > < a href = "https://zeal-operating-system.github.io/ZealOS/Kernel/BlkDev/DiskAHCI.CC.html#l1131" > < span class = cF4 > AHCIBootDVDProbeAll< / span > < / a > < span class = cF2 > ().< / span > < span class = cF0 >
2021-07-04 23:11:34 +01:00
< a name = "l172" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cFC > EBX< / span > < span class = cF0 > , < / span > < span class = cF9 > U32< / span > < span class = cF0 > [< / span > < span class = cFD > BDVD_BLK_LO< / span > < span class = cF0 > - < / span > < span class = cFD > BDVD_START< / span > < span class = cF0 > ]
< a name = "l173" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cFC > AX< / span > < span class = cF0 > , < / span > < span class = cF9 > U16< / span > < span class = cF0 > [< / span > < span class = cFD > BDVD_SHIFT_BLKS< / span > < span class = cF0 > - < / span > < span class = cFD > BDVD_START< / span > < span class = cF0 > ]
< a name = "l174" > < / a > < / span > < span class = cF1 > SHL< / span > < span class = cF0 > < / span > < span class = cFC > EAX< / span > < span class = cF0 > , < / span > < span class = cFE > 16< / span > < span class = cF0 >
< a name = "l175" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cFC > AX< / span > < span class = cF0 > , < / span > < span class = cF3 > BOOT_SRC_DVD< / span > < span class = cF0 > < / span > < span class = cF2 > //< / span > < span class = cF9 > < u > See sys_boot_src< / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = "l176" > < / a >
< a name = "l177" > < / a > < / u > < / span > < span class = cF2 > //The assembler doesn't support 16-bit very well.< / span > < span class = cF0 >
2021-07-04 23:11:34 +01:00
< a name = "l178" > < / a > < / span > < span class = cF1 > DU8< / span > < span class = cF0 > < / span > < span class = cFE > 0xEA< / span > < span class = cF0 > ; < / span > < span class = cF2 > //JMP BOOT_RAM_BASE:0000< / span > < span class = cF0 >
< a name = "l179" > < / a > < / span > < span class = cF1 > DU16< / span > < span class = cF0 > < / span > < span class = cFE > 0< / span > < span class = cF0 > , < / span > < span class = cF3 > BOOT_RAM_BASE< / span > < span class = cF0 > / < / span > < span class = cFE > 16< / span > < span class = cF0 > ;
2021-07-26 20:29:49 +01:00
< a name = "l180" > < / a > < / span > < span class = cF2 > //Continues here < / span > < a href = "https://zeal-operating-system.github.io/ZealOS/Kernel/KStart16.CC.html#l1" > < span class = cF4 > ::/Kernel/KStart16.CC< / span > < / a > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = "l181" > < / a > < / span > < span class = cFD > BDVD_END< / span > < span class = cF0 > ::
< a name = "l182" > < / a > #< / span > < span class = cF1 > assert< / span > < span class = cF0 > < / span > < span class = cFD > BDVD_END< / span > < span class = cF0 > -< / span > < span class = cFD > BDVD_START< / span > < span class = cF0 > < < / span > < span class = cF3 > DVD_BOOT_LOADER_SIZE< / span > < span class = cF0 >
< a name = "l183" > < / a > }
< / span > < / pre > < / body >
< / html >