일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- html
- CSS
- MacOS
- data structure
- Pipelining
- architecture
- javascript
- Java
- for
- XML
- computer
- instruction
- function
- DoM
- DATAPATH
- DB
- system
- DS
- mysql
- while
- web
- react
- control
- MIPS
- Linux
- github
- Algorithm
- Class
- php
- python
- Today
- Total
목록computer (83)
YYYEJI
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/bzb5B0/btrMZDpf3fU/SKdcmwP9D50xYHHKHsRerk/img.png)
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 ........................................
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/cYeyCg/btrMOoTI14M/6WG1AslYtC8KpRZGZtJzUK/img.png)
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 ..
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/L8LeS/btrMKmcdWWi/48GOxHgtr8pVMr5x0JQbk1/img.png)
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..
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/vfPU5/btrMKlwW8Np/jmfrJ9T7L9cqK3UYoSfZc1/img.png)
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..
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/5qA8x/btrMIo0N7SZ/9UlLn4GjI5K8qypemoLzyK/img.png)
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..
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/xh4p4/btrMyjk3md2/AVuPw4753Kai96k5HL55E0/img.png)
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..
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/byanLU/btrMt4JcX6a/WnoYaKvbZkSjZQ5JSRkT40/img.png)
Three Operands Add A, B C Destination - A Sources - B and C (A ← B + C) Opcode Oprand #1 Operand #2 Operand #3 Two Operands Add A, B Destination - A Sources - A and B (A ← B + C) Opcode Operand #1 Operand #2 One Operands (Assume a special registerm accumulator to hold data value) ADD A Destination - AC (accumulator) Sources: A and AC (AC ← AC + A) LD A (Load store) Destination - AC Source - A (A..
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/oTf9f/btrMvsJCYGK/48U6ZcOtKRSvrsF3VeOQLK/img.png)
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는..