Mercurial > repos > blastem
comparison runtime.S @ 226:28a6697e847b
Implement CHK instruction (not fully tested).
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 21 Apr 2013 13:00:34 -0700 |
parents | 922b59c09259 |
children | 4a7ac10ac2d9 |
comparison
equal
deleted
inserted
replaced
225:7348057e7a8c | 226:28a6697e847b |
---|---|
89 or $0x20, %cl | 89 or $0x20, %cl |
90 or %cl, 5(%rsi) | 90 or %cl, 5(%rsi) |
91 /* calculate interrupt vector address */ | 91 /* calculate interrupt vector address */ |
92 pop %rcx | 92 pop %rcx |
93 shl $2, %ecx | 93 shl $2, %ecx |
94 add $0x80, %ecx | |
95 call m68k_read_long_scratch1 | 94 call m68k_read_long_scratch1 |
96 call m68k_native_addr_and_sync | 95 call m68k_native_addr_and_sync |
97 add $24, %eax | 96 add $18, %eax |
98 jmp *%rcx | 97 jmp *%rcx |
99 | 98 |
100 invalid_msg: | 99 invalid_msg: |
101 .asciz "Invalid instruction at %X\n" | 100 .asciz "Invalid instruction at %X\n" |
102 | 101 |