diff options
author | Mike Pavone <pavone@retrodev.com> | 2012-12-26 20:18:58 -0800 |
---|---|---|
committer | Mike Pavone <pavone@retrodev.com> | 2012-12-26 20:18:58 -0800 |
commit | b1940d5f9fa6cbb97aa0f7cef0a5fa61b6cb2c95 (patch) | |
tree | c8265d79777cbfa68901ab6779a84ca63e1f03c3 /runtime.S | |
parent | f0d831f2b1e343592d0987dffdb5eb1064bd83ae (diff) |
vertical interrupts now work
Diffstat (limited to 'runtime.S')
-rw-r--r-- | runtime.S | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -16,6 +16,7 @@ handle_cycle_limit_int: cmp 88(%rsi), %eax jb skip_int push %rcx + /* call print_int_dbg */ /* swap USP and SSP if not already in supervisor mode */ bt $5, 5(%rsi) jc already_supervisor @@ -50,6 +51,17 @@ already_supervisor: jmp *%rcx skip_int: ret + +int_dbg_msg: + .asciz "Executing Interrupt!" +print_int_dbg: + call m68k_save_context + push %rsi + lea int_dbg_msg(%rip), %rdi + call puts + pop %rsi + call m68k_load_context + ret .global get_sr get_sr: |