first example
This commit is contained in:
41
1/boot.asm
Normal file
41
1/boot.asm
Normal file
@@ -0,0 +1,41 @@
|
||||
[BITS 16]
|
||||
[ORG 0x7c00]
|
||||
|
||||
start:
|
||||
xor ax,ax
|
||||
mov ds,ax
|
||||
mov es,ax
|
||||
mov ss,ax
|
||||
mov sp,0x7c00
|
||||
|
||||
PrintMessage:
|
||||
mov ah,0x13
|
||||
mov al,1
|
||||
mov bx,0xa
|
||||
xor dx,dx
|
||||
mov bp,Message
|
||||
mov cx,MessageLen
|
||||
int 0x10
|
||||
|
||||
End:
|
||||
hlt
|
||||
jmp End
|
||||
|
||||
Message: db "Hello"
|
||||
MessageLen: equ $-Message
|
||||
|
||||
times (0x1be-($-$$)) db 0
|
||||
|
||||
db 80h
|
||||
db 0,2,0
|
||||
db 0f0h
|
||||
db 0ffh,0ffh,0ffh
|
||||
dd 1
|
||||
dd (20*16*63-1)
|
||||
|
||||
times (16*3) db 0
|
||||
|
||||
db 0x55
|
||||
db 0xaa
|
||||
|
||||
|
||||
Reference in New Issue
Block a user