Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Basic Arithmetic//Logic ,data manipulation, I/O port access

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

identify a logic instruction

a)

LDI R16,$05

b)

ADI R16,$05

c)

ANDI R16,$05

2.

Identify arithmetic instruction

a)

ADD R16,R17

b)

AND R16,R17

c)

LDI R16,R17

3.

Which one is a correct instruction ?

a)

LDI R15,$05

b)

LDS R15,R16

c)

LDS R15,$0300

4.

Which one is a correct instruction

a)

OUT PORTB,R16

b)

OUT R16,R17

c)

LDI PORTB,R16

5.

Which is correct format to work on ASCII data

a)

LDI R16,’2'

b)

LDI R16,”2"

c)

LDI R16,$2

6.

Which is correct format to work on decimal data

a)

LDI R16,12

b)

LDI R16,’12'

c)

LDI R16,$12

7.

Which is correct instruction to subtract an immediate data

a)

SUBI R16,$05

b)

SUI R16,$05

c)

SBB R16,$05

8.

Which instruction is used to take compliment of a number

a)

CP

b)

COM

c)

COMP

9.

which instruction is used to loop if C=0

a)

BRSH

b)

BRNE

c)

BRCS

10.

Which is an unconditional branch instruction

a)

RJMP

b)

BRSH

c)

BRNE