<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    I'm trying Craig's ( <a class="moz-txt-link-freetext" href="http://wiki.squeak.org/squeak/2465">http://wiki.squeak.org/squeak/2465</a> )
    instructions for starting the simulator. In principle it seems
    pretty straight ahead. Make two images and then start one from
    within the other. I "SaveAs..." to make two images (source.image and
    stimulator.image), execute:<br>
    <br>
    (InterpreterSimulatorLSB new openOn: 'source.image') test<br>
    <br>
    And then I get an "Incompatible Image Format" error. Any suggestions
    on how to resolve that would be great. This does seem to be how vms
    are hacked. I have a feeling it's not the only way, but it must be
    the coolest. <br>
    <br>
    Chris <br>
    <br>
    <br>
    openOn: fileName extraMemory: extraBytes<br>
    &nbsp;&nbsp; <br>
    ... snip ...<br>
    <br>
    &nbsp;&nbsp; &nbsp;(self readableFormat: version)<br>
    &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;ifTrue: [swapBytes := false]<br>
    &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;ifFalse: [(version := self byteSwapped: version) = self
    imageFormatVersion<br>
    &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;ifTrue: [swapBytes := true]<br>
    &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;ifFalse: [self error: '<b>incompatible image
      format</b>']].
  </body>
</html>