X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fjagdasm.cpp;h=31a67ef7d8852489a598b19a00c5a65de527a61e;hb=d59de2a3408a34b53772bfd4b00cd3e8dc50a03b;hp=6fadae8a03694f755b2f81cea40718e202254f70;hpb=6c19e4098a43c47f8cd1824902f7335e124b834f;p=virtualjaguar diff --git a/src/jagdasm.cpp b/src/jagdasm.cpp index 6fadae8..31a67ef 100644 --- a/src/jagdasm.cpp +++ b/src/jagdasm.cpp @@ -1,3 +1,18 @@ +// +// Jaguar RISC Disassembly +// +// Originally by David Raingeard +// GCC/SDL port by Niels Wagenaar (Linux/WIN32) and Carwin Jones (BeOS) +// Minor cleanups by James Hammons +// (C) 2012 Underground Software +// +// JLH = James Hammons +// +// Who When What +// --- ---------- ------------------------------------------------------------- +// JLH 06/01/2012 Created this log (long overdue! ;-) +// + #include "jagdasm.h" #include @@ -61,8 +76,9 @@ char * signed_16bit(int16 val) return temp; } -unsigned dasmjag(int dsp_type, char * buffer, unsigned pc) +unsigned dasmjag(int dsp_type, char * bufferOut, unsigned pc) { + char buffer[64]; int op = ROPCODE(pc); int reg1 = (op >> 5) & 31; int reg2 = op & 31; @@ -160,7 +176,7 @@ unsigned dasmjag(int dsp_type, char * buffer, unsigned pc) sprintf(buffer, "ADDQMOD $%X,R%02d", convert_zero[reg1], reg2); break; } - sprintf(buffer,"%-24s (%04X)", buffer, op); + sprintf(bufferOut,"%-24s (%04X)", buffer, op); return size; }