Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > comp.emulators.apple2 > #2233

Re: Jace updates

Newsgroups comp.emulators.apple2
Date 2017-02-19 21:22 -0800
References <a416265d-85db-4cba-8e82-396538df0638@googlegroups.com> <70cdde22-51ab-4a47-82cd-7fe9bd1e3a58@googlegroups.com> <c463be1f-ae3e-4644-9833-e04f9f556654@googlegroups.com>
Message-ID <717ed38f-4aae-4fe2-bef2-82fb647dd9cf@googlegroups.com> (permalink)
Subject Re: Jace updates
From BLuRry <brendan.robert@gmail.com>

Show all headers | View raw


On Tuesday, February 7, 2017 at 6:14:26 PM UTC-6, John Public wrote:
> On Saturday, December 3, 2016 at 3:21:04 PM UTC-8, John Public wrote:
> > > The latest 2.0-Stable build can be found here:
> > > https://github.com/badvision/jace/releases
> > 
> > I forgot how to write a 6502 trace to disk and can't seem to find it in the
> > documentation. Thanks. :)
> 
> So does anyone know what it is? I want to write a 6502 trace to my hard drive.

Oh, stupid emulation author didn't follow his own post to see your question (SORRY)  You have two options:

1) From the CPU config (ctrl+shift+C) you can enable trace to STD OUT and even give it a limit how many opcodes to trace.  This is kind of a hassle because everything slows to a crawl the moment it is on.
2) Using new hidden/undocumented features (see recent 2.0-stable release) insert this special command in your code which will look like a NOP on a regular 65c02 or any other emulator, but will actually tell JACE to start trace, as well as other commands:
FC 65 00: Turn on trace
FC 65 01: Turn off trace
FC 50 xx: Print #xx to std out
FC 5B xx: Println #xx to std out
FC 5C xx: Print chr(xx) to std out

This is because FC looks like a NOP which also matches the decode pattern for an absolute address mode, taking two additional bytes (which are usually read but ignored by the real chip)  So with that JACE can repurpose the NOP as an external command hook. :)  There's also some hooks to get memory to dump all the softswitch states to STDOUT if anyone wants it for debugging purposes.

-B

Back to comp.emulators.apple2 | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Jace updates BLuRry <brendan.robert@gmail.com> - 2016-11-05 09:04 -0700
  Jace updates BLuRry <brendan.robert@gmail.com> - 2016-11-20 06:57 -0800
  Re: Jace updates John Public <deeplyshrouded@gmail.com> - 2016-12-03 15:21 -0800
    Re: Jace updates John Public <deeplyshrouded@gmail.com> - 2017-02-07 16:14 -0800
      Re: Jace updates BLuRry <brendan.robert@gmail.com> - 2017-02-19 21:22 -0800
        Re: Jace updates BLuRry <brendan.robert@gmail.com> - 2017-02-20 10:05 -0800
  Re: Jace updates John Public <deeplyshrouded@gmail.com> - 2017-02-20 14:01 -0800
    Re: Jace updates Steve Nickolas <usotsuki@buric.co> - 2017-02-20 18:18 -0500
      Re: Jace updates John Public <deeplyshrouded@gmail.com> - 2017-09-02 03:21 -0700
        Re: Jace updates Steve Nickolas <usotsuki@buric.co> - 2017-09-02 17:24 -0400
          Re: Jace updates John Public <deeplyshrouded@gmail.com> - 2017-09-03 03:03 -0700
            Re: Jace updates John Public <deeplyshrouded@gmail.com> - 2017-09-03 03:06 -0700
              Re: Jace updates Steve Nickolas <usotsuki@buric.co> - 2017-09-03 16:28 -0400
                Re: Jace updates John Public <deeplyshrouded@gmail.com> - 2017-09-03 13:44 -0700
  Re: Jace updates James Davis <JPD.Enterprises@outlook.com> - 2017-09-03 18:37 -0700
    Re: Jace updates James Davis <JPD.Enterprises@outlook.com> - 2017-09-03 18:40 -0700
  Re: Jace updates John Public <deeplyshrouded@gmail.com> - 2017-10-06 13:31 -0700

csiph-web