Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to specify data inside instruction? #3392

Open
Spongman opened this issue Sep 3, 2021 · 1 comment
Open

how to specify data inside instruction? #3392

Spongman opened this issue Sep 3, 2021 · 1 comment

Comments

@Spongman
Copy link

Spongman commented Sep 3, 2021

i'm trying to study some self-modifying 6502 code and i'm trying to specify that the two operand bytes of a JMP instruction are a 16-bit data value:

            2352 b9 61 23        LDA        vector1Low,Y                                     = 
            2355 8d 5f 23        STA        LAB_235e+1
            2358 b9 79 23        LDA        vector1High,Y                                    = 
            235b 8d 60 23        STA        LAB_235e+2
                             LAB_235e+1
                             LAB_235e+2
            235e 4c 00 00        JMP        0000

i want to specify that 235f and 2360 are a word, but i can't do that while those 3 bytes are decoded as an instruction, and if i clear the disassembly and add the word at 235f then i can't disassemble the JMP.

how do i do both?

@astrelsky
Copy link
Contributor

This is a common anti-disassembly technique and is unfortunately not something Ghidra can currently handle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants