--- trunk/src/promemul/yamon.c 2007/10/08 16:19:28 21 +++ trunk/src/promemul/yamon.c 2007/10/08 16:19:37 22 @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005 Anders Gavare. All rights reserved. + * Copyright (C) 2005-2006 Anders Gavare. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -25,7 +25,7 @@ * SUCH DAMAGE. * * - * $Id: yamon.c,v 1.1 2005/08/29 14:46:34 debug Exp $ + * $Id: yamon.c,v 1.3 2006/02/16 05:57:10 debug Exp $ * * YAMON emulation. */ @@ -73,7 +73,7 @@ switch (ofs) { case 0x804: /* "print count": string at a1, count at a2 */ n = 0; - while (n < cpu->cd.mips.gpr[MIPS_GPR_A2]) { + while (n < (int)cpu->cd.mips.gpr[MIPS_GPR_A2]) { char ch = mem_readchar(cpu, MIPS_GPR_A1, n); console_putchar(cpu->machine->main_console_handle, ch);