Computers/Computer Architecture 4

lecture3. Machine instructions

REPRESENTING INSTRUCTIONS IN THE COMPUTER★MIPS fields - 타입에 따라 bit 나눠쓰는게 다르다- 한 명령어당 32bit를 필요로 하기 때문에 32bit를 분할하여 씀- 어떻게 변환되는지가 중요하다! ▶R-type(Register Type) * op : basic operation of the instruction (opcode)* rs : the first register source operand* rt : the second register source operand* rd : the register destination operand / it gets the result of the operation* shamt : shift amount* funct(fu..

lecture2. MIPS Instruction

INTRO. * Instruction 명령어 Opcode + operand specifier * Instruction set 명령어 전체를 아우르는 말* RISC- ex. mips* CISC- 복잡한 일을 한 문장에 하게 되어 장문인 경우가 많음- ex. intel * 오늘날은 RISC와 CISC의 구분이 모호함CPU는 "단순하면서도 성능이 좋게 되는 것"을 목적으로 함 OPERATION OF THE COMPUTER HARDWARE. * add a, b, c a = b + c* sub a, b, c a = b - c EX) f = ( g + h ) - ( i + j ) add t0, g , h t0 = g + h add t1, i , j t1 = i + j sub f , t0 , t1 f = t0 - t..