Replies: 3 comments 2 replies
-
The MCS-48 emulator in MAME (which is known to implement JMPP correctly) does a simple |
Beta Was this translation helpful? Give feedback.
-
Aaaaaaaaaaah
Disasm:
And... decompiled is a bit disappointing, but at least it's not giving the "low-level error" anymore:
This took way longer than it should. |
Beta Was this translation helpful? Give feedback.
-
Going beyond this (and a bit off-topic) : is it possible to define a data type, of size 1 byte, that is a "pointer inside current page" ? (i.e. the lower 8 bits of PC). It would help for this kind of jump table. |
Beta Was this translation helpful? Give feedback.
-
For context, I'm working on the 8048 implementation : https://github.com/NationalSecurityAgency/ghidra/blob/master/Ghidra/Processors/8048/data/languages/8048.slaspec
Specifically this part :
Where
JMPP
seems to be doing two indirections : one in PData and then one again in AddrInd ?MCS-48 docs say :
Current implementation doesn't work (
Low-level Error: Could not find op at target address: (unique,0x00003280)
)I see two
LOAD_CODE()
operations where I think there should only be one ? i.e. we should only doing one LOAD_CODE at(inst_start & 0xFF00 | A)
.My broken sleigh would currently looks like this, after many different (but also broken) attempts :
I tried different
export
lines, removing the*[CODE]
part, etc... Read many sections of the Sleigh but I don't understand all of it, I'm clearly missing something.Beta Was this translation helpful? Give feedback.
All reactions