Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在 Windows 命令提示符下使用 DEBUG 将 5 位小数相乘,但我担心我已经很遥远了。我的程序得到十进制值 1303。什么时候应该是 4320。小数点是 15、12、4、2、3。
mov al, 15 mov bl, 12 mov bh, 4 mov cl, 2 mov ch, 3 mul ax, bl mul ax, bh mul ax, cl mul ax, ch aam
您正在执行字节 x 字节相乘,显然中间结果需要的不仅仅是一个字节。您还乘以 AH 而不是 CH。