Hello,
The following exercise I have to make, but I've got no idea how to do it.
Can anyone help me?
Write a program in assembly in the ATmega32 AVR Studio which both
following issue as a choice of the following commands
worked out and resolved.
Make sure there in a flash memory array will be placed in the next 10
hexadecimal numbers:
0x01, 0x02, 0x03, 0x04, 0x05, 0xF0, 0xE0, 0xD0, 0xC0, 0xB0.
Use a function (subroutine). The subroutine performs operations.
In the main seat (s) the herhalingslus (s).
Go through the herhalingslus (s) once a step by step and note the values of
the program counter, the stack pointer and the stack content
a. just before calling the subroutines (in the call instruction)
b. inside the subroutines (in the first instruction of the subroutine)
c. shortly after returning to the main program (the first statement after the
call instruction).
Problem:
Find the largest positive number and put it with his number in the RAM
memory (two locations). Summarizes the numbers here as two's complement
numbers!
best regards,
Floris