You are on page 1of 1

Anthony Jairam | 816008250

Assignment A
1) c) From the sample ATMega328p assembly program on page 5:

i) RegC is stored in r17

ii) Opcode of instruction at program memory address 0x0047 - 1001 010x xxxx 111x
xxkk kkkk kkkk kkkk

iii) Directive: .exit – this directive tells the assembler to stop assembling the file.

iv) The program will take approximately 25 machine cycles to execute. One instruction takes
the number of cycles given in the instruction set summary table under the cycles column.
Therefore, the total number of machine cycles the program will take is the total of cycles
for each instruction.

You might also like