Mercurial > repos > blastem
comparison runtime.S @ 176:e2918b5208eb
Print a message when we try to run an invalid instruction, not when we try to translate it
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 06 Jan 2013 21:42:57 -0800 |
parents | 7504200cac86 |
children | c66e4636f991 |
comparison
equal
deleted
inserted
replaced
175:7504200cac86 | 176:e2918b5208eb |
---|---|
86 add $0x80, %ecx | 86 add $0x80, %ecx |
87 call m68k_read_long_scratch1 | 87 call m68k_read_long_scratch1 |
88 call m68k_native_addr_and_sync | 88 call m68k_native_addr_and_sync |
89 add $24, %eax | 89 add $24, %eax |
90 jmp *%rcx | 90 jmp *%rcx |
91 | |
92 invalid_msg: | |
93 .asciz "Invalid instruction at %X\n" | |
94 | |
95 .global m68k_invalid | |
96 m68k_invalid: | |
97 lea invalid_msg(%rip), %rdi | |
98 mov %ecx, %esi | |
99 xor %rax, %rax | |
100 call printf | |
101 mov $1, %rdi | |
102 call exit | |
91 | 103 |
92 int_dbg_msg: | 104 int_dbg_msg: |
93 .asciz "Executing Interrupt!" | 105 .asciz "Executing Interrupt!" |
94 print_int_dbg: | 106 print_int_dbg: |
95 call m68k_save_context | 107 call m68k_save_context |