Sub ua haujlwm li cas hauv kev sib dhos?
Sub ua haujlwm li cas hauv kev sib dhos?

Video: Sub ua haujlwm li cas hauv kev sib dhos?

Video: Sub ua haujlwm li cas hauv kev sib dhos?
Video: 5 yam zoo ntawm kev sib deev 2024, Kaum ib hlis
Anonim

Cov SUB kev qhia rho tus nqi ntawm Operand2 lossis imm12 los ntawm tus nqi hauv Rn. Hauv qee qhov xwm txheej, cov sib dhos tuaj yeem hloov tau ib qho kev qhia rau lwm qhov.

Sib tham, sub instruction yog dab tsi?

SUB Instruction . Cov SUB instruction ua qhov kev rho tawm ntawm thawj qhov chaw sau npe cov ntsiab lus los ntawm qhov thib ob. sau npe cov ntsiab lus, thiab khaws cov txiaj ntsig hauv qhov chaw sau npe. Nws syntax yog: SUB $destination register qhov chaw nyob, $ thawj qhov chaw sau npe qhov chaw nyob, $ thib ob qhov chaw sau npe qhov chaw nyob.

Tom qab, lo lus nug yog, dab tsi yog sub hauv microprocessor? Hauv 8085 Kev qhia, SUB yog mnemonic uas sawv cev rau 'SUBtract contents of R los ntawm Accumulator. Ntawm no R sawv cev rau ib qho ntawm cov npe hauv qab no, lossis qhov chaw nco M taw qhia los ntawm HL khub.

Ib yam li ib tug yuav nug, yuav ua li cas ntxiv ua haujlwm hauv kev sib dhos?

Cov ntxiv kev qhia ntxiv ua ke nws ob lub operands, khaws cia qhov tshwm sim hauv nws thawj operand. Nco ntsoov, txawm tias ob qho tib si operands tuaj yeem sau npe, feem ntau ntawm ib qho operand yuav yog qhov chaw nco. Cov inc qhia increments cov ntsiab lus ntawm nws operand los ntawm ib tug. Cov kev qhia dec decrements cov ntsiab lus ntawm nws cov operand los ntawm ib tug.

MOV yog dab tsi nyob rau hauv cov lus sib dhos?

mov yog x86 lus sib dhos kev qhia, nws txhais tau tias kom txav cov ntaub ntawv ntawm cov npe thiab nco.

Pom zoo: