Re: Machine Code Help?

From: John Robertson <jrr_at_flippers.com>
Date: Sun May 12 2002 - 14:17:05 EDT

<html>
Well, according to my reference bible (Osbournes' An Introduction to Microcomputers Vol 2 (get a copy if you don't have it!!!) Here is some CPU's code reference for the first group of instructions you posted: Note that the Z80 is often the same as 8080A code...<br><br>
Code&nbsp; <x-tab>&nbsp;&nbsp;</x-tab>Z80<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>8080<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>6800<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>6502<br>
11<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>same<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>LXI<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>??<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>ORA<br>
00<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>as<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>00<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>aa<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>00<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><br>
00<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>8080<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>00<x-t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nbsp;&nbsp;&nbsp;&nbsp;</x-tab>0F<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>??<br><br>
Looks like Z80 to me, or 8080A <br><br>
John :-#)#<br><br>
At 09:28 AM 12/05/2002 -0400, Kev wrote:<br><br>
<br>
<blockquote type=cite class=cite cite>I'm looking at the FILE02.S trying to understand the function of this 9010A<br>
script.&nbsp; It has embedded machine language routines designed to run on the<br>
UUT CPU for ROM checksums.<br><br>
How can I tell what CPU the OP codes are for?<br><br>
I think it is 8080......<br><br>
21<br>
xx &lt;- Low byte of PROM address start<br>
yy &lt;- High byte of PROM address start<br>
AF<br>
01<br>
xx &lt;- Low byte of PROM address end<br>
YY &lt;- High byte of PROM address end<br>
11<br>
00<br>
00<br>
00<br>
86<br>
D2<br>
0F &lt;&lt;-LSB<br>
QQ &lt;- MSByte of RAM address<br>
1C<br>
57<br>
23<br>
7D<br>
A9<br>
7A<br>
C2<br>
0A &lt;&lt;-LSB<br>
QQ &lt;- MSByte of RAM address<br>
57<br>
7C<br>
A8<br>
7A<br>
C2<br>
0A<br>
QQ &lt;-MSByte of RAM address<br>
86<br>
D2<br>
23<br>
QQ &lt;-MSByte of RAM address<br>
1C<br>
32<br>
01<br>
QQ+1<br>
7B<br>
32<br>
00<br>
QQ+1<br>
76&nbsp;&nbsp;&nbsp;&nbsp; :HALT&nbsp; (I figured this one out!)</blockquote></html>
Received on Sun May 12 14:17:05 2002

This archive was generated by hypermail 2.1.8 : Tue Dec 02 2003 - 18:40:44 EST