Assembler



         

- 6


00CD 8A 07 MOV AL,[BX] ;
00CF 51 PUSH CX
00D0 B1 04 MOV CL,4
00D2 D2 E8 SHR AL,CL ;
00D4 59 POP CX
00D5 E8 00DF R CALL PRINT_NYBBLE ;
00D8 8A 07 MOV AL,[BX] ;
00DA E8 00DF R CALL PRINT_NYBBLE ;
00DD 4B DEC BX ;
00DE C3 RET
00DF PRINT_BYTE ENDP
 
;----- AL
 
00DF PRINT_NYBBLE PROC NEAR
00DF 24 0F AND AL,0FH ;
00E1 04 30 ADD AL,'0' ;
00E3 AA STOSB ;
00E4 C3 RET
00E5 PRINT_NYBBLE ENDP
00E5 CODE ENDS
END
 
. 7.25 ()
 

. 10

Log10(X) = Log2(X)/Log2(10)
 
,
. ,
10X,