-
Notifications
You must be signed in to change notification settings - Fork 12
Description
Does this support memory modelling in 65816 mode?
I'm using the following command:
decode6502 --mem=F0F --cpu=65816 -ahisy
but it doesn't seem to log memory writes nor does it pick up some "deliberate" mistakes where my d,X addressing mode was picking up the wrong byte.
00C01C : 86 03 : STX 03 : 3 : A=??03 X=007F Y=???? SP=01?? N=1 V=0 M=1 X=1 D=0 I=1 Z=0 C=0 E=1 PB=00 DB=?? DP=????
00C01E : E6 03 : INC 03 : 5 : A=??03 X=007F Y=???? SP=01?? N=1 V=0 M=1 X=1 D=0 I=1 Z=0 C=0 E=1 PB=00 DB=?? DP=????
00C020 : A5 03 : LDA 03 : 3 : A=??80 X=007F Y=???? SP=01?? N=1 V=0 M=1 X=1 D=0 I=1 Z=0 C=0 E=1 PB=00 DB=?? DP=????
00C022 : 45 03 : EOR 03 : 3 : A=??00 X=007F Y=???? SP=01?? N=0 V=0 M=1 X=1 D=0 I=1 Z=1 C=0 E=1 PB=00 DB=?? DP=????
00C024 : 85 05 : STA 05 : 3 : A=??00 X=007F Y=???? SP=01?? N=0 V=0 M=1 X=1 D=0 I=1 Z=1 C=0 E=1 PB=00 DB=?? DP=????
00C026 : E6 03 : INC 03 : 5 : A=??00 X=007F Y=???? SP=01?? N=1 V=0 M=1 X=1 D=0 I=1 Z=0 C=0 E=1 PB=00 DB=?? DP=????
00C028 : A2 02 : LDX #2 : 2 : A=??00 X=0002 Y=???? SP=01?? N=0 V=0 M=1 X=1 D=0 I=1 Z=0 C=0 E=1 PB=00 DB=?? DP=????
00C02A : B5 03 : LDA 03,X : 4 : A=??00 X=0002 Y=???? SP=01?? N=0 V=0 M=1 X=1 D=0 I=1 Z=1 C=0 E=1 PB=00 DB=?? DP=????
0
The Load at C02A is now working correctly but when it wasn't (it was bringing back 81) the registers said A=81 and I'd have expected a prediction fail.
Is it just that the 65816 emulation is not doing the memory modelling. It has been dead useful so far getting simple stuff working but now I'm getting to the more tricksy addressing modes it would be good to have it working. If it's not done for 816 - where should I start, I'm happy to put some effort in to adding it!
D