X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fasm6502.c;h=2228a38e4052b93e31d28a7f3077b2a0c7bed65e;hp=bceb4fb499a4d2e2611bc9bafd5b83deaf9a2952;hb=aa75c7476aeaa84cf3abc192b376a8b03c325213;hpb=88cfe534a698a0562e81345957a50714af1453bc diff --git a/hacks/asm6502.c b/hacks/asm6502.c index bceb4fb4..2228a38e 100644 --- a/hacks/asm6502.c +++ b/hacks/asm6502.c @@ -20,8 +20,6 @@ I changed the structure of the assembler in this version. */ -#define NDEBUG /* Uncomment when done with debugging */ - #include #include /*#include */ @@ -41,7 +39,7 @@ # define random rand #endif*/ -#ifndef USE_IPHONE +#ifndef HAVE_MOBILE # define READ_FILES #endif @@ -1876,7 +1874,7 @@ static BOOL translate(m6502_Opcodes *op,Param *param, machine_6502 *machine){ if (op->BRA) { pushByte(machine, op->BRA); { - int diff = abs(param->lbladdr - machine->defaultCodePC); + int diff = (param->lbladdr - machine->defaultCodePC); int backward = (param->lbladdr < machine->defaultCodePC); pushByte(machine, (backward) ? 0xff - diff : diff - 1); }