First page Back Continue Last page Overview Graphics
Laboratory 2.3 : Macros
Write a program using a macro that can read any specified port and then write to another specified port. The two ports should be specified in the single line macro call.
Test the program by reading address $ae (switches) and then writing to address $d6 (LEDs). Make sure port S at address $d6 is an output.
In addition, write a macro that will write a specified value to a specified port. Test the program.
When debugging the above programs, put the source code window in the assembly mode so that the expanded code generated by the macro can be viewed.