.


:




:

































 

 

 

 


,




 

- , .. , ( ), .

, , HLLO. , DOS. , , , , DOS. , ( ).

-, BIOS. , HELLO BIOS lOh, . WriteMsg , .3.4, , , . BIOS DOS 1,07 . 1,02 . , 1,05 . BIOS, , .

 

WriteMsg PROC NEAR

mov , DX

mov , OEh

mov ,

Next: mov AL, []

crnp AL. '$'

je Quit

int lOh

inc

jmp next

Quit: ret

WriteMsg ENDP

 

.3,4. BIOS DOS.

 

- , -, . - . , , , -, - . .

, , , - 378h 37Fh. , , LPTI, - 37Ah 12, 8, OUT:

 

mov DX,37Ah

mov AL, 12

out DX,AL

mov CX.1000

Delay: dec CX

jnz Delay

mov AL, 8

out DX,AL

 

379h. , F7h, IN, , :

mov DX,379h

in AL.DX

cmp AL,OF7h

je uit

 

, - , , .

-, . . . 3.5 WriteMsg HELLO, ; B800h ( , BOOOh ).

 

WriteMsg PROC NEAR

mov , DX

mov AX, OBSOOh

mov ES, AX

mov Dl, 0

mov AH, 7

Next: mov AL, []

cmp AL, '$'

je Quit

mov ES: [Dl], AX

add Dl. 2

inc

jmp Next

Quit: ret

WriteMsg ENDP

 

. 3.5. .

 





:


: 2015-10-01; !; : 547 |


:

:

: , .
==> ...

1483 - | 1457 -


© 2015-2024 lektsii.org - -

: 0.011 .