================================================================== MikeOS -- The Mike Operating System kernel MATH ROUTINES ==================================================================
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
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