The ol' VG School of Hacking board has been kinda quiet lately, so I thought I'd post some random 68000 instructions that you would see in an assembly trace log (i.e. Gens Tracer), and include a brief explanation of what it means.
I remember when I first starting using 68000 assembly traces, I really struggled with some of this. I understood the actual instruction, but had trouble with the other stuff, like: (A0)+,$0080(A3) or $02(A6,D0),A6. I'm hoping this post will help people who are just starting to use assembly traces.
I'm not an expert in 68000 assembly, so if you see a mistake in my explanations, feel free to correct it, or make any additional comments.
To keep these as short as possible, I'm only including the relevant registers.
Keep in mind that the parenthesis in my explanations are NOT part of any mathematical equation. I just use the parenthesis to make it easier to read.
========================
01:A01C 53 6A SUBQ.W #1,$0012(A2) A0=FFFF98F0 A1=FFFF98F0 A2=FFFF885C
This means subtract 1 from RAM address FFFF886E: (register A2 (FFFF885C) + $12 = FFFF886E)
========================
EDIT: 68000 assembly is used in the Sega Genesis.
I remember when I first starting using 68000 assembly traces, I really struggled with some of this. I understood the actual instruction, but had trouble with the other stuff, like: (A0)+,$0080(A3) or $02(A6,D0),A6. I'm hoping this post will help people who are just starting to use assembly traces.
I'm not an expert in 68000 assembly, so if you see a mistake in my explanations, feel free to correct it, or make any additional comments.
To keep these as short as possible, I'm only including the relevant registers.
Keep in mind that the parenthesis in my explanations are NOT part of any mathematical equation. I just use the parenthesis to make it easier to read.
========================
01:A01C 53 6A SUBQ.W #1,$0012(A2) A0=FFFF98F0 A1=FFFF98F0 A2=FFFF885C
This means subtract 1 from RAM address FFFF886E: (register A2 (FFFF885C) + $12 = FFFF886E)
========================
EDIT: 68000 assembly is used in the Sega Genesis.

Comment