================================================================== MikeOS -- The Mike Operating System kernel MATH ROUTINES ==================================================================


os_bcd_to_int

Converts binary coded decimal number to an integer

Example:

mov al, 00010110b            ; 0001 0110 = 16(decimal) or 0x10h in BCD
call os_bcd_to_int 
     
; ax now contains the 16 bit integer 00000000 00010000b

os_long_int_negate

Multiply value in DX:AX by -1

Example:

mov dx, 0x01
mov ax, 0x45
call os_long_int_negate

; DX now contains 0xFFFF
; and AX 0xFEBB

RETURN TO MAIN PAGE