ppc and ppc-disassembly library documentation
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    ausPPC
    Posts: 543 from 2007/8/6
    From: Pending...
    Couple of things I'd like to know before I sink any more time into reinventing the wheel...

    Is there any such documentation? And where is it?
    PPC assembly ain't so bad... ;)
  • »08.11.15 - 22:13
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    polluks
    Posts: 778 from 2007/10/23
    From: Gelsenkirchen,...
    Are you looking for this? http://stackoverflow.com/questions/15862484/powerpc-disassemble-instruction-by-its-raw-data
    or see http://library.morph.zone/An_Introduction_to_MorphOS_PPC_Assembly

    [ Editiert durch polluks 09.11.2015 - 21:11 ]
    Pegasos II G4: MorphOS 3.9, Zalman M220W · iMac G5 12,1 17", MorphOS 3.18
    Power Mac G3: OSX 10.3 · PowerBook 5,8: OSX 10.5, MorphOS 3.18
  • »09.11.15 - 19:03
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12058 from 2003/5/22
    From: Germany
    > see http://library.morph.zone/An_Introduction_to_MorphOS_PPC_Assembly

    The thread opener is the author of that article.
  • »09.11.15 - 20:13
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    ausPPC
    Posts: 543 from 2007/8/6
    From: Pending...
    I was curious about ppcdiss.library and ppc.library but it seems one or both of those are only there for the sake of compatibility / completeness and they're somewhat out of date.

    Aside from creating better disassembly output I'm also attempting to indicate the availability of disassembled instructions on the user's cpu along with flagging things like supervisor instructions.

    Sometimes reinventing the wheel just can't be avoided. :)
    PPC assembly ain't so bad... ;)
  • »10.11.15 - 12:45
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    polluks
    Posts: 778 from 2007/10/23
    From: Gelsenkirchen,...
    Indeed, PowerUP relicts.
    At least ppcdiss just includes three functions:
    * "ppcdiss.library"
    ##base _PPCDissBase
    ##bias 30
    ##public
    PPCDissCreateObjectTagList(TagList)(a0)
    PPCDissDeleteObject(Object)(a0)
    PCCDissTranslateTagList(Object,TagList)(a0,a1)
    ##end

    #define DISASS_BUFFER 0x84000000
    #define DISASS_DEFINEPC 0x84000001
    #define DISASS_NOADRINC 0x84000002
    #define DISASS_RELADDR 0x84000003
    #define DISASS_SHOWDATA 0x84000004
    #define DISASS_PRESCANSIZE 0x84000005
    #define DISASS_USEDC68KDESC 0x84000006
    #define DISASS_ADDRESSHOOK 0x84000007
    #define DISASS_SYMBOLHOOK 0x84000008
    #define DISASS_RELOCHOOK 0x84000009
    #define DISASS_SHOWADDRESS 0x8400000a
    #define DISASS_GETDATAHOOK 0x8400000b

    http://aminet.net/package/misc/os/ppc-dev-4619
    Take a look at PPCDebug.c!


    [ Editiert durch polluks 10.11.2015 - 16:08 ]
    Pegasos II G4: MorphOS 3.9, Zalman M220W · iMac G5 12,1 17", MorphOS 3.18
    Power Mac G3: OSX 10.3 · PowerBook 5,8: OSX 10.5, MorphOS 3.18
  • »10.11.15 - 13:22
    Profile