IT/운영체제
명령어 실행(Instruction Execution)
다날92
2017. 12. 30. 21:10
Instruction Execution 2가지 단계를 가진다.
1. fetches
: processor는 메모리로부터 명령어를 가지고온다.
2. executes(실행하다)
: processor는 각 각의 명령어를 실행한다.
<Instruction Cycle>
■ Instruction Fetch and Execute
- processor는 메모리로부터 명령어를 가지고 온다.(fetch)
- Program counter(PC)는 다음 fetch될 명령어 주소를 가진다.
- PC는 fetch후 1 증가한다.
■ Instruction Register
- fetch된 명령어는 명령어 레지스터안에 위치한다.
■ 가상머신의 특징
- opcode는 processor가 수행할 operation(연산)을 정의한다.