Take:CPU has a special register name program counter (PC) (also known as the instruction pointer) part of the internal storage. CPU memory address stored in the program (PC) to the memory address (3). This process can be displayed is "[3] < = [computer]"When reading value in Apple computers, the value of the computer will increase as it is a guide. If the instruction length is 32 bits, bad is 4, 4 bytes of display. This step can display "[Computer] < = [Computer] + 4". If the length is 64 bit instruction, will add 88 byte display.It is necessary to mention some apple CPU did not build it. In this case, the computer will increase every step, the computer can use the direct address, rather than deal with these three monthsIn this step the address of the full address is stored in March to set the address bus data stored in memory address if it is to be helped because the CPU data bus and the control bus. This data is stored from memory in the buffer memory (MBR register) (also known as the memory data register (MDR)) processor. This may show the "MBR [] [] [] < = 3"Can be used to guide, today was brought to the MBR command processor (IR). This step can be labeled "[] [] = IR < mbr"Take the registration the appropriate processor in accordance with the instructions, take steps. Step is to participate in the most of the manual.Decrypt:At this step, the registration (IR) guide checks the work that requires code recognition activities (opcode). If any data from the memory plug requires execution activity, they are loaded into the register's help data bus address bus, data bus and control has been mentioned.Execute:The control unit (elbow) then decodes the information by a signal to the different unit processors mentioned previously, and some activities may involve computing algorithms by allowing the ALU processor. In the case of data from the register, this gives the ALU and a new value written by the ALU after the completion of the registration process. This is a time step, respectively, from the execution phase, known as the "write" phase. According to the instructions to perform, it can change the program's time countdown in a different place.Look at the script, for example, between two values. This can be written using the x86 language in the combination of manual, like here:Mobile R0, AR0 bar, BMobile C, R0"Mobile R0", mobile value is stored in a memory address register in the R0 time, results in the following activities:[3] < = [Computer][Computer] < = [Computer] + 4MBR = [] [] [] [3IR < = [] [] MBRIR < = [ancient][3] < = [A]MBR = [] [] [] [3R0 < = [] [] MBRAdd R0, B ", let more Alu instruction register values are stored in the B memory address and store the result in register by R0 and R0, results in the following activities:[3] < = [Computer][Computer] < = [Computer] + 4MBR = [] [] [] [3IR < = [] [] MBRIR < = [ancient][3] < = [B]MBR = [] [] [] [3Alu R0 < = []Alu MBR < = []Alu R0 < = []"Mobile C, R0", the value of the mobile memory stored in the register address R0 memory letter C, results in the following activities:[3] < = [Computer][Computer] < = [Computer] + 4MBR = [] [] [] [3IR < = [] [] MBRIR < = [ancient][3] < R0 = []MBR = [] [] [] [3MBR [C] < = []
đang được dịch, vui lòng đợi..