--- mon/src/mon_6502.cpp 1999/10/04 19:31:09 1.1 +++ mon/src/mon_6502.cpp 2000/04/24 13:10:06 1.4 @@ -1,10 +1,24 @@ /* * mon_6502.cpp - 6502 disassembler * - * (C) 1997-1999 Christian Bauer + * mon (C) 1997-2000 Christian Bauer, Marc Hellwig + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include +#include "sysdeps.h" #include "mon.h" #include "mon_6502.h" @@ -172,7 +186,7 @@ int disass_6502(FILE *f, uint32 adr, uin break; case A_REL: - fprintf(f, "$%04lx", (adr + 2) + (int8)lo); + fprintf(f, "$%04x", (adr + 2) + (int8)lo); break; case A_ZERO: