Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Algorithm
- html
- computer
- control
- CSS
- mysql
- DATAPATH
- Linux
- Java
- for
- DS
- Class
- MIPS
- system
- architecture
- web
- MacOS
- Pipelining
- XML
- react
- DB
- python
- while
- data structure
- instruction
- github
- php
- DoM
- javascript
- function
Archives
- Today
- Total
목록Bit-wise (1)
YYYEJI
[MIPS] Bit-wise AND(&)로 Logical AND(&&) 구하기
Bit-wise AND 란? bit 하나하나 비교를 합니다. 1000 1010 ------------------ 1000 Logical AND 란? 숫자 자체를 크게 놓고 비교합니다. C programming을 기준으로 살펴보면 0이 아닌 숫자는 모두 true입니다. (. . -2, -1 , 1, 2, 3, 4 . . .) 1000 (8) 0001 (1) ------------- 1 (true) 0000 (0) 1010 (10) ------------ 0 (false) MIPS의 AND operation은 기본적으로 Bit-wise 연산을 수행합니다. logical and를 수행하는 MIPS instruction이 존재하나요 ˀ̣ ˀ̣ ˀ̣ 없습니다. 우리가 스스로 코드를 짜야 됩니다. 아래 C code..
Computer architectures
2022. 10. 19. 01:45