Muaj pes tsawg yam khoom tuaj yeem sawv cev hauv 16bits?
Muaj pes tsawg yam khoom tuaj yeem sawv cev hauv 16bits?

Video: Muaj pes tsawg yam khoom tuaj yeem sawv cev hauv 16bits?

Video: Muaj pes tsawg yam khoom tuaj yeem sawv cev hauv 16bits?
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Hlis ntuj nqeg
Anonim

A 16-ntsis tus lej ua tau khw 216 (los yog 65, 536) tus nqi sib txawv . Hauv qhov tsis tau kos npe sawv cev , cov tus nqi yog cov lej ntawm 0 thiab 65, 535; siv ob qhov ntxiv, ua tau tus nqi ntau ntawm −32, 768 mus rau 32, 767. Li no, ib tug processor nrog 16-ntsis chaw nyob nco ua tau ncaj qha nkag mus rau 64 KB ntawm byte-addressable nco.

Ua kom pom qhov no, pes tsawg yam khoom tuaj yeem sawv cev nrog 3bits?

Ib me ntsis tuaj yeem sawv cev ob qhov sib txawv, "0" thiab "1". Ob cov khoom tuaj yeem sawv cev plaub qhov tseem ceeb, “00”, “01”, “10”, thiab “11”. Peb cov khoom tuaj yeem sawv cev yim tus nqi, “000”, “001”, “010”, “011”, “100”, “101”, “110” thiab “111”.

Tom qab ntawd, lo lus nug yog, pes tsawg lub cim tuaj yeem sawv cev nrog 4 khoom? 16 txawv

Tsuas yog li ntawd, muaj pes tsawg yam tuaj yeem sawv cev hauv Nbits?

n cov khoom tuaj yeem sawv cev 2 ^ qhov tseem ceeb (xws li 0) thiab hloov pauv, koj xav tau yam tsawg kawg log2() me ntsis rau sawv cev n tus nqi ntawm qhov ntau ntawm 0 txog -1.

Muaj pes tsawg tus nqi sib txawv tuaj yeem sawv cev siv ob bytes?

65536 ua

Pom zoo: