- disabled VGA init stuff (should be removed from libsys)

- minor changes to test_exception

git-svn-id: http://moon:8086/svn/mips@54 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
2015-06-14 07:50:47 +00:00
parent 24ef72ab24
commit 8f307e19ac
2 changed files with 9 additions and 7 deletions
+6 -4
View File
@@ -195,8 +195,8 @@ int main(void)
while(1)
{
printf("Welche exception mchten Sie testen?\n");
printf(" 1 : Reserved instruction\n");
printf("Welche exception möchten Sie testen?\n");
printf(" 1 : Reserved instruction (EPC = 0x40010000)\n");
printf(" 2 : Privileged address (BadVAddr = 0x80000000)\n");
printf(" 3 : Arithmetic overflow\n");
printf(" 4 : Syscall\n");
@@ -211,8 +211,10 @@ int main(void)
printf("13 : Load error on instruction and Load error on data (BadVAddr = 0x40000003)\n");
printf("14 : Load error on data and Load error on instruction (BadVAddr = 0x40000002)\n");
scanf("%d", &sel);
printf("Jetzt kommt die exception (%d)!\n", sel);
fflush(stdin);
int res = scanf("%d", &sel);
printf("Jetzt kommt die exception (%d), res = %d!\n", sel, res);
switch(sel)
{