1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-21 20:29:24 +00:00

Update overlaydemo.c

This commit is contained in:
Stefan 2024-12-09 18:25:34 +01:00 committed by GitHub
parent 5d2730f4b4
commit 5f2c5b58ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -39,7 +39,7 @@ void log (char *msg)
** rather place all the code of certain source files into the overlay by ** rather place all the code of certain source files into the overlay by
** compiling them with --code-name OVERLAY1. ** compiling them with --code-name OVERLAY1.
*/ */
#pragma code-name (push, "OVERLAY1"); #pragma code-name (push, "OVERLAY1")
void foo (void) void foo (void)
{ {
@ -51,27 +51,27 @@ void foo (void)
log ("Calling main from overlay 1"); log ("Calling main from overlay 1");
} }
#pragma code-name (pop); #pragma code-name (pop)
#pragma code-name (push, "OVERLAY2"); #pragma code-name (push, "OVERLAY2")
void bar (void) void bar (void)
{ {
log ("Calling main from overlay 2"); log ("Calling main from overlay 2");
} }
#pragma code-name (pop); #pragma code-name (pop)
#pragma code-name (push, "OVERLAY3"); #pragma code-name (push, "OVERLAY3")
void foobar (void) void foobar (void)
{ {
log ("Calling main from overlay 3"); log ("Calling main from overlay 3");
} }
#pragma code-name(pop); #pragma code-name(pop)
unsigned char loadfile (char *name, void *addr, void *size) unsigned char loadfile (char *name, void *addr, void *size)