sorry in advance for this newbie question.
I would like to jump to screen 2, do stuff, and then go back to screen 0:
Code: Select all
#include <msx.h>
#include <stdlib.h>
#include <stdio.h>
void main() {
clg();
vdp_set_mode(mode_2);
while (!getk()) {
}
vdp_set_mode(mode_0);
}
Code: Select all
zcc +msx -subtype=msxdos2 test.c -o test.com
Can you help? How can I restore the mode 0 as it was before running the code?
Thanks