일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- control
- CSS
- computer
- web
- Algorithm
- while
- Java
- javascript
- DATAPATH
- react
- MIPS
- architecture
- Linux
- data structure
- instruction
- MacOS
- python
- DB
- html
- DoM
- Class
- for
- system
- php
- XML
- mysql
- Pipelining
- DS
- function
- github
- Today
- Total
목록format (3)
YYYEJI
OP code Function code Instruction format ↑↑↑ 위에 표들을 참고해서 문제를 푸시면 됩니다 ↑↑↑ Loop: add $t1, $s3, $s3 add $t1, $t1, $t1 add $t1, $s3, $s6 lw $t0, 0($t1) bne $t0, $s5, Exit add $s3, #s3, #s4 j Loop Exit: Q1) add $t1, $s3, $s3 0 19 19 9 0 32 Binary: 000000 10011 10011 01001 00000 100000 Hexadecimal: 0x02734820 Q2) add $t1, $st1, $t1 0 9 9 9 0 32 Q3) add $t1, $t1, $s6 0 9 22 9 0 32 Q4) lw $t0, 0($t1) 35..
MIPS에는 3개의 instruction format이 있습니다. ① R type - 6field ② I type - 4field ③ J type - 2 field Instruction format을 살펴보기 전에 용어부터 살펴봅시다. R type에서는 ✓ op - operation code (opcode) ✓ rs - first source operand ✓ rt - second source operand ✓ rd - destination operand ✓ shamt - shift amount ✓ funct - funcion code I type에서는 ✓ op - operation code (opcode) ✓ rs - source operand ✓ rt - destination operand 다음으로는..
Instruction Format - 어셈블리 언어가 특정 형식의 이진수로 표현되는 동등한 기계 코드로 변환됩니다. - Instruction length: 8bits, 16bits, 32bits, 64bits . . . Word size - 메모리의 기본 단위 - 데이터가 움직이는 통로의 기본 단위 - CPU와 MEMORY 사이에 있는 전달 통로가 WORD SIZE에 의해서 결정된다. Variable size - 여러개의 word size를 이어붙인 것 Opcode - Operation code +, - , *, / etc. Operands(address) Data가 어디 있는지 표기 Number etc. Opcode Operands Total - 8 bits Opcode - 3 bits (Opcode는..