Midterm Flashcards
How text is stored
Computers store and transmit characters. Processords dont know what a character is and instead store each as an integer
Converting Binary to Hex
Since 16^1 = 2^4, a single hex character can represent a total of 4 bits. You want to convert every 4 bits to a single hexadecimal digit
Hex Example: The number 7AC is…
(7x256) + (10x16) +(12x1)= 1964
Bit
Every bit is one binary digit
- either 1 or 0
shorthand for bit is b
Byte
Byte is a group of 8 bits
- ex 1101 0100
- shorthand for byte is B
Characters
Each character has a unique value. Characters adn their matching values are a character set
Character Sets
Includes character sets like ASCII or EBCDIC
What is Memory?
Memory is essentially an enormous array. Sometimes referred to as storage and stores both running programs and their related data.
Memory Addresses
Memory is divided into a storage location that can hold 1byte (8 bits). Each can be accessed using an address
Address
unique value that refers to that specific byte. used to locate the exact byte the processor wants. each address is conceptually the same as an index in arrays
CPU
The Central Processing Unit is the most complex part of t he computer and is divided into two units
1. Control Logic Unit
2. Execution Unit
CLU
Control Logic Unit controls the processor. It determines when instructions can be executed and controls internal operations
-fetch & decode instructions
-invisible to running programs
EU
Execution unit contains the hardware that executes tasks (your programs)
ALU
Arithmetic Logic Unit is part of the EU and performs all calculationis and comparisons
Registers
All computations are performed using registers. A register is a location on the processor iteslf that is used to store temporary data.