computer notes
computer notes
logical shifts
Arithmetic shifts
overflow error
• overflow error is when an operation produces a result that
requires higher number of bits than what is available in the
computer to store it. There is an extra 9th bit which requires
extra storage than what the computer can store.
• This causes the program to crash and result in incorrect or
unexpected results.
Hexadecimal
• hexadecimals break each 8 binary digits into nibbles(4
binary digits) which are easier to use.
• Hexadecimals helps programmers because it uses fewer
digits.
• From 10 onwards hexadecimal is represented using alphabet
• uses of hexadecimals:
1. helps humans to cope up with long strings, 8 bit
binary are hard to deal with. But hexadecimal is
much simpler to use
2. computers use hexadecimal to represent
malfunction and error code
3. hexadecimal used in assembly language to
represent numerical values.
True colors
• true color uses 24 bits or 3 8 bit binary patterns to represent
each color variations. Which might be hard to remember or
use and code. Instead, hexadecimal represent this large
strings in 6 digits which are much more easier to remember
and work with.
Analogue sound
• sound recordings convert changes in air pressure into
voltage changes. This is called analogue recordings
• sample interval is when samples of sound waves are
recorded at fixed regular intervals.
• Sample rate is number of samples over a given time. Sample
rate increases accuracy.
• Bit depth is the number of bits used to encode each sample.
• Calculate file size by = bit depth*time in secs*sample rate
• fidelity means how much copy is accurately matching to the
original one.
• Samples are snapshots of sound at regular time intervals.
Unit conversions
1. byte-2**0 or 1024 bytes
2. kibibyte- 2**10 1024 bytes
3. mebibyte- 2**20 1024 kibibytes
4. gibibytes- 2**30 1024 mebibytes
5. tebibytes- 2**40 1024 gibibytes(1024 is a binary prefix)
data compression
Clock
Buses
Embedded systems