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

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..

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..

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는..

Levels of Code High Level Language Program ↓ Assembly Language Program ↓ Machine Language Program How to translate ? ? ? When high-level language is translated into assembly language, to use a compiler. When assembly language is tranlated into machine language, to use an assembler. High-lever language (Machine independent) temp = a; a = b; b = temp; Assembly language lw $15, 0($2) lw $16, 4($2) ..