<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Wed, 11 May 1983 00:10:00 EDT
From   : Ronald G. Fowler <RGF@mit-mc.arpa>
Subject: Subroutine to test for 8080 or Z80.

Here is a shorter and simpler version (as far as I know, it
works on all Z80's and 8080's):

               SBB     A
               JPO     Z80             ;JUMPS IF EXECUTING ON Z80
                                       ;FALLS THRU ON 8080.
This is the one used in the DCON Z80-only debugger.  Has anyone that
uses that debugger seen it try to execute on an 8080 (ie, has anyone
anyone seen the above test fail?)?  Let me know if so.
                       --Ron Fowler
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>