Documente Academic
Documente Profesional
Documente Cultură
Raport
La Sisteme de Operare: Mecanisme interne i principii de proiectare
Lucrarea de laborator Nr.1
A efectuat: A verificat:
st.gr. TI-143Fiodor Alexandru lect. univer. Colesnic V.
Chiinu 2016
Obiective:
Condiii:
;**************************************
[BITS 16]
ORG 0
INT 0x18
TIMES 510-($-$$) DB 0
DW 0xAA55
;**************************************
Sarcina:
#make_boot#
==========
;clear
=================
PrintMsg MACRO line, msg, color, col
mov al, 1
mov bh, 0
mov bl, color
mov dl, col
mov dh, line
push cs
pop es
mov bp, offset msg
mov ah, 13h
int 10h
ENDM
Wait_t MACRO
LOCAL delay, delay2
mov si, 0
count dw 0
coll db 34
coll2 db 39
var db 6
delay:
nop
inc si
cmp si,10
jnz delay
inc count
mov si, 0
cmp count, 6
jz delay2
clear2
mov cx, firstpart
PrintMsg 9, msg0, 11, coll
mov cx, secondpart
PrintMsg 9, msg00, 11, coll2
mov cx, firstpart
PrintMsg 10, msg1, 2, coll
mov cx, secondpart
PrintMsg 10, msg11, 2, coll2
mov cx, firstpart
PrintMsg 11, msg2, 3, coll
mov cx, secondpart
PrintMsg 11, msg22, 3, coll2
dec coll
dec coll2
cmp coll, 0
jz iterate
jmp delay
iterate:
mov coll, 35
mov coll2, 40
jmp delay
delay2:
clear
clear
mov cx, firstpart
add cx, secondpart
PrintMsg 12, msg3, var, 35
mov count, 0
inc var
cmp var,12
jz switch
jmp delay
switch:
mov var, 5
jmp delay
ENDM
clear MACRO
PUSHA
MOV AH, 7
MOV AL, 0
MOV CL, 0
MOV CH, 12
MOV DL, 80
MOV DH, 40
INT 10h
POPA
ENDM
clear2 MACRO
PUSHA
MOV AH, 7
MOV AL, 0
MOV CX, 0
MOV DL, 80
MOV DH, 11
INT 10h
POPA
ENDM
firstpart dw ?
secondpart dw ?
mov cx, size0 - offset msg0
jmp size0
msg0 db 'Mesaj'
size0:
PrintMsg 9, msg0, 11, 35
mov firstpart, cx
mov cx, size00 - offset msg00
jmp size00
msg00 db ' 0'
size00:
PrintMsg 9, msg00, 11, 40
mov secondpart, cx
Wait_t
db 510-($-clrs) dup(0)
dw 0AA55h
Bibliogfie: