Krusader update to 1.2.3 - new feature

Discuss software for the Apple 1/replica 1

Krusader update to 1.2.3 - new feature

Postby Kallikak » Dec Thu 20, 2007 7:32 pm

I have updated Krusader to version 1.2.3.

This release includes a couple of small changes in behaviour - specifically source listing and disassemblies both continue until a key is pressed. (Previously the source listing was paged and the disassembly 20 lines at a time.)

But the main change is the addition of a new and extremely useful command to the mini-monitor. The '!' command allows direct access to the Woz monitor from the mini-monitor, allowing you to examine and alter memory while tracing/debugging.

In order to do this I had to make some small changes to the Woz monitor, but the behaviour and all the standard entry points are unchanged, so there should be absolutely no compatibility issues. The provided source and hex files include the adjusted monitor code.

I will release tonight once I have checked the updated documentation.

See the below for an annotated example of this new functionality in operation.

Ken

Here's a simple demonstration program

Code: Select all
? L
000 ;      WE WANT TO WATCH
001        BRK
002 ;      LET'S PLAY WITH $1000
003 MEM    .=  $1000
004 ;      CLEAR IT
005        LDA #$0
006        STA MEM
007 ;      NOW SAVE A NEW VALUE
008        LDA #$88
009        STA MEM
00A ;      NOW USE THE MONITOR TO
00B ;      CHANGE THE VALUE
00C ;      AND CHECK SUCCESS
00D        LDX MEM
00E ;      THAT'S ALL FOLKS
00F        RTS
? A
0300-030F
? D $300
0300   00          BRK   
0301   00          BRK   
0302   A9 00       LDA   #$00
0304   8D 00 10    STA   $1000
0307   A9 88       LDA   #$88
0309   8D 00 10    STA   $1000
030C   AE 00 10    LDX   $1000
030F   60          RTS   


Run and trace it

Code: Select all
? R $300
A-0D X-01 Y-07 S-FD P-32 BZ
0302   A9 00       LDA   #$00
-T
A-00 X-01 Y-07 S-FD P-33 BZC
0304   8D 00 10    STA   $1000
-T
A-00 X-01 Y-07 S-FD P-33 BZC
0307   A9 88       LDA   #$88


Look at locations $1000 to $1002 using the new command

Code: Select all
-!1000.1002

1000: 00 00 00
A-00 X-01 Y-07 S-FD P-33 BZC
0307   A9 88       LDA   #$88
-T
A-88 X-01 Y-07 S-FD P-B1 NBC
0309   8D 00 10    STA   $1000
-T
A-88 X-01 Y-07 S-FD P-B1 NBC
030C   AE 00 10    LDX   $1000


Verify the change from the STA instruction

Code: Select all
-!1000.1002

1000: 88 00 00
A-88 X-01 Y-07 S-FD P-B1 NBC
030C   AE 00 10    LDX   $1000


Now manually alter the value in location $1000

Code: Select all
-!1000:FF

1000: 88
A-88 X-01 Y-07 S-FD P-B1 NBC
030C   AE 00 10    LDX   $1000


Verify the alteration

Code: Select all
-!1000.1002

1000: FF 00 00
A-88 X-01 Y-07 S-FD P-B1 NBC
030C   AE 00 10    LDX   $1000
-T


The X register now contains the altered value

Code: Select all
A-88 X-FF Y-07 S-FD P-B1 NBC
030F   60          RTS   
-R
?
Kallikak
 
Posts: 172
Joined: Jan Sun 29, 2006 7:42 pm
Location: Sydney

Postby Kallikak » Dec Fri 21, 2007 6:52 am

I have just uploaded this version to my website.

Ken
Kallikak
 
Posts: 172
Joined: Jan Sun 29, 2006 7:42 pm
Location: Sydney

Postby Kallikak » Dec Sat 22, 2007 5:54 pm

Actually, I've just had the very obvious thought that this new ! command is not only useful in the minimonitor, but also in the assembler shell. So I have decided to include it there as well, and will release the whole new package as version 1.3 sometime today.

Ken
Kallikak
 
Posts: 172
Joined: Jan Sun 29, 2006 7:42 pm
Location: Sydney


Return to Software

Who is online

Users browsing this forum: No registered users and 1 guest

cron