Microprocessors Laboratory - Exercises page

UFSC/LISHA - Author: Hugo Marcondes, Wolfram Stacklies and Thiago Leao Moreira

Light Keyboard: Part II - Mixing codes.

This exercise is the same that the second one, but now we wanna practice some code mixing. First one we made a interrupt handling in C++ code. C++ make use o name mangling to provide the overloaded functions, so a interrupt handler declared like a C++ function will not work because de C++ copiler will mangle the __vector_# name. The solution is make use of extern "C" statement to prevent name mangling

This implementation is on file main.cc

Now the second part of this exercise is make a code makes use only of IN/OUT instructions. It's implementation was made on file main_withasm.cc

The file contextswitch.tgz contains the source code of the final challenge on this exercise. Make the exercise without the compilers macros to create a interrupt handler.


Warning: Undefined array key "PATH_TRANSLATED" in /home/intranet/teaching/esl/ine5349-2004-1/work/g7/index.php on line 25

Warning: opendir(/exercise03): Failed to open directory: No such file or directory in /home/intranet/teaching/esl/ine5349-2004-1/work/g7/index.php on line 26