일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- instruction
- DB
- python
- web
- Class
- MIPS
- DATAPATH
- github
- for
- html
- data structure
- computer
- CSS
- DoM
- Linux
- while
- DS
- control
- system
- Pipelining
- Java
- MacOS
- react
- javascript
- Algorithm
- mysql
- function
- XML
- php
- architecture
- Today
- Total
목록AND (2)
YYYEJI
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..
AND AND는 두 개의 조건이 있을 때 두 조건이 모두 참이여야지만 True입니다. Condition 1 Condition 2 Result False Flase False True False False False True False True True True OR OR은 두 개의 조건이 있을 때 한 조건만 참이면 결과가 True가 됩니다. Condition 1 Condition 2 Result False False False True False True False True True True True True 파이썬에서는 AND와 OR을 이렇게 사용할 수 있습니다. print("0 and 0: ", 0 and 0) print("1 and 0: ", 1 and 0) print("1 and 1: ", 1 a..