17.01.2015 Views

129761-2015-syllabus

129761-2015-syllabus

129761-2015-syllabus

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Syllabus content<br />

Instruction<br />

Explanation<br />

Op Code<br />

Operand<br />

LDM #n Immediate addressing. Load the number n to ACC<br />

LDD Direct addressing. Load the contents of the given address to ACC<br />

LDI Indirect addressing. The address to be used is at the given<br />

address. Load the contents of this second address to ACC<br />

LDX Indexed addressing. Form the address from +<br />

the contents of the index register. Copy the contents of this<br />

calculated address to ACC<br />

STO Store the contents of ACC at the given address<br />

ADD Add the contents of the given address to the ACC<br />

INC Add 1 to the contents of the register (ACC or IX)<br />

JMP Jump to the given address<br />

CMP Compare the contents of ACC with the contents of <br />

CMP #n Compare the contents of ACC with number n<br />

JPE Following a compare instruction, jump to if the<br />

compare was True<br />

JPN Following a compare instruction, jump to if the<br />

compare was False<br />

IN<br />

OUT<br />

END<br />

Key in a character and store its ASCII value in ACC<br />

Output to the screen the character whose ASCII value is stored<br />

in ACC<br />

Return control to the operating system<br />

# denotes immediate addressing<br />

B denotes a binary number, e.g. B01001010<br />

& denotes a hexadecimal number, e.g. &4A<br />

20 Cambridge International AS and A Level Computer Science 9608. Syllabus for examination in <strong>2015</strong>.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!