Which instruction moves data?
Instructions in an assembly language instruction set are grouped by what they do.
Which of the following instructions belongs to the data movement group?
A CMP #10
B MOV IX
C JPN 120
D OUT
[1]
- 1
Place each instruction in its group.
CMP #10is a compare instruction.JPN 120is a conditional jump.OUTis input and output. - 2
MOV IXcopies the contents of the ACC into the Index Register, so it moves data from one place to another. Answer B (1).
Answer
B (MOV IX)
Examiner tip
Examiner tip: the syllabus groups are data movement (LDM, LDD, LDI, LDX, LDR, MOV, STO), input and output (IN, OUT), arithmetic (ADD, SUB, INC, DEC), unconditional and conditional jumps (JMP, JPE, JPN) and compare (CMP, CMI).
Common mistake: choosing D because OUT 'moves' a character to the screen. Input and output is its own group.