machine code/fetch execute cycle Flashcards
What voltages are typically used for binary values?
1 = 5 volts 0 = 0 volts
What is a machine code instruction?
A binary code that a machine can interpret and execute
What is assembly language?
A mnemonic form of machine code (easier for people to read but still a one to one relationship)
What are compiled high-level language programs?
Programs translated into machine code before they can be executed on a digital computer
What is an executable file (.exe) written in?
machine code
What parts does a machine code instruction consist of?
the op-code (operation code) and operand
What is the op-code?
The part of a machine code instruction that includes the basic machine operation
(eg ADD)
What is the operand?
The part of a machine code instruction that represents one item of data or its address to be operated upon
What does the instruction LOAD #3 mean?
place the value 3 into accumulator
What does the instruction STORE 13 mean?
put what is in the accumulator into the memory loacation with address 13
What does the instruction ADD 13 mean?
Add up the contents of the accumulator and the contents of memory location 13 (the result goes in the accumulator)
Which register do ADD, LOAD and STORE use?
The accumulator
How are data and addresses represented in assembly code?
In decimal or hexadecimal
What is a memory dump?
A copy of the main memory contents - viewed by programmers to see where an error has occurred
What is the instruction set?
The set of bit patterns or binary codes for the machine operations that a processor has been designed to perform
i.e. every possible operation that can be carried out by a particular processor