我在添加到16位乘法乘積時遇到問題。我想比如一年繁殖截至2015年,由365這樣做,我從DX:AX寄存器移動到單個32位寄存器
mov dx, 0 ; to clear the register
mov ax, cx ; cx holds the year such as 2015
mov dx, 365 ; to use as multiplier
mul dx ; multiply dx by ax into dx:ax
檢查登記後,我得到了正確的解決方案,但有沒有辦法讓我可以在這個產品存儲到單個寄存器。我想爲產品添加單獨的值,因此我想將此產品移到單個32位寄存器中。 感謝您的幫助!