Computer Systems <3 Flashcards
How to calculate range of positive integers
2^n -1
How to calculate range of Two’s complement numbers
2^n -1 (÷2)
What is a real number ?
A real number is a number with a decimal point. A real number can be positive or negative.
Disadvantage of ASCII
they only used one byte they were limited to 256 characters
Advantage of UniCode
- All current and historic languages can be represented and understood by all modern computing devices;
- The first 128 characters are identical to ASCII which maintains backwards compatibility with older files.
Disdvantage of UniCode
- UniCode takes up much more storage space than ASCII
- The UniCode standard only defines what each number means and leaves it to software developers to decide precisely how each character looks on their system.
Bitmap
A bitmap is a representation of a graphic using a grid of bits to store the information about the colour of each pixel in an image. Bitmapped images appear as pixels.
Bitmap colours
When using colours, multiple bits are stored for each pixel. The more bits user per pixel, the more colours can be stored.
Vector
Stores them as a description of the shapes in the image to enable them to be re-drawn for recreating that image rather than storing them as individual pixels.
CPU meaning
Central Processing Unit
What is a bus
Buses are the lines which connect the CPU to the main memory.
Address bus
The address bus is a unidirectional (1 way) bus
Data bus
Data bus is a bi-directional (2 way) bus
When data is read from or written to memory STEPS
the processor sets up the address register with the address of the memory location to be accessed,
the processor activates the read or write line on the control bus,
and data is then transferred to or from the data register via the data bus,
Memory location address
Activates read/write line
Data is transferred
How to calculate memory locations
2^n - n being number of lines
16 lines = 2^16 possible memory locations;