Skip to content

Commit

Permalink
Messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Chourdakis committed Jan 25, 2019
1 parent 69d70de commit a04088d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
14 changes: 10 additions & 4 deletions code16.asm
Original file line number Diff line number Diff line change
Expand Up @@ -582,10 +582,6 @@ end if

push cs
call EnterUnreal
; Real mode test
mov ax,0900h
mov dx,rm1
int 21h

if TEST_MULTI > 0

Expand Down Expand Up @@ -642,8 +638,13 @@ thrtest FromThread6,thr6

end if

; Real mode test
mov ax,0900h
mov dx,rm1
int 21h

; PM mode test

mov ax,DATA32
mov gs,ax
cmp [gs:d32],1
Expand Down Expand Up @@ -682,6 +683,11 @@ vmxshow vmt1,vmm1
vmxshow vmt2,vmm2
vmxshow vmt3,vmm2


mov ax,0900h
mov dx,crlf
int 21h

; A20 off if enabled

cmp [ds:a20enabled],1
Expand Down
10 changes: 5 additions & 5 deletions data16.asm
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,18 @@ vmt1 db 0 ; existence
vmt2 db 0 ; protected mode guest
vmt3 db 0 ; unrestricted guest

vmm1 db "VMX Exists, OK, ","$"
vmm2 db "VMX Launch VM OK",0dh,0ah,"$"
vmm1 db "[VMX] ","$"
vmm2 db "[VMX Launch] ","$"

; --------------------------------------- 16 bit mutexes ---------------------------------------
mut_ipi db 0xFF
mut_1 db 0xFF
mut_i21 db 0xFF

; --------------------------------------- Messages ---------------------------------------
rm1 db "Real mode test, OK",0dh,0ah,"$"
pm1 db "Protected mode test, OK",0dh,0ah,"$"
lm1 db "Long mode test, OK",0dh,0ah,"$"
rm1 db "[Real mode] ","$"
pm1 db "[Protected mode] ","$"
lm1 db "[Long mode] ","$"
ap1 db "Apic 1 found ","$"
ap2 db "Apic 2 found ","$"

Expand Down
Binary file modified entry.exe
Binary file not shown.
1 change: 1 addition & 0 deletions guest16.asm
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ StartVM:
; Remember we used a protected mode selector to get here?
; Jump to a real mode segment now so CS gets a proper value


nop
nop

Expand Down

0 comments on commit a04088d

Please sign in to comment.