Usermode can now call system functions (currently get key, gfx mode) with INT 21H, Test switch to graphics mode is done from Usermode

This commit is contained in:
Lucia Ceionia
2023-02-02 00:50:16 -06:00
parent 679eb8cf57
commit 02f03d2224
4 changed files with 136 additions and 32 deletions

View File

@@ -6,6 +6,10 @@ mov dword [0xb8004], 0x0f000f00 | 'e' | 'r' << 16
mov dword [0xb8008], 0x0f000f00 | 'm' | 'o' << 16
mov dword [0xb800C], 0x0f000f00 | 'd' | 'e' << 16
mov word [0xb8010], 0x0f00 | '!'
mov eax, 0 ; command = 00, get key
int 0x21 ; OS call
mov eax, 0x00030010 ; command = 10, set video mode 3
int 0x21 ; OS call
mov edi, 0xA0000
xor eax, eax
.loop: