일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- computer
- architecture
- DS
- php
- MIPS
- javascript
- mysql
- Java
- DATAPATH
- CSS
- Linux
- react
- control
- XML
- DB
- system
- Algorithm
- python
- DoM
- for
- github
- while
- Pipelining
- web
- html
- data structure
- Class
- function
- MacOS
- instruction
- Today
- Total
목록system (66)
YYYEJI

간단하게 register에 대해서 설명해 드리겠습니다. Mip에서의 resister model입니다. (간단하게 그려놓은 모습입니다.) 0 $ zero constant 0 1 $ at reserved for assembler 2 $v0 return values 3 $v1 4 $a0 arguments 5 $a1 6 $a2 7 $a3 8 $t0 temporary ... 15 $t7 16 $s0 permanent ... 23 $s7 24 $t8 25 $t9 26 $k0 27 $k1 28 $gp global pointer 29 $sp stack pointer 30 $fp frame pointer 31 $ra return address 0~1은 compiler에서 신경쓰는 부분이기 때문에 우리는 신경쓰지 않아도 ..

MIPS, register에 대해서 알아보아요 ! ① Interger register은 32 x 32 bits General Purpose Registers로 되어 있습니다. ② 일반적으로 float는 64bits 이기 때문에 아래와 같이 생겼습니다. Even number쪽인 오른쪽은 less-significant word이고 Odd number인 왼쪽은 more-significant word입니다. ③ HI(High register)와 LO(Low register)도 있고, 각각은 32bits로 구성되어 있습니다. 곱하기 연산을 할 때 최소 64bits의 데이터가 나오기 때문에 HI와 LO register을 사용합니다. 나누기 연산을 할 땐 몫(Quotient)와 나머지(Remainder)을 각가의 H..

Assembly 언어로 아래와 같이 있을 때, 204 BEQ, $t0, $zero, Less 208 ADD, $s2, $s0, $s1 *** something *** 216 j Exit . (위에 명렁어는 t0 == zero 이면 Less로 이동하라는 의미입니다.) 위에 있는 assembly code가 machine code로 바뀌면 000000 10001 10010 01000 00000 101010 /* slt 000100 01000 00000 00000 00000 00010 /* beq 000000 ............................................................. /* add 000010 ........................................

To be Completeness . . . → A computer should have a set of instructions so that the user can construct machine language programs to evaluate any function that is known to be computable. ① - Arithmetic / Logical ② - Data transfor (including I/O) ③ - Contorl Tranfer ① Arithmetic / Logical → Modify Data value 1) Integer arithmetic operations +, -, *, %, ++, -- etc. Note - 1) What are the essential ..

CISC와 RISC에 대해서 알아보아요! 각각의 CISC와 RISC는 CISC - Complex instruction set computer RISC - Reduce Instruction set computer 의 약자입니다. CISC와 RISC의 목적은 컴퓨터의 성능을 좋게 하기 위함입니다. 여기서 차이점은 컴퓨터의 성능을 어떻게 좋게 하느냐 입니다. CISC는 다양한 Instruction을 만들어 성능을 높이고, RISC는 Instruction이 다양하진 않지만 high-level code에 대응하는 assembly code의 수를 줄이면서 컴퓨터의 성능을 높입니다. RISC는 CISC의 단점을 줄여서 만들었다고 할 수 있습니다. Instruction counter High level languag..

Addreesing mode에 대해서 먼저 공부를 하고 문제를 풀어보세요! https://yyyeji.tistory.com/88 [CS] Addressing Modes Addressing mode 란 ? ? ? Operand가 memory 또는 register에 위치하는 주소를 지정하는 다양한 방법입니다. → 사용자에게 프로그래밍 다재다능성을 제공합니다. (메모리에 대한 포인터, 루프 제어를 위한 yyyeji.tistory.com 🅠) Assume LD instruction is at Address 0 LD 5 ①. Direct mode ②. Indirect mode ③. Register mode ④. Register indirect mode ⑤. Immediate addressing mode ↓↓↓ S..

Addressing mode 란 ? ? ? Operand가 memory 또는 register에 위치하는 주소를 지정하는 다양한 방법입니다. → 사용자에게 프로그래밍 다재다능성을 제공합니다. (메모리에 대한 포인터, 루프 제어를 위한 카운터, 데이터 인덱싱과 같은 기능을 제공) → addressing filed의 비트 수를 줄일 수 있습니다. Effective Address (E.A.) → Referenced operand를 담고있는 위치의 actual address 입니다. EX) LDF r1, [r2, #20] ① Implied addressing mode → Explicit address가 없습니다. Ex) instructions for accumulator and stack RTS: Return F..

Let's find out about assembly language by solving the example below. ↓↓↓ Question ↓↓↓ Implement the following expression with three-, two-, one-, and zero-operand instruction sequences. Assume we have ADD and DIV instruction. Z = (A+B)/C ↓↓↓ Solution ↓↓↓ When 2 address, Z = A Z = Z + B Z = Z/C = (A + B)/C When 1 address, AC = A AC = AC(A) + B AC = AC(A+B) / C ↓↓↓ Answer ↓↓↓ When 3 address, ADD Z..