Hom kev qhia ncaj qha thiab tsis ncaj yog dab tsi?
Hom kev qhia ncaj qha thiab tsis ncaj yog dab tsi?

Video: Hom kev qhia ncaj qha thiab tsis ncaj yog dab tsi?

Video: Hom kev qhia ncaj qha thiab tsis ncaj yog dab tsi?
Video: lub hom phiaj loj tshaj plaws ntawm kev ntseeg yog dab tsi 2024, Plaub Hlis Ntuj
Anonim

Qhov sib txawv ua ntej ntawm cov direct thiab indirect chaw nyob hom yog in hom ncaj qha tus chaw nyob teb hais ncaj qha mus rau lub cim xeeb qhov chaw uas cov ntaub ntawv khaws cia. Raws li kev tawm tsam, hauv hom tsis ncaj , cov chaw nyob teb hais txog cov npe ua ntej, uas yog tom qab ntawd coj mus rau qhov chaw nco.

Tsis tas li ntawd, kev hais ncaj qha thiab tsis ncaj yog dab tsi?

Direct Chaw Nyob Indirect Chaw Nyob . Yog tias Chaw nyob ib feem muaj chaw nyob ntawm ib tug operand, ces cov lus qhia yog hais tias muaj a chaw nyob ncaj qha . Yog tias chaw nyob cov khoom ntawm cov lus qhia code yog siv los ua qhov tseeb operand, nws yog termed li indirect chaw nyob . Yuav tsum muaj ob lub cim xeeb xa mus rau cov ntaub ntawv.

Kuj Paub, dab tsi yog indirect chaw nyob hom nrog piv txwv? Indirect Chaw Nyob . Indirect chaw nyob yog ib txoj hauv kev uas qhov chaw nyob qhia tias lo lus nco lossis sau npe tsis muaj tus operand tab sis qhov chaw nyob ntawm tus operand. Rau piv txwv : 1) LOAD R1, @100 Load cov ntsiab lus ntawm lub cim xeeb chaw nyob khaws cia ntawm lub cim xeeb chaw nyob 100 mus rau npe R1.

Tsis tas li ntawd, hom kev hais lus tsis ncaj yog dab tsi?

Indirect chaw nyob hom siv cov lus qhia uas suav nrog qhov chaw nyob ntawm tus nqi uas taw qhia rau qhov chaw nyob zoo ntawm tus operand. Cov lus qhia taw qhia rau ib qho chaw sau npe lossis qhov chaw nco, thiab qhov chaw yuav muaj qhov chaw nyob zoo ntawm tus neeg ua haujlwm hauv lub cim xeeb.

Dab tsi yog qhov txawv ntawm hom kev hais ncaj qha thiab tam sim no?

Hais txog hom muaj kev txhawj xeeb txog yuav ua li cas tus operand nyob ntawm CPU. Qhov chaw nyob tam sim ntawd yog siv thaum twg tus nqi ntawm tus operand paub thaum lub sij hawm qhov kev pab cuam sau. Hauv ncaj qha , kuj hu ua absolute, hais lus lub operand teb ntawm cov lus qhia muab cov chaw nyob ntawm tus operand hauv nco.

Pom zoo: