star/star.c
/* This routine decodes an extension word into EDX. */
This routine decodes an extension word into EDX.
This routine decodes an extension word into EDX .
static void gen_decode_ext(void) {
	align(16);
	emit("decode_ext:\n");
	if(cputype <= 68010) {
		emit("push ecx\n");
		emit("movzx edx,word[esi]\n");
		emit("movsx ecx,dl\n");
		emit("add esi,byte 2\n");
		emit("shr edx,12\n");
		emit("mov edx,[__reg+edx*4]\n");
		emit("jc short .long\n");
		emit("movsx edx,dx\n");
		emit(".long:\n");
		emit("add edx,ecx\n");
		emit("pop ecx\n");
		emit("ret\n");
	} else {
	}
}
static void gen_decode_ext ( void ) { align ( 16 ) ; emit ( " \n " ) ; if ( cputype <= 68010 ) { emit ( " \n " ) ; emit ( " \n " ) ; emit ( " \n " ) ; emit ( " \n " ) ; emit ( " \n " ) ; emit ( " \n " ) ; emit ( " \n " ) ; emit ( " \n " ) ; emit ( " \n " ) ; emit ( " \n " ) ; emit ( " \n " ) ; emit ( " \n " ) ; } else { } }
This routine decodes an extension word into EDX.
This routine decodes an extension word into EDX .
/* For future expansion... */ /* need an extra jump table here */