mirror of
https://github.com/realmicrosoft/windows.git
synced 2024-08-14 22:46:44 +00:00
window
This commit is contained in:
parent
b7c247e6cc
commit
4870d85d5e
9 changed files with 103 additions and 2 deletions
2
assembly/.gitignore
vendored
Normal file
2
assembly/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
# output file
|
||||
boot
|
32
assembly/boot.asm
Normal file
32
assembly/boot.asm
Normal file
|
@ -0,0 +1,32 @@
|
|||
[bits 16]
|
||||
[org 0x7c00]
|
||||
|
||||
|
||||
xor ax, ax
|
||||
mov ds, ax
|
||||
|
||||
; set graphics mode
|
||||
mov ax, 00h
|
||||
mov ah, 0x00
|
||||
int 0x10
|
||||
|
||||
; write string to screen
|
||||
mov bh, 0
|
||||
mov bl, 0b00001111
|
||||
mov al, 1
|
||||
mov ah, 13h
|
||||
mov cx, WINDOWS_STR_END - WINDOWS_STR
|
||||
mov dl, 0
|
||||
mov dh, 0
|
||||
push cs
|
||||
pop es
|
||||
mov bp, WINDOWS_STR
|
||||
int 0x10
|
||||
|
||||
|
||||
|
||||
WINDOWS_STR: db 'microsoft windows', 0
|
||||
WINDOWS_STR_END:
|
||||
|
||||
times 510-($-$$) db 0
|
||||
dw 0xAA55
|
Loading…
Add table
Add a link
Reference in a new issue