if i add '-a' to the command line it should have the Lxxyy label, is that correct? since it seems not to work on my install
Code: Select all
z88dk-dis -a -x this.map -o 30789 -mz80 fruit16k.bin > fruit16k_009.asm
buildscr:
ld a,$32 ;[7845] 3e 32
ld (ATTRT),a ;[7847] 32 8f 5c
nxtchr:
ld a,e ;[784a] 7b
rst $10 ;[784b] d7
ld a,c ;[784c] 79
rst $10 ;[784d] d7
ld a,$01 ;[784e] 3e 01
rst $10 ;[7850] d7
ld b,$19 ;[7851] 06 19
like in, which seems twice the same print statement. probably i see it wrong.
but in both cases of C_autolabel the same start2+= and equal printf statements are used
i asume only the first while is needed, but lacking the real c_autolable output, which COULD be "Lxxyy"
but i am not sure at al
Code: Select all
static void disassemble_loop(int start, int end)
{
static char buf[2048];
int start2 = start;
while ( start2 < end ) {
start2 += disassemble2(start2, buf, sizeof(buf), 0);
if (c_autolabel) {
printf("%s\n",buf);
}
}
if ( c_autolabel ) {
start2 = start;
while ( start2 < end ) {
start2 += disassemble2(start2, buf, sizeof(buf), 0);
printf("%s\n",buf);
}
}
}
MAYBE ??
Code: Select all
static void disassemble_loop(int start, int end)
{
static char buf[2048];
int start2 = start;
while ( start2 < end ) {
start2 += disassemble2(start2, buf, sizeof(buf), 0);
if (c_autolabel) { printf("%s\n", label ); }
printf("%s\n",buf);
}
}