Assembler






BIOS.
, , .
, K4,
.
KB_INT .
, ,
. ,
, . BIOS
.
Microsoft (R) Macro Assembler Version 5.00 1/1/80 04:06:15
. 9.3 Page 1-1
 
PAGE ,132
TITLE . 9.3
0000 STACK SEGMENT STACK
0000 0040[ DW 64 DUP (?)
????
]
0080 STACK ENDS
0000 CODE SEGMENT
ASSUME CS:CODE
0000 0000 LITTLE DW 0
0002 0000 BIG DW 0
0004 COUNT PROC FAR
0004 1E PUSH DS ;
0005 2B C0 SUB AX, AX
0007 50 PUSH AX
0008 ADD_ONE:
0008 2E: FF 06 0000 R INC LITTLE
000D 75 05 JNZ STILL_LOW
000F 2E: FF 06 0002 R INC BIG
0014 STILL_LOW:
0014 B4 01 MOV AH, 1 ;
0016 CD 16 INT 16H
0018 74 EE JZ ADD_ONE ; ,
001A B4 00 MOV AH, 0
001C CD 16 INT 16H ;
001E 3C 20 CMP AL, ' ' ;
0020 75 E6 JNZ ADD_ONE ; ,
0022 CB RET ;
0023 COUNT ENDP
0023 CODE ENDS
END COUNT
 
. 9.3
 
REPNE SCASB, K16, BIOS

. BIOS
,
, KB_FLAG.
,
, ,
.
 
BIOS
ASCII. ,
BIOS BX
ASCII.
(
). XLAT
ASCII. , BIOS

CONTROL ( K63).
 
ERROR_BEEP - ,
; , BIOS
, , .
,
,
, .
BIOS .
- ,
.
, , . 18
,
. ,

.