Assembler



         

- 3


0019 74 06 JE MAIN_RETURN
001B E8 0022 R CALL PRINT ;
001E 43 INC BX
001F EB F3 JMP PRINT_LOOP ;
0021 MAIN_RETURN:
0021 CB RET
0022 MAIN ENDP
 
;----- AL
 
0022 PRINT PROC NEAR
0022 BA 0378 MOV DX, BASE ;
0025 EE OUT DX, AL ;
0026 42 INC DX ;
0027 WAIT_BUSY:
0027 EC IN AL, DX ;
0028 A8 80 TEST AL, 80H ;
002A 74 FB JZ WAIT_BUSY ;
002C 42 INC DX
002D B0 0D MOV AL, 0DH ;
002F EE OUT DX, AL
0030 B0 0C MOV AL, 0CH ;
0032 EE OUT DX, AL
0033 C3 RET
0034 PRINT ENDP
0034 CODE ENDS
END MAIN
 
. 8.15
3BEH ( 37AH)
. ,

8259, 1.
, ..
.
,

(
). ,
.