Sunteți pe pagina 1din 4

jmp near start

boot_id
boot_b_kl
boot_SinCL
boot_resS
boot_FATs
boot_rootEl
boot_SinDSK
boot_discr
boot_SinFAT
boot_SinCIL
boot_heads
boot_hidS
boot_countS
boot_sign
boot_SN
boot_label
boot_IDFS
start:

db
dw
db
dw
db
dw
dw
db
dw
dw
dw
dd
dw
db
dd
db
db

0,0,0,0,0,0,0,0
512
1
1
2
224
2880
0F0h
9
18
2
0
0
0
0
255,255,0,0,0,0,0,0,0,0,0
1,0,0,0,0,0,0,0

[ORG 0]
jmp 07C0h:_start

;Goto segment 07C0

msg1
lmsg1

db 'Laboratorul'
EQU $-msg1

msg2
lmsg2

db 'nr1'
EQU $-msg2

msg3
lmsg3

db 'SOMIPP'
EQU $-msg3

msg4
lmsg4

db 'Cobilas'
EQU $-msg4

msg5
lmsg5

db 'Adrian'
EQU $-msg5

msg6
lmsg6

db 'Exempu de text nr1'


EQU $-msg6

msg7
lmsg7

db 'Exempu de text nr2'


EQU $-msg7

msg8
lmsg8

db
EQU

'Exempu de text nr3'


$-msg8

color db 09,07,05,02,04,06
space db 57,46,35,20,10,5
_start:

; Update the segment registers


mov ax, cs
mov ds, ax
mov es, ax
mov ax, 03
int 10h

;curatirea ecranului

mov si,0
a:
call printfirstrow
call printallrow
call interrup
call clear
call interrup
inc si
cmp si,6
je b
jne a
b:
mov si,0
jmp a
printfirstrow:
mov
mov
string)
mov
mov
mov
mov
mov
mov
int

ah,13h
al,1

;numarul functiei
;write mode (advance cursor, ASCII

bh,0
bl,[color+si]
cx,lmsg1
dh,8
dl,25
bp,msg1
10h

;numarul paginii video active


;attribute (blue on black)
;string length
;rindul de afisare
;coloana de afisare

mov
mov
string)
mov
mov
mov
mov
mov
mov
int

ah,13h
al,1

;numarul functiei
;write mode (advance cursor, ASCII

bh,0
bl,[color+si]
cx,lmsg2
dh,8
dl,37
bp,msg2
10h

;numarul paginii video active


;attribute (blue on black)
;string length
;rindul de afisare
;coloana de afisare

mov ah,13h

;numarul functiei

mov
string)
mov
mov
mov
mov
mov
mov
int

al,1

;write mode (advance cursor, ASCII

bh,0
bl,[color+si]
cx,lmsg3
dh,8
dl,41
bp,msg3
10h

;numarul paginii video active


;attribute (blue on black)
;string length
;rindul de afisare
;coloana de afisare

mov
mov
string)
mov
mov
mov
mov
mov
mov
int

ah,13h
al,1

;numarul functiei
;write mode (advance cursor, ASCII

bh,0
bl,[color+si]
cx,lmsg4
dh,8
dl,48
bp,msg4
10h

;numarul paginii video active


;attribute (blue on black)
;string length
;rindul de afisare
;coloana de afisare

mov
mov
string)
mov
mov
mov
mov
mov
mov
int

ah,13h
al,1

;numarul functiei
;write mode (advance cursor, ASCII

bh,0
bl,[color+si]
cx,lmsg5
dh,8
dl,56
bp,msg5
10h

;numarul paginii video active


;attribute (blue on black)
;string length
;rindul de afisare
;coloana de afisare

ret
printallrow:
mov
mov
string)
mov
mov
mov
mov
mov
mov
int

ah,13h
al,1

;numarul functiei
;write mode (advance cursor, ASCII

bh,0
bl,09
cx,lmsg6
dh,10
dl,[space+si]
bp,msg6
10h

;numarul paginii video active


;attribute (blue on black)
;string length
;rindul de afisare
;coloana de afisare

mov
mov
string)
mov
mov
mov

ah,13h
al,1

;numarul functiei
;write mode (advance cursor, ASCII

bh,0
bl,09
cx,lmsg7

;numarul paginii video active


;attribute (blue on black)
;string length

mov
mov
mov
int
mov
mov
string)
mov
mov
mov
mov
mov
mov
int

dh,12
dl,[space+si]
bp,msg7
10h

;rindul de afisare
;coloana de afisare

ah,13h
al,1

;numarul functiei
;write mode (advance cursor, ASCII

bh,0
bl,09
cx,lmsg8
dh,14
dl,[space+si]
bp,msg8
10h

;numarul paginii video active


;attribute (blue on black)
;string length
;rindul de afisare
;coloana de afisare

ret
interrup:
mov cx,000ah
mov dx,0000h
mov ah,86h
int 15h
ret
clear:
mov ax, 03
int 10h
ret
times 510-($-$$) db 0
dw 0AA55h

;curatirea ecranului

S-ar putea să vă placă și