Success (RE: Loading a compiled program; Run UUT)

From: James S. Bright <james_at_quarterarcade.com>
Date: Wed Jul 09 2003 - 22:06:04 EDT

<x-html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>

<META content="MSHTML 6.00.2726.2500" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Verdana color=#800000 size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=820005801-10072003><FONT face=Verdana color=#800000 size=2>I
think that I had bad output from MAME's DASM function (believe it or not). I
took pretty much the exact same code and recompiled it with a 6809 compiler, and
it worked.</FONT></SPAN></DIV>
<DIV><SPAN class=820005801-10072003><FONT face=Verdana color=#800000
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=820005801-10072003><FONT face=Verdana color=#800000 size=2>I've
also now added an "Insert Listing File" command into FIDE to make uploading
listing files easier. It makes some assumptions on file format, but I can tweak
that as necessary. It basically just writes the equivalent:</FONT></SPAN></DIV>
<DIV><SPAN class=820005801-10072003><FONT face=Verdana color=#800000
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=820005801-10072003><FONT face=Verdana color=#800000
size=2>&nbsp;&nbsp; REGF = 0000 !! change to your base
address</FONT></SPAN></DIV>
<DIV><SPAN class=820005801-10072003><FONT face=Verdana color=#800000
size=2>&nbsp;&nbsp; write @REGF = xx</FONT></SPAN></DIV>
<DIV><SPAN class=820005801-10072003><FONT face=Verdana color=#800000
size=2>&nbsp;&nbsp; write @REGF inc = xx</FONT></SPAN></DIV>
<DIV><SPAN class=820005801-10072003><FONT face=Verdana color=#800000
size=2>&nbsp;&nbsp; write @REGF inc = xx</FONT></SPAN></DIV>
<DIV><SPAN class=820005801-10072003><FONT face=Verdana color=#800000
size=2>&nbsp;&nbsp; !! ... etc</FONT></SPAN></DIV>
<DIV><SPAN class=820005801-10072003><FONT face=Verdana color=#800000
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=820005801-10072003><FONT face=Verdana color=#800000 size=2>So
that it's not too hard to get started with running code from memory. I'll upload
a new FIDE executable/installer by this weekend. If you want it before then, let
me know.</FONT></SPAN></DIV>
<DIV><SPAN class=820005801-10072003><FONT face=Verdana color=#800000
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=820005801-10072003><FONT face=Verdana color=#800000
size=2>So... what you can use this for is writing fast memory test routines that
operate at uProc speed. You do have to write it in assembly, but once you do it
for one platform, you can pretty much reuse that same code. There is also a
Troubleshooter article that explains how you can tell when your program is done
executing. (Requires a probe.)</FONT></SPAN></DIV>
<DIV><SPAN class=820005801-10072003><FONT face=Verdana color=#800000
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><FONT face=Verdana><FONT color=#800000><FONT size=2>J<SPAN
class=820005801-10072003>B</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT color=#800000><FONT size=2><SPAN
class=820005801-10072003></SPAN></FONT></FONT></FONT><SPAN
class=820005801-10072003>&nbsp;&nbsp;&nbsp; </SPAN></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #800000 2px solid; MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
  face=Tahoma size=2>-----Original Message-----<BR><B>From:</B>
  owner-techtoolslist@www.flippers.com
  [mailto:owner-techtoolslist@www.flippers.com] <B>On Behalf Of </B>James S.
  Bright<BR><B>Sent:</B> Wednesday, July 09, 2003 3:44 PM<BR><B>To:</B>
  TechToolsList@flippers.com<BR><B>Subject:</B> Re: Loading a compiled program;
  Run UUT<BR><BR></FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Well, I think I identified one problem. I took
  what should be valid 6809 code and ran it through an assembler (with emulator)
  that I found. I believe that I have the correct approach (similar to what you
  did) but my loaded code wasn't correct. Actually, that's probably a good thing
  because that is easy enough for me to fix. I was hoping to lift a RAM test
  routine right from Qix, but it's not so hard that I couldn't just re-write it
  myself.</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>JB</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV>--James Bright<BR><A
  href="http://www.QuarterArcade.com">www.QuarterArcade.com</A><BR>Restored
  Arcade Games for your Home</DIV>
  <BLOCKQUOTE dir=ltr
  style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
    <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
    <DIV
    style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
    <A title=mike@the-coates.com href="mailto:mike@the-coates.com">Mike
    Coates</A> </DIV>
    <DIV style="FONT: 10pt arial"><B>To:</B> <A title=TechToolsList@flippers.com
    href="mailto:TechToolsList@flippers.com">TechToolsList@flippers.com</A>
    </DIV>
    <DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, July 09, 2003 3:19
    PM</DIV>
    <DIV style="FONT: 10pt arial"><B>Subject:</B> RE: Loading a compiled
    program; Run UUT</DIV>
    <DIV><BR></DIV>
    <DIV><SPAN class=201211519-09072003><FONT face=Arial color=#0000ff size=2>I
    did a small piece of script to read and write 32 bit numbers on a 68000
    based board (to try and get an encryption table built up)
    </FONT></SPAN></DIV>
    <DIV><SPAN class=201211519-09072003><FONT face=Arial color=#0000ff
    size=2></FONT></SPAN>&nbsp;</DIV>
    <DIV><SPAN class=201211519-09072003><FONT face=Arial color=#0000ff
    size=2>the CPU is fast enough that by the time the fluke runs the next
    instruction, the CPU has already written the 32 bit number and is on the
    HERE: BRA HERE loop so I didn;t need to worry about syncronisation between
    the two</FONT></SPAN></DIV>
    <DIV><SPAN class=201211519-09072003><FONT face=Arial color=#0000ff
    size=2></FONT></SPAN>&nbsp;</DIV>
    <DIV><SPAN class=201211519-09072003><FONT face=Arial color=#0000ff
    size=2>output is to a PC on the end of the RS232 option</FONT></SPAN></DIV>
    <DIV><SPAN class=201211519-09072003></SPAN>&nbsp;</DIV>
    <DIV><FONT face=Arial color=#0000ff size=2><SPAN
    class=201211519-09072003>---</SPAN></FONT></DIV>
    <DIV><FONT face=Arial color=#0000ff size=2><SPAN
    class=201211519-09072003></SPAN></FONT>&nbsp;</DIV>
    <DIV><SPAN class=201211519-09072003><FONT face=Arial color=#0000ff
    size=2>&nbsp;&nbsp; DPY-RALLY ENCRYPTION<BR>&nbsp;&nbsp; DPY-+-PRESS
    CONT<BR>&nbsp;&nbsp; STOP</FONT></SPAN></DIV>
    <DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
    <DIV><SPAN class=201211519-09072003><FONT face=Arial color=#0000ff
    size=2>&nbsp;&nbsp; WRITE @ 200000 = 23FC<BR>&nbsp;&nbsp; WRITE @ 200004 =
    0006<BR>&nbsp;&nbsp; WRITE @ 200006 = 0010<BR>&nbsp;&nbsp; WRITE @ 200008 =
    0000<BR>&nbsp;&nbsp; WRITE @ 20000A = 60FE</FONT></SPAN></DIV>
    <DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
    <DIV><SPAN class=201211519-09072003><FONT face=Arial color=#0000ff
    size=2>&nbsp;&nbsp; REG1 = 0<BR>&nbsp;&nbsp; REG2 = FFFF<BR>&nbsp;&nbsp;
    AUX-<BR>1: LABEL 1<BR>&nbsp;&nbsp; WRITE @ 200002 = REG1<BR>&nbsp;&nbsp; RUN
    UUT 200000<BR>&nbsp;&nbsp; READ @ 100000<BR>&nbsp;&nbsp;
    AUX-$1+<BR>&nbsp;&nbsp; AUX- +<BR>&nbsp;&nbsp; AUX-$E+<BR>&nbsp;&nbsp; READ
    @ 100002<BR>&nbsp;&nbsp; AUX- +<BR>&nbsp;&nbsp; AUX-$E</FONT></SPAN></DIV>
    <DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
    <DIV><SPAN class=201211519-09072003><FONT face=Arial color=#0000ff
    size=2>&nbsp;&nbsp; INC REG1<BR>&nbsp;&nbsp; IF REG2 &gt;= REG1 GOTO
    1<BR>&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp; </FONT></SPAN></DIV>
    <DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
    <DIV><SPAN class=201211519-09072003><FONT face=Arial color=#0000ff
    size=2></FONT></SPAN>&nbsp;</DIV>
    <DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
    <DIV><SPAN class=201211519-09072003><FONT face=Arial color=#0000ff
    size=2></FONT></SPAN>&nbsp;</DIV>
    <DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
    <DIV><SPAN class=201211519-09072003><FONT face=Arial color=#0000ff
    size=2></FONT></SPAN>&nbsp;</DIV>
    <DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
    <DIV><SPAN class=201211519-09072003><FONT face=Arial color=#0000ff
    size=2></FONT></SPAN>&nbsp;</DIV>
    <DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
    <DIV><SPAN class=201211519-09072003><FONT face=Arial color=#0000ff
    size=2></FONT></SPAN>&nbsp;</DIV>
    <DIV>&nbsp;</DIV>
    <DIV><SPAN class=201211519-09072003><FONT face=Arial color=#0000ff
    size=2></FONT></SPAN>&nbsp;</DIV>
    <DIV>&nbsp;</DIV>
    <DIV><SPAN class=201211519-09072003><FONT face=Arial color=#0000ff
    size=2></FONT></SPAN>&nbsp;</DIV>
    <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
      <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
      size=2>-----Original Message-----<BR><B>From:</B>
      owner-techtoolslist@www.flippers.com
      [mailto:owner-techtoolslist@www.flippers.com]<B>On Behalf Of </B>James S.
      Bright<BR><B>Sent:</B> 09 July 2003 14:18<BR><B>To:</B>
      techtoolslist@flippers.com<BR><B>Subject:</B> Loading a compiled program;
      Run UUT<BR><BR></FONT></DIV>
      <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
      <DIV><FONT face=Arial size=2>Has anyone done this before? Building a
      compiled program, loading it byte by byte into memory, and then doing Run
      UUT? I was playing around with this last night, but I couldn't get it to
      work. (6809E based system). Could be lots of things at this point, and I'm
      going to review the Troubleshooter documentation, but I thought I'd ask.
      Talk of testing RAMs made me think to try a few tests to see how easy it
      would be to build a "fast RAM" tester. I just took a snippet of code from
      the Qix self-test and wanted to run a modified version of that. However,
      even a simple test where I'm writing to a specific address did not seem to
      work. Been a looong time since I wrote assembly, and I've never had to
      bother looking at the generated op codes! The code was relocatable
      code.</FONT></DIV>
      <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
      <DIV><FONT face=Arial size=2>On a related note, it appears that it's
      possible to write some z80 code that could be executed by the 9010A base
      unit. You can't use the Fluke compiler, however, because you'd need to
      have a slightly different record structure for the program. This is part
      of the reason that I was asking about interest level in a new compiler.
      That, and the fact that there are gaps in the programming language that
      might be easy to fill.</FONT></DIV>
      <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
      <DIV><FONT face=Arial size=2>JB</FONT></DIV>
      <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
      <DIV><FONT face=Arial size=2>--James Bright<BR><A
      href="http://www.QuarterArcade.com">www.QuarterArcade.com</A><BR>Restored
      Arcade Games for your
Home</FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>

</x-html>
Received on Wed Jul 09 21:45:56 2003

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