fixed how ecalls are represented and handled

This commit is contained in:
Anton Lydike 2021-08-30 15:09:31 +02:00
parent 684c858300
commit 0651eabe18
3 changed files with 3 additions and 3 deletions

2
.gitignore vendored
View File

@ -1,3 +1,3 @@
venv
__pycache__
.mypy_cache
.mypy_cache

View File

@ -12,7 +12,7 @@ def _window_loop(textIO: 'TextIO'):
import PySimpleGUI as sg
logs = sg.Text(font="monospace")
col = sg.Column([[logs]], size=(1920, 1080), scrollable=True)
col = sg.Column([[logs]], size=(640, 400), scrollable=True)
window = sg.Window("TextIO:{:x}".format(textIO.addr), [[col]])
lines = list()

View File

@ -88,4 +88,4 @@ class TimerInterrupt(CpuTrap):
class EcallTrap(CpuTrap):
def __init__(self, mode: PrivModes):
super().__init__(mode.value + 8, 0, CpuTrapType.SOFTWARE)
super().__init__(mode.value + 8, 0, CpuTrapType.EXCEPTION)