Q) a) indicate the number of instruction bytes and
cycles required for the following instructions: (I) STAA $0,Y (ii)
STAB $1000(III) STAA $0,X (IV)STAB $10 (V) PSHA (VI) BRA (VII) JMP
(VIII) CLI
b) which is the preferred method when interacting with a
significant number of microcontroller registers? c) what
instruction is necessary to perform first before we can use this
(assuming a default microcontroller configuration)?
a) STAA $0, Y => 3 byte instruction, takes 3 cycles
b) STAB $1000 => 3 byte instruction, takes 3 cycles
c) STAA $0, X => 3 byte instruction, takes 3 cycles
d) STAB $10 => 2 byte instruction, takes 2 cycles
e) PSHA => 1 byte instruction, takes 2 cycles
f) BRA => 2 byte, 3 cycle
g) JMP => 2-4 bytes, 3-6 cycles(depending on operands)
i) CLI => 2 byte, 1 cycle
Dear student please explain rest two question in comment, so that I can understand what exactly you are asking about. Thak You.
Get Answers For Free
Most questions answered within 1 hours.