X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdis6809.cpp;fp=src%2Fdis6809.cpp;h=cfc6b519f4fa390f8b09964510389ad01a1af9cd;hb=2fe4f4d3720583b59e0412d2a0cb72109db78573;hp=d598e2cf7334763229b2684558eeffe36d2a9887;hpb=757714edd1100cfbe4dd5c46e4eff480ee25dd3d;p=thunder diff --git a/src/dis6809.cpp b/src/dis6809.cpp index d598e2c..cfc6b51 100644 --- a/src/dis6809.cpp +++ b/src/dis6809.cpp @@ -1,9 +1,9 @@ // // 6809 disassembler // -// by James L. Hammons +// by James Hammons // -// (c) 2004 Underground Software +// (c) 2004, 2014 Underground Software // #include "dis6809.h" @@ -191,15 +191,15 @@ iregs[4][2] = {"X", "Y", "U", "S" }; // // Display bytes in mem in hex // -static void DisplayBytes(V6809REGS regs, uint16 src, uint32 dst) +static void DisplayBytes(V6809REGS regs, uint16_t src, uint32_t dst) { WriteLog("%04X: ", src); - uint8 cnt = 0; // Init counter... + uint8_t cnt = 0; // Init counter... if (src > dst) dst += 0x10000; // That should fix the FFFF bug... - for(uint32 i=src; i> 5), idxind = ((operand & 0x10) >> 4), + uint8_t reg = ((operand & 0x60) >> 5), idxind = ((operand & 0x10) >> 4), lo_nyb = (operand & 0x0F), boff; - uint16 woff; + uint16_t woff; strcpy(tmp, "??"); if (!(operand & 0x80)) // Hi bit set? Then decode 4 bit offset