Updated date in copyright from 2011 to 2011-2012
//
// RMAC - Reboot's Macro Assembler for the Atari Jaguar Console System
// DEBUG.C - Debugging Messages
//
// RMAC - Reboot's Macro Assembler for the Atari Jaguar Console System
// DEBUG.C - Debugging Messages
-// Copyright (C) 199x Landon Dyer, 2011 Reboot and Friends
+// Copyright (C) 199x Landon Dyer, 2011-2012 Reboot and Friends
// RMAC derived from MADMAC v1.07 Written by Landon Dyer, 1986
// Source Utilised with the Kind Permission of Landon Dyer
//
// RMAC derived from MADMAC v1.07 Written by Landon Dyer, 1986
// Source Utilised with the Kind Permission of Landon Dyer
//
- printf("$%lx ", *tp++);
+ printf("$%ux ", *tp++);
- printf("ACONST=($%lx,$%lx) ", *tp, tp[1]);
+ printf("ACONST=($%ux,$%ux) ", *tp, tp[1]);
- printf("chloc=$%08lx, chsize=$%lx\n", ch->chloc, ch->ch_size);
+ printf("chloc=$%08ux, chsize=$%ux\n", ch->chloc, ch->ch_size);
mdump(ch->chptr, ch->ch_size, format, ch->chloc);
ch = ch->chnext;
}
mdump(ch->chptr, ch->ch_size, format, ch->chloc);
ch = ch->chnext;
}
file = *p.wp++;
line = *p.wp++;
file = *p.wp++;
line = *p.wp++;
- printf("$%04x $%08lx %d.%d: ", (int)attr, loc, (int)file, (int)line);
+ printf("$%04x $%08ux %d.%d: ", (int)attr, loc, (int)file, (int)line);
for(mch=firstmch; mch!=NULL; mch=mch->mcnext)
{
for(mch=firstmch; mch!=NULL; mch=mch->mcnext)
{
- printf("mch=$%08lx mcptr=$%08lx mcalloc=$%lx mcused=$%x\n",
- (unsigned long int)mch,
- (unsigned long int)(mch->mcptr.lw),
+ printf("mch=$%08ux mcptr=$%08ux mcalloc=$%ux mcused=$%x\n",
+ (uint32_t)mch,
+ (mch->mcptr.lw),
- (unsigned int)(mch->mcused));
if (w & MSYMBOL)
symbol = *p.sy++;
if (w & MSYMBOL)
symbol = *p.sy++;
- printf("m=$%04x to=%d loc=$%lx from=%d siz=%s",
+ printf("m=$%04x to=%d loc=$%ux from=%d siz=%s",
w, w & 0x00ff, loc, from, (w & MLONG) ? "long" : "word");
if (symbol != NULL)
w, w & 0x00ff, loc, from, (w & MLONG) ? "long" : "word");
if (symbol != NULL)
- printf("%08lx ", base);
+ printf("%08ux ", base);
- printf("REG=%ld", *tk++ - 128);
+ printf("REG=%ud", *tk++ - 128);
continue;
}
switch ((int)*tk++)
{
case CONST: // CONST <value>
continue;
}
switch ((int)*tk++)
{
case CONST: // CONST <value>
- printf("CONST=%ld", *tk++);
+ printf("CONST=%ud", *tk++);
break;
case STRING: // STRING <address>
printf("STRING='%s'", (char *)*tk++);
break;
case STRING: // STRING <address>
printf("STRING='%s'", (char *)*tk++);
for(i = 1; i < NSECTS; ++i)
if(sect[i].scattr & SUSED) {
for(i = 1; i < NSECTS; ++i)
if(sect[i].scattr & SUSED) {
- printf("Section %d sloc=$%lx\n", i, sect[i].sloc);
+ printf("Section %d sloc=$%ux\n", i, sect[i].sloc);
printf("Code:\n");
chdump(sect[i].sfcode, 1);
printf("Code:\n");
chdump(sect[i].sfcode, 1);
printf("\nMarks:\n");
mudump(); // Dump marks
printf("\nMarks:\n");
mudump(); // Dump marks
- printf("Total memory allocated=$%lx\n", amemtot);
+ printf("Total memory allocated=$%ux\n", amemtot);
//
// RMAC - Reboot's Macro Assembler for the Atari Jaguar Console System
// LISTING.C - Listing Output
//
// RMAC - Reboot's Macro Assembler for the Atari Jaguar Console System
// LISTING.C - Listing Output
-// Copyright (C) 199x Landon Dyer, 2011 Reboot and Friends
+// Copyright (C) 199x Landon Dyer, 2011-2012 Reboot and Friends
// RMAC derived from MADMAC v1.07 Written by Landon Dyer, 1986
// Source Utilised with the Kind Permission of Landon Dyer
// -------------------------------------------------------------------------------------------------
// RMAC derived from MADMAC v1.07 Written by Landon Dyer, 1986
// Source Utilised with the Kind Permission of Landon Dyer
// -------------------------------------------------------------------------------------------------
LONG count;
int fixcount;
LONG count;
int fixcount;
- DEBUG printf("~list: lsloc=$%lx sloc=$%lx\n", lsloc, sloc);
+ DEBUG printf("~list: lsloc=$%ux sloc=$%ux\n", lsloc, sloc);
- sprintf(buf, "%08lx", lsloc);
+ sprintf(buf, "%08ux", lsloc);
scopy(lnimage+LOC_COL, buf, 8);
}
scopy(lnimage+LOC_COL, buf, 8);
}
uc_ln(lnimage);
ship_ln(lnimage);
lnfill(lnimage, SRC_COL, SPACE); // Fill with spaces
uc_ln(lnimage);
ship_ln(lnimage);
lnfill(lnimage, SRC_COL, SPACE); // Fill with spaces
- sprintf(buf, "%08lx", lsloc);
+ sprintf(buf, "%08ux", lsloc);
scopy(lnimage+LOC_COL, buf, 8);
}
scopy(lnimage+LOC_COL, buf, 8);
}
//
int listvalue(VALUE v) {
//
int listvalue(VALUE v) {
- sprintf(buf, "=%08lx", v);
+ sprintf(buf, "=%08ux", v);
scopy(lnimage+DATA_COL-1, buf, 9);
return(0);
}
scopy(lnimage+DATA_COL-1, buf, 9);
return(0);
}
//
// RMAC - Reboot's Macro Assembler for the Atari Jaguar Console System
// MARK.C - A record of things that are defined relative to any of the sections
//
// RMAC - Reboot's Macro Assembler for the Atari Jaguar Console System
// MARK.C - A record of things that are defined relative to any of the sections
-// Copyright (C) 199x Landon Dyer, 2011 Reboot and Friends
+// Copyright (C) 199x Landon Dyer, 2011-2012 Reboot and Friends
// RMAC derived from MADMAC v1.07 Written by Landon Dyer, 1986
// Source Utilised with the Kind Permission of Landon Dyer
//
// RMAC derived from MADMAC v1.07 Written by Landon Dyer, 1986
// Source Utilised with the Kind Permission of Landon Dyer
//
diff |= ((LONG)(*dp++ & 0xff)) << 16;
diff |= ((LONG)(*dp++ & 0xff)) << 8;
diff |= (LONG)(*dp & 0xff);
diff |= ((LONG)(*dp++ & 0xff)) << 16;
diff |= ((LONG)(*dp++ & 0xff)) << 8;
diff |= (LONG)(*dp & 0xff);
- DEBUG printf("diff=%lx ==> ", diff);
+ DEBUG printf("diff=%ux ==> ", diff);
if(rflag & 0x01)
diff = ((diff >> 16) & 0x0000FFFF) | ((diff << 16) & 0xFFFF0000);
diff += sect[TEXT].sloc;
if(rflag & 0x01)
diff = ((diff >> 16) & 0x0000FFFF) | ((diff << 16) & 0xFFFF0000);
diff += sect[TEXT].sloc;
*dp++ = (char)(diff >> 16);
*dp++ = (char)(diff >> 8);
*dp = (char)diff;
*dp++ = (char)(diff >> 16);
*dp++ = (char)(diff >> 8);
*dp = (char)diff;
- DEBUG printf("%lx\n", diff);
+ DEBUG printf("%ux\n", diff);
//
// RMAC - Reboot's Macro Assembler for the Atari Jaguar Console System
// SYMBOL.C - Symbol Handling
//
// RMAC - Reboot's Macro Assembler for the Atari Jaguar Console System
// SYMBOL.C - Symbol Handling
-// Copyright (C) 199x Landon Dyer, 2011 Reboot and Friends
+// Copyright (C) 199x Landon Dyer, 2011-2012 Reboot and Friends
// RMAC derived from MADMAC v1.07 Written by Landon Dyer, 1986
// Source Utilised with the Kind Permission of Landon Dyer
//
// RMAC derived from MADMAC v1.07 Written by Landon Dyer, 1986
// Source Utilised with the Kind Permission of Landon Dyer
//
c1 = tdb_text[w & TDB];
if(c == 'x') strcpy(ln2, "external");
else {
c1 = tdb_text[w & TDB];
if(c == 'x') strcpy(ln2, "external");
else {
- sprintf(ln2, "%08lx", q->svalue);
+ sprintf(ln2, "%08ux", q->svalue);
//
// RMAC - Reboot's Macro Assembler for the Atari Jaguar Console System
// TOKEN.C - Token Handling
//
// RMAC - Reboot's Macro Assembler for the Atari Jaguar Console System
// TOKEN.C - Token Handling
-// Copyright (C) 199x Landon Dyer, 2011 Reboot and Friends
+// Copyright (C) 199x Landon Dyer, 2011-2012 Reboot and Friends
// RMAC derived from MADMAC v1.07 Written by Landon Dyer, 1986
// Source Utilised with the Kind Permission of Landon Dyer
//
// RMAC derived from MADMAC v1.07 Written by Landon Dyer, 1986
// Source Utilised with the Kind Permission of Landon Dyer
//
}
goto copy_d;
case '~': // ==> unique label string Mnnnn...
}
goto copy_d;
case '~': // ==> unique label string Mnnnn...
- sprintf(numbuf, "M%ld", curuniq);
+ sprintf(numbuf, "M%ud", curuniq);
continue;
break;
case CONST:
continue;
break;
case CONST:
- sprintf(numbuf, "$%lx", (LONG)*tk++);
+ sprintf(numbuf, "$%ux", (LONG)*tk++);
d = numbuf;
break;
case DEQUALS:
d = numbuf;
break;
case DEQUALS: