• 沒有找到結果。

十進位

N/A
N/A
Protected

Academic year: 2022

Share "十進位"

Copied!
1
0
0

加載中.... (立即查看全文)

全文

(1)

1. 十進位、二進位、十六進位轉換

十進位 (Decimal)

二進位 (Binary)

十六進位 (Hexadecimal)

8 位元 (8 bits) (8 Binary)

十六進位 (Hexa- decimal) 0 0000 0 0x0 00000001 0x01 1 0001 1 0x1 00010010 0x12 2 0010 2 0x2 00100011 0x23 3 0011 3 0x3 00110100 0x34 4 0100 4 0x4 01000101 0x45 5 0101 5 0x5 01010110 0x56 6 0110 6 0x6 01100111 0x67 7 0111 7 0x7 01111000 0x78 8 1000 8 0x8 10001001 0x89 9 1001 9 0x9 10011010 0x9a 10 1010 a 0xa 10101011 0xab 11 1011 b 0xb 10111100 0xbc 12 1100 c 0xc 11001101 0xcd 13 1101 d 0xd 11011110 0xde 14 1110 e 0xe 11101111 0xef 15 1111 f 0xf 11110000 0xf0

2. 邏輯運算子&&、||、!

&&代表 AND(及閘) , ||代表 OR(或閘) , !代表 NOT(反閘) AND(及閘):當所有的輸入都是 1 時,輸出為 1 ,其他情況輸出為 0。

當有一輸入為 0 時,輸出為 0 ,其他情況輸出為 1 。 OR(或閘):當所有的輸入都是 0 時,輸出為 0 ,其他情況輸出為 1 。 當有一輸入為 1 時,輸出為 1 ,其他情況輸出為 0 。 NOT(反閘):輸出為輸入的反相。

AND(及閘)

輸入 1 輸入 2 輸出

0 0 0

0 1 0

1 0 0

1 1 1

OR(或閘)

輸入 1 輸入 2 輸出

0 0 0

0 1 1

1 0 1

1 1 1

NOT(反閘)

輸入 輸出

0 1

1 0

參考文獻

相關文件

美國資訊交換標準碼 (American Standard Cord for Information Interchange, ASCII),唸作 “askee”-是大

3個NOT 1個VCC 1個AND2

Let’s see how to code this in R using the previous vector x of data with our test statistic again being the coefficient of variation (and hence our function CV previously defined)..

[r]

[r]

The Seed project, REEL to REAL (R2R): Learning English and Developing 21st Century Skills through Film-making in Key Stage 2, aims to explore ways to use film-making as a means

In this section, we define the so-called SOC-r-convex functions which is viewed as the natural extension of r-convex functions to the setting associated with second- order

We point out that extending the concepts of r-convex and quasi-convex functions to the setting associated with second-order cone, which be- longs to symmetric cones, is not easy