Update multidemo.c

This commit is contained in:
Stefan
2024-12-09 00:44:44 +01:00
committed by GitHub
parent 8b008052cb
commit 5d2730f4b4

View File

@@ -64,34 +64,34 @@ 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)
{ {
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 loademdriver (void) unsigned char loademdriver (void)