Low level languages Flashcards
What is machine language?
The language made up of binary coded instructions that is used directly by the computer.
What are the characteristics of machine language?
– Every processor type has its own specific set
of machine instructions
– The digital logic of the CPU recognizes the binary
representations of the instructions
– Each machine-language instruction does only
one (typically) very low-level task
What is a virtual computer?
A hypothetical machine designed to contain
the important features of a real computer that
we want to illustrate
How many instructions does pepe/8 have?
39
What is the PC, IR and accumulator?
– The program counter (“PC”) (contains the address
of the next instruction to be executed)
– The instruction register (“IR”)
(contains a copy of the instruction being executed)
– The accumulator (“A”)
(used to hold data and results of operations)
How large is the memory unit?
64Kb
What is a register?
A small area of memory in the ALU that holds special data that is usually accessed instantly.
What are the two parts of an instruction in pep/8
The instructions specifier(8 bit) and the 16-bit operand specifier.
The instruction specifier indicates which operations to be carried out such as add.
The operand specifier (second and third bytes) hold either the operand itself or the address of where the operand is to be found.
the format of the instruction specifier varies depending on the no. of bits used to represent a particular operation.the first 4/5 bits are is the opcode, if the 5 bit is not used in opcode it selects the register, and the last 3 bits is the addressing mode.
What is the addressing mode specifier?
3 bits.
indicates how to interpret the operand part of the instruction.
000 - the operand is in the operand specifier of the instruction. this is called immediate (i)
001 - the operand is in the memory address named in the operand specifier. this is called direct (d)
What are unary instructions?
These are instructions that do not have an operand specifier. they are 1 byte long rather then 3.
What is another name for the accumulator?
The A register
How many bytes long is the:
A register?
Instruction register?
Program counter?
A: 2 bytes
IR: 3 bytes
PC: 2 bytes
What does it mean when we say that a computer is a programmable device?
Programmable means that data and instructions are logically the same and are stored in the same
place. The consequence of this fact is that the program the computer executes is not wired into the
hardware but entered from outside.
List five operations that any machine language must include.
There must be machine-language instructions to store, retrieve, and process data, to input data and
to output data. These instructions mirror the operations of the von Neumann machine.
What is a virtual machine? Discuss this definition in terms of the Pep/8 computer.
A virtual machine is a hypothetical machine designed to illustrate important features of a real computer. The Pep/8 computer is a virtual machine designed to illustrate the features of the von Neumann architecture. It has instructions to store, retrieve, and process data as well as instructions to input and output data.