How to compute the result of 8086 IDIV instruction?
问题 Instructions (numbers in hex): mov ax, 0832 mov cx, 008a idiv cl Documentation says: when operand is a byte: AL = AX / operand AH = remainder (modulus) Source: http://www.electronics.dit.ie/staff/tscarff/8086_instruction_set/8086_instruction_set.html#IDIV As far as I understand, I have to check if the leftmost bit isn't 1: 0832 -> 0000.1000.0011.0010 008a -> 0000.0000.1000.1010 Since there's no 1's in highest bits, by using calculator I should get: 0832 mod 008a as remainder and 0832 div 008a