0% found this document useful (0 votes)
7 views1 page

Assembly Language Intruder Alarm System

The document describes an intruder alarm system that activates only when two or more sensors are triggered. It includes an assembly language program for processing memory contents, detailing part of the instruction set for the processor used, including operations like loading, storing, incrementing, and comparing values. Key instructions such as LDD, STO, INC, and JMP are explained with their functionalities.

Uploaded by

oliver.faulkner
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views1 page

Assembly Language Intruder Alarm System

The document describes an intruder alarm system that activates only when two or more sensors are triggered. It includes an assembly language program for processing memory contents, detailing part of the instruction set for the processor used, including operations like loading, storing, incrementing, and comparing values. Key instructions such as LDD, STO, INC, and JMP are explained with their functionalities.

Uploaded by

oliver.faulkner
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

13

The intruder system is set up so that the alarm will only sound if two or more sensors have been
triggered.
An assembly language program has been written to process the contents of the memory location.

The table shows part of the instruction set for the processor used.

Instruction
Explanation
Op code Operand
Direct addressing. Load the contents of the given address to
LDD <address>
ACC
STO <address> Store the contents of ACC at the given address
INC <register> Add 1 to the contents of the register (ACC or IX)
ADD <address> Add the contents of the given address to the contents of ACC
Bitwise AND operation of the contents of ACC with the
AND <address>
contents of <address>
CMP #n Compare the contents of ACC with the number n
JMP <address> Jump to the given address
Following a compare instruction, jump to <address> if the
JPE <address>
compare was True
Following a compare instruction, jump to <address> if the
JGT <address> content of ACC is greater than the number used in the
compare instruction
END End the program and return to the operating system

© UCLES 2016 9608/31/M/J/16 [Turn over

You might also like