view runtime.S @ 691:74d636e85bf8

WIP of functions to determine size of x86 instruction to allow patching of arbitrary pieces of code
author Michael Pavone <pavone@retrodev.com>
date Sat, 14 Mar 2015 12:05:03 -0700
parents 7ed1dbb48f61
children
line wrap: on
line source



invalid_msg:
	.asciz "Invalid instruction at %X\n"

	.global m68k_invalid
m68k_invalid:
	lea invalid_msg(%rip), %rdi
	mov %ecx, %esi
	xor %rax, %rax
	call printf
	mov $1, %rdi
	call exit