Home Tekniikka Koneen ohjeet

Koneen ohjeet



MachineinstructionsareinstructionsthattheCPUcandirectlyrecognizeandexecute,andtheirmanifestationsarebinarycodes.Amachineinstructionisusuallycomposedofanopcodeandanoperand.Theopcodeindicatestheoperationtobecompletedbytheinstruction,thatis,thefunctionoftheinstruction,andtheoperandindicatestheobjectinvolvedintheoperation,andthelocationwheretheresultoftheoperationisstored.

BecausemachineinstructionsarecloselyrelatedtoCPUs,differenttypesofCPUscorrespondtodifferentmachineinstructions,andtheirinstructionsystemsareoftenverydifferent.ButforthesameseriesofCPUs,inordertomeetthegoodcompatibilitybetweenvariousmodels,itisnecessarytodo:theinstructionsystemofthenewgenerationCPUmustincludetheinstructionsystemofthepreviousCPUofthesameseries.OnlyinthiswaycanthevariousprogramspreviouslydevelopedrunnormallyonthenewgenerationofCPUs.

Machinelanguageisusedtodirectlydescribemachineinstructions,rulesforusingmachineinstructions,etc.ItistheonlylanguagethattheCPUcandirectlyrecognize,thatis,theCPUcandirectlyexecuteprogramsdescribedinmachinelanguage.

Writingprogramsinmachinelanguageistheworkofearlyprofessionalandtechnicalpersonnelwhohavebeenrigorouslytrained.Ordinaryprogrammersaregenerallydifficulttodo.Moreover,programswritteninmachinelanguagearenoteasytoread,havehigherrorrates,andaredifficulttomaintain.Cannotdirectlyreflectthebasicideaof​​usingcomputerstosolveproblems.

Becauseoftheaboveinconveniencesofwritingprogramsinmachinelanguage,almostnoprogrammerswriteprogramslikethis.

This article is from the network, does not represent the position of this station. Please indicate the origin of reprint
TOP