Professional Documents
Culture Documents
Abstract
Pointers are variables that point to a specific address that contains
data. Subroutines (or functions in C) are used to call and return different
processes that are executed outside of the main() function. C code was
given which was to then be translated into Assembly code that uses
pointers and subroutines.
Theory
Task 2:
In C program upcase_cversion.c, the initial areas for sz_1 and sz_2 were
in the 1000 to 1010 block of memory.
Conclusions:
Task 1 and 2 were completed. In Task 1 one finds that the final output
is not in the variable itself, but in the program memory. In Task 2 one
also finds that the initial locations for sz_1 and sz_2 were in the 10001010 block, and also used by register W14 and W15.
Reference:
1. Reese, Bruce, Bryan Jones, Microcontrollers: From Assembly to C
with the PIC24 Family, 2008