|nyef||Does anyone know of any documentation on this (sbcl/cmucl) disassembler that I'm just unable to think of right now?|
|slyrus||nyef: looks like sb-show builds are busted|
Binary chop time?
(The good thing from my perspective is that you're seeing it on x86-64.)
|slyrus||nyef: no, it's x86 too|
|nyef||Yes, but consider my two most recent commits.|
|slyrus||but, yeah, if I can't find anything obvious, I'll start chopping|
|nyef||I don't have to worry if it's x86 too, so long as it's not x86-only.|
|action||nyef goes back to staring at the disassembler trying to figure out how to get it to do what he wants it to without having to modify the actual disassembler guts.|
|nyef||goes back to staring at the disassembler trying to figure out how to get it to do what he wants it to without having to modify the actual disassembler guts.|
Hunh. Looks like I might not have to be quite so sneaky as I thought.
Now, is this functionality actually -used- anywhere?
Hrm... Survived first genesis. That's promising...
Oops. Forgot a declare ignore. :-/
"This time for sure!"
|rtoym||nyef: I know a little about the disassembler. But the x86 version is just to complex for me to grok.|
|nyef||rtoym: Know anything about "prefix instructions"?|
|nyef||I have something which I think might work, just waiting for a fresh build.|
AFAICT, they're instructions without a printer.
And their control function can modify the dstate.
|rtoym||Do you have an example?|
|nyef||I'll let you know once this build completes.|
Wasn't able to find anything obvious, so I'm sortof working from first principles here.
|rtoym||There's some function that prints out all the instructions nicely grouped. I've used that to figure out why my disassembler wasn't working.|
|nyef||And reading the almost completely undocumented mess behind the :PRINTER option for DEFINE-INSTRUCTION.|
Thing is, either an arg prefilter or a control has to do the actual tweaking of the dstate. And I haven't seen anything that does that yet.
At least, not in that way.
|fax||is "(unless (find-if-not ...", a bad thing?|
|rtoym||nyef: print-inst-space prints out the instruction set.|
|nyef||fax: It feels like a double negative.|
|fax||I know :[|
its just a bit clunky as well
do you think it matters?
|nyef||fax: But beyond that my head is so full of bits of disassembler goop that I can't think of anything better.|
|kpreid||fax: are the elements of the sequence possibly nil?|
|fax||it can happen, but I should probably just skip the whoel thing in tht case|
|nyef||Okay, insts.lisp compiled this time, which is a good sign.|