On Tue, 26 Oct 1999, Marat Fayzullin wrote:
> Before you start using GB CPU similarities to Z80 as an argument, I have
> to warn you that GB CPU is has slightly *different* set of opcodes than
> Z80, and Z80 has no ability to interrupt on certain opcodes chosen by the
> programmer. So, you are back to square one, emulating GB CPU on MSX CPU.
I would not know if it is possible, but the similarity does for sure make
it easier to emulate it. Of course you need to check all opcodes (IN's and
OUT's will be very different), but it is very fast if you can say: with
all these opcodes we can just execute the command directly. As I said
before, I don't know if it is possible to emulate it at reasonable speed
(It seems that it isn't), but it is a very good argument the cpu's are
alike.
Bye,
shevek
/***********Use gcc to compile***Don't mind the warning************/
int*a,k ,v[ 9]; int*main (){ int i,j,s=1, x,z ,c[
]={ 1,4 ,7, 4,3 ,4, 5,4 ,1, 1,1 ,2,
3,3 ,3, 4}; for (i= 0;( i++ <9) &!k
;s=-s) {k=0;scanf ("%d",& z);v [--z ]=s;for (j=0;j
<8; j++ ){z =v[ c[j ]];k |=z ==v [c[
j]- c[j +8] ]&( z&&(v[ c[j ]+c [j+
8]]==z) );; ;}} printf(" %d won\n",- s*k );}
/*******************Tic-tac-toe.use 1-9 to play********************/
****
MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED] and put
in the body (not subject) "unsubscribe msx [EMAIL PROTECTED]" (without the
quotes :-) Problems? contact [EMAIL PROTECTED] (www.stack.nl/~wiebe/mailinglist/)
****