Assembly Division [duplicate]
问题 This question already has an answer here: Why should EDX be 0 before using the DIV instruction? 2 answers In my program, a hex number is divided by ten and the remainder is checked. First division is performed well; however, after the second division, the program goes wrong. I am new to assembly, and I couldn't find where the problem is... Here is the code segment: ORG 1000 MOV AX, 0x04B4 (1204 decimal value ) MOV BX, 0x000A ( 10 decimal value ) MOV CX, 0x0000 DIV BX ( After this part, AX is