Lab 08: First steps on System Programming

In this laboratory, you will start your first step within system programming, mixing assembly language with high-level programming languages.

Your job in this Lab is write a program that prints the state of all the general purpose register. First, to understand the challenges on this task, model your solution with the implementation of the following utility functions:

void print_register(unsigned int i)

void print_all_registers()

Your solution must print the exact state of all register just before the moment you call your function to print_all_registers.

Once you implement your solution, compare the result of your function, with the result of the debug mode of the GXEmul. Why the results are differents ? Write a report explaining why the results are differents.

Supplied Files