Skip to content

[Debugger] Load/Store instructions don't indicate writeback flag #1915

Description

@lunasorcery

Observed at 4aed125.

The disassembler appears not to note the writeback flag when disassembling ldr/str instructions.

For example:

ldrh r8, [r7, r2]!  ; opcode e1b780b2
ldrh r8, [r7, r2]   ; opcode e19780b2

mGBA will display both instructions as ldrh r8, [r7, r2], missing the trailing !, but will correctly perform the writeback when executing.

This appears to affect all forms - all of ldr, ldrh, ldrb, str, strh, strb, with both register offsets and immediate offsets.

Activity

  1. endrift commented on Oct 24, 2020

    @endrift
    Member

    I'm pretty sure this used to work. It may be a recent regression. Checking now.

  2. added a commit that references this issue on Oct 24, 2020
    67cf9b7
  3. endrift commented on Oct 24, 2020

    @endrift
    Member

    This was indeed a regression, but not a recent one. It broke in 0.2.0.

  4. added a commit that references this issue on Sep 9, 2026
    98683ef
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions