<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Thu, 12 May 1983 14:29:10-PDT (Thu)
From   : UNKNOWN.vmicro1@ucb-vax.arpa
Subject: Re: Subroutine to test for 8080 or Z80.

Relay-Version:version B 3/9/83; site harpo.UUCP
Message-ID:<135@ucbtopaz.UUCP>
Date:Thu, 12-May-83 14:29:10 EDT

An even better testing routine:

       xor a
       inr     a
       jpo odd
       xor a
odd:ret

I might have the opcodes wrong (I work both 8080 and Z80, no manual around).
Point is: inr a will set odd parity on and 8080--but is not an overflow on
the z80. This routine sets the zero flag if it is a z80, I think...
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>