feat: rajout du précorrectione CS sur tout les appels

This commit is contained in:
Nicolas Hordé 2007-03-23 16:47:20 +00:00
parent abb4ab5b5a
commit 2a1dd56ef4
1 changed files with 36 additions and 36 deletions

View File

@ -55,23 +55,23 @@ suite:
pop gs pop gs
call biosprint,offset msg_ok call biosprint,offset msg_ok
call biosprint,offset msg_video_init call biosprint,offset msg_video_init
call [setvideomode],2 call [cs:setvideomode],2
jc error jc error
call [clearscreen] call [cs:clearscreen]
call [print],offset msg_memory call [cs:print],offset msg_memory
call [print],offset msg_ok2 call [cs:print],offset msg_ok2
call [print],offset msg_memory_init call [cs:print],offset msg_memory_init
call [print],offset msg_ok2 call [cs:print],offset msg_ok2
call [print],offset msg_memory_section call [cs:print],offset msg_memory_section
call [print],offset msg_ok2 call [cs:print],offset msg_ok2
call [print],offset msg_memory_jumps call [cs:print],offset msg_memory_jumps
call [print],offset msg_ok2 call [cs:print],offset msg_ok2
call [print],offset msg_video_init call [cs:print],offset msg_video_init
call [print],offset msg_ok2 call [cs:print],offset msg_ok2
call [print],offset msg_cpu_detect call [cs:print],offset msg_cpu_detect
call [cpuinfo],offset thecpu call [cs:cpuinfo],offset thecpu
call [setinfo],offset thecpu,offset temp call [cs:setinfo],offset thecpu,offset temp
call [print],offset msg_ok2 call [cs:print],offset msg_ok2
push offset temp push offset temp
xor eax,eax xor eax,eax
mov al,[thecpu.family] mov al,[thecpu.family]
@ -82,11 +82,11 @@ suite:
push eax push eax
push offset thecpu.names push offset thecpu.names
push offset thecpu.vendor push offset thecpu.vendor
call [print],offset msg_cpu_detect_inf call [cs:print],offset msg_cpu_detect_inf
call [print],offset msg_pci call [cs:print],offset msg_pci
call [pciinfo],offset thepci call [cs:pciinfo],offset thepci
jc nopci jc nopci
call [print],offset msg_ok2 call [cs:print],offset msg_ok2
xor eax,eax xor eax,eax
mov al,[thepci.maxbus] mov al,[thepci.maxbus]
push eax push eax
@ -94,25 +94,25 @@ suite:
push eax push eax
mov al,[thepci.version_major] mov al,[thepci.version_major]
push eax push eax
call [print],offset msg_pci_info call [cs:print],offset msg_pci_info
call [print],offset msg_pci_enum call [cs:print],offset msg_pci_enum
xor bx,bx xor bx,bx
xor cx,cx xor cx,cx
xor si,si xor si,si
searchpci: searchpci:
call [getcardinfo],bx,cx,si,offset temp call [cs:getcardinfo],bx,cx,si,offset temp
jc stopthis jc stopthis
mov al,[(pcidata offset temp).subclass] mov al,[(pcidata offset temp).subclass]
push ax push ax
mov al,[(pcidata offset temp).class] mov al,[(pcidata offset temp).class]
push ax push ax
call [getpcisubclass] call [cs:getpcisubclass]
push dx push dx
push ax push ax
mov al,[(pcidata offset temp).class] mov al,[(pcidata offset temp).class]
xor ah,ah xor ah,ah
push ax push ax
call [getpciclass] call [cs:getpciclass]
push dx push dx
push ax push ax
push 4 push 4
@ -125,7 +125,7 @@ searchpci:
push eax push eax
mov ax,[(pcidata offset temp).vendor] mov ax,[(pcidata offset temp).vendor]
push eax push eax
call [print],offset msg_pci_card call [cs:print],offset msg_pci_card
inc si inc si
cmp si,7 cmp si,7
jbe searchpci jbe searchpci
@ -140,28 +140,28 @@ stopthis:
jbe searchpci jbe searchpci
jmp next jmp next
nopci: nopci:
call [print],offset msg_echec2 call [cs:print],offset msg_echec2
next: next:
call [detectvmware] call [cs:detectvmware]
jne novirtual jne novirtual
call [print],offset msg_vmware call [cs:print],offset msg_vmware
novirtual: novirtual:
call [print],offset msg_flat call [cs:print],offset msg_flat
call enablea20 call enablea20
call flatmode call flatmode
xor ax,ax xor ax,ax
mov fs,ax mov fs,ax
mov esi,0100000h mov esi,0100000h
mov [dword ptr fs:esi],"OKIN" mov [dword ptr fs:esi],"OKIN"
call [print],offset msg_ok2 call [cs:print],offset msg_ok2
call [print],offset msg_disk_init call [cs:print],offset msg_disk_init
call [initdrive] call [cs:initdrive]
jc error2 jc error2
call [print],offset msg_ok2 call [cs:print],offset msg_ok2
call [execfile],offset shell call [cs:execfile],offset shell
error2: error2:
call [print],offset msg_error2 call [cs:print],offset msg_error2
call bioswaitkey call bioswaitkey
jmp far 0FFFFh:0000h jmp far 0FFFFh:0000h