Overlooked a few target tests that take the address of main().

This commit is contained in:
Kugel Fuhr
2024-09-02 16:55:58 +02:00
parent cd4357057f
commit 79606c4d20
3 changed files with 9 additions and 3 deletions

View File

@@ -21,6 +21,8 @@ unsigned int *MEMTOP = (unsigned int *)741;
unsigned int *MEMLO = (unsigned int *)743;
void *allocmem;
void code(void) { }
int main(void)
{
allocmem = malloc(257);
@@ -35,7 +37,7 @@ int main(void)
printf(" MEMLO = $%04X (%u)\n", *MEMLO, *MEMLO);
printf(" ----------------------\n");
printf(" main: $%04X (code)\n", &main);
printf(" code: $%04X (code)\n", &code);
printf(" data: $%04X (data)\n", &data);
printf(" _dos_type: $%04X (bss)\n", &_dos_type);
printf(" allocmem: $%04X (dyn. data)\n", allocmem);