Learn with SHAKTI
CS2610: Assembly Language Lab
Assignment 3 (Privilege Levels)
3.1. Switching privilege levels
Write an assembly code to switch privilege levels from Machine mode to Supervisor mode to User mode and then back to Supervisor mode to Machine mode. Any mode of switching is allowed.
3.2. System calls in Supervisor mode
Write an assembly program to handle the following system calls in Supervisor mode.
bite (10, 95, 66) cite (23, 67) kite (35, 99, 12, 13, 0, 4, 5, 9, 12, 1, 2, 2, 3, 9)
Use the ecall instruction to call these system calls. These functions will not perform any operations and just return backs to the calling function.