Imul yog dab tsi?
Imul yog dab tsi?

Video: Imul yog dab tsi?

Video: Imul yog dab tsi?
Video: AGASOBANUYE KARENZE ROCKY & YANGA 2021 HD GAKUBITA KUBWENGE 2024, Hlis ntuj nqeg
Anonim

Cov IMUL (kos npe sib npaug) kev qhia ua tau kos npe rau cov lej sib npaug. Nws muaj tib lub syntax thiab siv tib lub operands raws li MUL kev qhia.

Ib yam li ntawd, tib neeg nug, Imul Assembly yog dab tsi?

Kev piav qhia. Ib leeg-operand daim ntawv ntawm ua imul executes ib tug kos npe multiply ntawm ib byte, lo lus, los yog ntev los ntawm cov ntsiab lus ntawm AL, AX, los yog EAX sau npe thiab khaws cov khoom nyob rau hauv lub AX, DX: AX los yog EDX: EAX sau npe feem.

Dab tsi yog qhov txawv ntawm Imul thiab MUL cov lus qhia nrog piv txwv? Cov MUL kev qhia multiplies unsigned tus lej. IMUL multiplies tus lej kos npe. Rau ob leeg cov lus qhia , ib yam yuav tsum yog hauv accumulator sau npe (AL rau 8-ntsis tooj, AX rau 16-ntsis tooj, EAX rau 32-ntsis tooj). Cov nram qab no piv txwv ua piv txwv kev sib npaug ntawm tus lej tsis tau kos npe thiab kos npe.

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.

MUL ua haujlwm li cas hauv kev sib dhos?

Cov MUL /IMUL Kev Qhia The MUL (Multiply) kev qhia tuav cov ntaub ntawv tsis tau kos npe thiab IMUL (Integer Multiply) tuav cov ntaub ntawv kos npe. Ob qho lus qhia cuam tshuam rau Tus Cwj Pwm thiab Tshaj Tawm.

Pom zoo: