2021-07-03 05:07:57 +01:00
< ! DOCTYPE HTML >
< html >
< head >
< meta http - equiv = " Content-Type " content = " text/html;charset=US-ASCII " >
< meta name = " generator " content = " ZealOS V0.05 " >
< style type = " text/css " >
body { background - color : # 000000 ; }
. cF0 { color : # ffffff ; background - color : # 000000 ; }
. cF1 { color : # 3465 a4 ; background - color : # 000000 ; }
. cF2 { color : # 4e9 a06 ; background - color : # 000000 ; }
. cF3 { color : # 06 989 a ; background - color : # 000000 ; }
. cF4 { color : # a24444 ; background - color : # 000000 ; }
. cF5 { color : # 75507 b ; background - color : # 000000 ; }
. cF6 { color : # ce982f ; background - color : # 000000 ; }
. cF7 { color : # bcc0b9 ; background - color : # 000000 ; }
. cF8 { color : # 555753 ; background - color : # 000000 ; }
. cF9 { color : # 729f cf ; background - color : # 000000 ; }
. cFA { color : # 82 bc49 ; background - color : # 000000 ; }
. cFB { color : # 34e2 e2 ; background - color : # 000000 ; }
. cFC { color : # ac3535 ; background - color : # 000000 ; }
. cFD { color : # ad7fa8 ; background - color : # 000000 ; }
. cFE { color : # fce94f ; background - color : # 000000 ; }
. cFF { color : # 000000 ; background - color : # 000000 ; }
< / style >
< / head >
< body >
2021-07-05 01:12:38 +01:00
< pre style = " font-family:monospace;font-size:12pt " >
2021-07-03 05:07:57 +01:00
< a name = " l1 " > < / a > < span class = cF0 > # < / span > < span class = cF1 > help_index < / span > < span class = cF0 > < / span > < span class = cF6 > & quot ; Call & quot ; < / span > < span class = cF0 >
< a name = " l2 " > < / a > < / span > < span class = cF1 > asm < / span > < span class = cF0 > {
< a name = " l3 " > < / a > < / span > < span class = cFD > _HI_CALL < / span > < span class = cF0 > : :
2021-07-04 23:11:34 +01:00
< a name = " l4 " > < / a > < / span > < span class = cF1 > PUSH < / span > < span class = cF0 > < / span > < span class = cFC > RBP < / span > < span class = cF0 >
< a name = " l5 " > < / a > < / span > < span class = cF1 > MOV < / span > < span class = cF0 > < / span > < span class = cFC > RBP < / span > < span class = cF0 > , < / span > < span class = cFC > RSP < / span > < span class = cF0 >
< a name = " l6 " > < / a > < / span > < span class = cF1 > MOV < / span > < span class = cF0 > < / span > < span class = cFC > RAX < / span > < span class = cF0 > , < / span > < span class = cF9 > U64 < / span > < span class = cF0 > < / span > < span class = cFE > 16 < / span > < span class = cF0 > [ < / span > < span class = cFC > RBP < / span > < span class = cF0 > ]
< a name = " l7 " > < / a > < / span > < span class = cF1 > TEST < / span > < span class = cF0 > < / span > < span class = cFC > RAX < / span > < span class = cF0 > , < / span > < span class = cFC > RAX < / span > < span class = cF0 >
< a name = " l8 " > < / a > < / span > < span class = cF1 > JZ < / span > < span class = cF0 > @ @ 05
< a name = " l9 " > < / a > < / span > < span class = cF1 > CALL < / span > < span class = cF0 > < / span > < span class = cFC > RAX < / span > < span class = cF0 >
< a name = " l10 " > < / a > @ @ 05 : < / span > < span class = cF1 > POP < / span > < span class = cF0 > < / span > < span class = cFC > RBP < / span > < span class = cF0 >
< a name = " l11 " > < / a > < / span > < span class = cF1 > RET1 < / span > < span class = cF0 > < / span > < span class = cFE > 8 < / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = " l12 " > < / a > < / span > < span class = cF2 > //************************************</span><span class=cF0>
< a name = " l13 " > < / a > < / span > < span class = cFD > _HI_MEMCOPY < / span > < span class = cF0 > : :
2021-07-04 23:11:34 +01:00
< a name = " l14 " > < / a > < / span > < span class = cF1 > PUSH < / span > < span class = cF0 > < / span > < span class = cFC > RBP < / span > < span class = cF0 >
< a name = " l15 " > < / a > < / span > < span class = cF1 > MOV < / span > < span class = cF0 > < / span > < span class = cFC > RBP < / span > < span class = cF0 > , < / span > < span class = cFC > RSP < / span > < span class = cF0 >
< a name = " l16 " > < / a > < / span > < span class = cF1 > PUSH < / span > < span class = cF0 > < / span > < span class = cFC > RSI < / span > < span class = cF0 >
< a name = " l17 " > < / a > < / span > < span class = cF1 > PUSH < / span > < span class = cF0 > < / span > < span class = cFC > RDI < / span > < span class = cF0 >
< a name = " l18 " > < / a > < / span > < span class = cF1 > CLD < / span > < span class = cF0 >
< a name = " l19 " > < / a > < / span > < span class = cF1 > MOV < / span > < span class = cF0 > < / span > < span class = cFC > RDI < / span > < span class = cF0 > , < / span > < span class = cF9 > U64 < / span > < span class = cF0 > < / span > < span class = cF3 > SF_ARG1 < / span > < span class = cF0 > [ < / span > < span class = cFC > RBP < / span > < span class = cF0 > ]
< a name = " l20 " > < / a > < / span > < span class = cF1 > MOV < / span > < span class = cF0 > < / span > < span class = cFC > RSI < / span > < span class = cF0 > , < / span > < span class = cF9 > U64 < / span > < span class = cF0 > < / span > < span class = cF3 > SF_ARG2 < / span > < span class = cF0 > [ < / span > < span class = cFC > RBP < / span > < span class = cF0 > ]
< a name = " l21 " > < / a > < / span > < span class = cF1 > MOV < / span > < span class = cF0 > < / span > < span class = cFC > RCX < / span > < span class = cF0 > , < / span > < span class = cF9 > U64 < / span > < span class = cF0 > < / span > < span class = cF3 > SF_ARG3 < / span > < span class = cF0 > [ < / span > < span class = cFC > RBP < / span > < span class = cF0 > ]
< a name = " l22 " > < / a > < / span > < span class = cF1 > REP_MOVSB < / span > < span class = cF0 >
< a name = " l23 " > < / a > < / span > < span class = cF1 > MOV < / span > < span class = cF0 > < / span > < span class = cFC > RAX < / span > < span class = cF0 > , < / span > < span class = cFC > RDI < / span > < span class = cF0 >
< a name = " l24 " > < / a > < / span > < span class = cF1 > POP < / span > < span class = cF0 > < / span > < span class = cFC > RDI < / span > < span class = cF0 >
< a name = " l25 " > < / a > < / span > < span class = cF1 > POP < / span > < span class = cF0 > < / span > < span class = cFC > RSI < / span > < span class = cF0 >
< a name = " l26 " > < / a > < / span > < span class = cF1 > POP < / span > < span class = cF0 > < / span > < span class = cFC > RBP < / span > < span class = cF0 >
< a name = " l27 " > < / a > < / span > < span class = cF1 > RET1 < / span > < span class = cF0 > < / span > < span class = cFE > 24 < / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = " l28 " > < / a > }
2021-07-04 23:11:34 +01:00
< a name = " l29 " > < / a > < / span > < span class = cF1 > _extern < / span > < span class = cF0 > < / span > < span class = cFD > _HI_CALL < / span > < span class = cF0 > < / span > < span class = cF9 > I64 < / span > < span class = cF0 > < / span > < span class = cF5 > HiCall < / span > < span class = cF0 > ( < / span > < span class = cF1 > U8 < / span > < span class = cF0 > * machine_code ) ;
2021-07-03 05:07:57 +01:00
< a name = " l30 " > < / a > < / span > < span class = cF1 > _extern < / span > < span class = cF0 > < / span > < span class = cFD > _HI_MEMCOPY < / span > < span class = cF0 > < / span > < span class = cF1 > U8 < / span > < span class = cF0 > * < / span > < span class = cF5 > HiMemCopy < / span > < span class = cF0 > ( < / span > < span class = cF1 > U8 < / span > < span class = cF0 > * dst , < / span > < span class = cF1 > U8 < / span > < span class = cF0 > * src , < / span > < span class = cF9 > I64 < / span > < span class = cF0 > count ) ;
< a name = " l31 " > < / a >
< a name = " l32 " > < / a > # < / span > < span class = cF1 > help_index < / span > < span class = cF0 > < / span > < span class = cF6 > & quot ; Boot & quot ; < / span > < span class = cF0 >
< a name = " l33 " > < / a > < / span > < span class = cF1 > public < / span > < span class = cF0 > < / span > < span class = cF1 > U0 < / span > < span class = cF0 > < / span > < span class = cF5 > BootRAM < / span > < span class = cF0 > ( < / span > < span class = cF1 > U8 < / span > < span class = cF0 > * filename = < / span > < span class = cF6 > & quot ; : : / & quot ; < / span > < span class = cF0 > < / span > < span class = cF3 > KERNEL_BIN_C < / span > < span class = cF0 > )
< a name = " l34 " > < / a > { < / span > < span class = cF2 > //Softboot Kernel.BIN file. No hardware reset.</span><span class=cF0>
2021-07-04 23:11:34 +01:00
< a name = " l35 " > < / a > < / span > < span class = cF9 > I64 < / span > < span class = cF0 > size ;
< a name = " l36 " > < / a > < / span > < span class = cF9 > CKernel < / span > < span class = cF0 > * hi_image , * lo_image = < / span > < span class = cFB > mem_boot_base < / span > < span class = cF0 > - < / span > < span class = cF1 > sizeof < / span > < span class = cF0 > ( < / span > < span class = cF9 > CBinFile < / span > < span class = cF0 > ) , < / span > < span class = cF1 > reg < / span > < span class = cF0 > * sys_ram_reboot ;
< a name = " l37 " > < / a > < / span > < span class = cF1 > do < / span > < span class = cF0 >
< a name = " l38 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( ! < / span > < span class = cF7 > ( < / span > < span class = cF0 > hi_image = < / span > < span class = cF5 > FileRead < / span > < span class = cF0 > ( filename , & amp ; size ) < / span > < span class = cF7 > ) < / span > < span class = cF0 > )
< a name = " l39 " > < / a > < / span > < span class = cF1 > return < / span > < span class = cF0 > ;
< a name = " l40 " > < / a > < / span > < span class = cF1 > while < / span > < span class = cF0 > ( hi_image & lt ; < / span > < span class = cFE > 0x100000 < / span > < span class = cF0 > ) ; < / span > < span class = cF2 > //If alloc from low 640K, just get another copy.</span><span class=cF0>
2021-07-03 05:07:57 +01:00
< a name = " l41 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l42 " > < / a > < / span > < span class = cF1 > do < / span > < span class = cF0 >
< a name = " l43 " > < / a > sys_ram_reboot = < / span > < span class = cF5 > MAlloc < / span > < span class = cF0 > ( < / span > < span class = cFD > SYS_RAM_REBOOT_END < / span > < span class = cF0 > - < / span > < span class = cFD > SYS_RAM_REBOOT < / span > < span class = cF0 > , < / span > < span class = cF5 > Fs < / span > < span class = cF0 > - & gt ; code_heap ) ;
< a name = " l44 " > < / a > < / span > < span class = cF1 > while < / span > < span class = cF0 > ( sys_ram_reboot & lt ; < / span > < span class = cFE > 0x100000 < / span > < span class = cF0 > ) ;
2021-07-03 05:07:57 +01:00
< a name = " l45 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l46 " > < / a > hi_image - & gt ; boot_src = < / span > < span class = cF3 > BOOT_SRC_RAM < / span > < span class = cF0 > ;
< a name = " l47 " > < / a > hi_image - & gt ; boot_blk = < / span > < span class = cFE > 0 < / span > < span class = cF0 > ;
< a name = " l48 " > < / a > hi_image - & gt ; boot_patch_table_base = lo_image ( < / span > < span class = cF1 > U8 < / span > < span class = cF0 > * ) + hi_image - & gt ; h . patch_table_offset ;
< a name = " l49 " > < / a > hi_image - & gt ; < / span > < span class = cFB > sys_run_level < / span > < span class = cF0 > = lo_image - & gt ; < / span > < span class = cFB > sys_run_level < / span > < span class = cF0 > & amp ; ( < / span > < span class = cF3 > RLF_VESA < / span > < span class = cF0 > | < / span > < span class = cF3 > RLF_16BIT < / span > < span class = cF0 > ) ;
< a name = " l50 " > < / a > < / span > < span class = cF5 > MemCopy < / span > < span class = cF0 > ( & amp ; hi_image - & gt ; < / span > < span class = cF1 > start < / span > < span class = cF0 > , & amp ; lo_image - & gt ; < / span > < span class = cF1 > start < / span > < span class = cF0 > , < / span > < span class = cF1 > sizeof < / span > < span class = cF7 > ( < / span > < span class = cF9 > CKernel < / span > < span class = cF7 > ) < / span > < span class = cF0 > - < / span > < span class = cF1 > offset < / span > < span class = cF7 > ( < / span > < span class = cF9 > CKernel < / span > < span class = cF0 > . < / span > < span class = cF1 > start < / span > < span class = cF7 > ) < / span > < span class = cF0 > ) ;
2021-07-03 05:07:57 +01:00
< a name = " l51 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l52 " > < / a > < / span > < span class = cF1 > CLI < / span > < span class = cF0 >
< a name = " l53 " > < / a > < / span > < span class = cF1 > if < / span > < span class = cF0 > ( < / span > < span class = cFB > mp_count < / span > < span class = cF0 > & gt ; < / span > < span class = cFE > 1 < / span > < span class = cF0 > )
< a name = " l54 " > < / a > < / span > < span class = cF5 > MPHalt < / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = " l55 " > < / a >
2021-07-04 23:11:34 +01:00
< a name = " l56 " > < / a > < / span > < span class = cF5 > HiMemCopy < / span > < span class = cF0 > ( sys_ram_reboot , < / span > < span class = cFD > SYS_RAM_REBOOT < / span > < span class = cF0 > , < / span > < span class = cFD > SYS_RAM_REBOOT_END < / span > < span class = cF0 > - < / span > < span class = cFD > SYS_RAM_REBOOT < / span > < span class = cF0 > ) ;
< a name = " l57 " > < / a > < / span > < span class = cF5 > HiMemCopy < / span > < span class = cF0 > ( lo_image , hi_image , size ) ;
< a name = " l58 " > < / a > < / span > < span class = cF5 > HiCall < / span > < span class = cF0 > ( sys_ram_reboot ) ;
2021-07-03 05:07:57 +01:00
< a name = " l59 " > < / a > }
< / span > < / pre > < / body >
< / html >