Cov lus qhia twg yog siv rau kos npe sib npaug?
Cov lus qhia twg yog siv rau kos npe sib npaug?

Video: Cov lus qhia twg yog siv rau kos npe sib npaug?

Video: Cov lus qhia twg yog siv rau kos npe sib npaug?
Video: Npau Suav li no Txhob coj mus tham qhia luag lwm tus 2024, Hlis ntuj nqeg
Anonim

IMUL kev qhia nrog ntau operands yuav ua tau siv rau ib qho kos npe los yog tsis tau kos npe kev sib npaug , txij li cov khoom 16-ntsis yog tib yam nyob rau hauv ob qho tib si.

Ib yam li ib tug yuav nug, MUL kev qhia yog dab tsi?

MUL Kev Qhia . Cov MUL (unsigned multiply) kev qhia multiplies 8-, 16-, lossis 32-ntsis ua haujlwm los ntawm AL, AX, lossis EAX. Cov kev qhia hom ntawv yog: MUL reg 8/mem 8 MUL reg16/mem16 MUL reg32/mem32. Ib qho operand yog tus multiplier.

Tsis tas li ntawd, qhov txawv ntawm MUL thiab Imul yog dab tsi? Dab tsi yog qhov yooj yim Qhov sib txawv ntawm MUL thiab IMUL kev qhia hauv 8086 microprocessor? mul yog siv rau unsigned multiplication whereas ua imul yog siv rau kos npe sib npaug.

Ib sab saum toj no, puas muaj kev qhia ntau ntxiv?

Nyob ntawd yog ob cov lus qhia rau kev sib npaug binary cov ntaub ntawv. MUL ( Ntau ) kev qhia tuav cov ntaub ntawv tsis tau kos npe thiab IMUL (Integer Ntau ) tuav cov ntaub ntawv kos npe. Ob leeg cov lus qhia cuam tshuam rau tus chij nqa thiab Tshaj.

Vim li cas Left Shift yuav muab faib ua 2?

Txoj cai hloov tus lej binary yuav faib a tus lej los ntawm 2 thiab sab laug hloov cov lej yuav muab ntau nws los ntawm 2 . Qhov no yog vim 10 yog 2 hauv binary. Kev sib ntau a tus lej los ntawm 10 (xws li binary lossis decimal lossis hexadecimal) ntxiv rau 0 rau tus lej (uas ua tau zoo sab laug hloov ).

Pom zoo: