GCSE Computing . Lesson 5. Candidates should be able to: explain the difference between high level code and machine code explain the need for translators to convert high level code to machine code describe the characteristics of an assembler, a compiler and an interpreter.
Machine code instructions are the binary code instructions that the CPU actually executes when an executable program runs.
In machine code?
LOOP SUB ONE // RAM address label LOOP. Subtract value stored at RAM address ONE
OUT // Output the number
BRZ QUIT // If at 0, branch to RAM address QUIT
BRA LOOP // Not at 0 so branch to RAM address LOOP
QUIT HLT // RAM address label QUIT. End the program
ONE DAT 1 // DATA, store 1 in this RAM address, and label it ONE
High-level code (source code) is made up of statements written in high-level languages such as Visual Basic, C++, Delphi and Java.
Machine code instructions are the binary code instructions that the CPU actually executes.
TaskUsing the LMC and the worksheet 1 enter in the programs and execute them to see how the computer deals with the programTry and have a go of the questions in worksheet 2