Help with 68k Adressing mode calculation
Posted: Mon Sep 29, 2025 7:46 am
Hello
I'm working actually on a 68k core that synchronize at each memory access (without threaded mecanism).
I'm stressing my core with JSON Test Suit : https://github.com/SingleStepTests/ProcessorTests
I have problem with this test :
"name": "000 ADD.l D5, (d8, A3, Xn) dbb3",
Initial important states are :
"d5": 0x14fbcc8
"a3": 0x3e4d4a5b
"d0": 0xa1e940b7
prefetch 0 : 0xdbb3 (the opcode)
prefetch 1 : 0xc4f (extension word)
The test attempt cpu write at this adress (in order) :
0x4542aa : 0xc606
0x4542a6 : 0x2313
0x4542a8 : 0x70
0x4542a4 : 0xdbb3
0x4542a2: 0xdbb3
0x45429e : 0x8b61
0x4542a0 : 0xee036
I don't understand how (d8, A3, Xn) can give write access at this effective adress.
I must miss something so any help is appreciated !
I'm working actually on a 68k core that synchronize at each memory access (without threaded mecanism).
I'm stressing my core with JSON Test Suit : https://github.com/SingleStepTests/ProcessorTests
I have problem with this test :
"name": "000 ADD.l D5, (d8, A3, Xn) dbb3",
Initial important states are :
"d5": 0x14fbcc8
"a3": 0x3e4d4a5b
"d0": 0xa1e940b7
prefetch 0 : 0xdbb3 (the opcode)
prefetch 1 : 0xc4f (extension word)
The test attempt cpu write at this adress (in order) :
0x4542aa : 0xc606
0x4542a6 : 0x2313
0x4542a8 : 0x70
0x4542a4 : 0xdbb3
0x4542a2: 0xdbb3
0x45429e : 0x8b61
0x4542a0 : 0xee036
I don't understand how (d8, A3, Xn) can give write access at this effective adress.
I must miss something so any help is appreciated !