mirror of
https://github.com/cc65/cc65.git
synced 2025-01-03 01:31:55 +00:00
Update overlay-demo.c
This commit is contained in:
parent
be6819ca1f
commit
316ee4ad5b
@ -27,7 +27,7 @@ void show(char *name)
|
|||||||
** rather place the all the code of certain source files into the overlay by
|
** rather place the 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)
|
||||||
{
|
{
|
||||||
@ -39,27 +39,27 @@ void foo(void)
|
|||||||
show("One");
|
show("One");
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma code-name(pop);
|
#pragma code-name(pop)
|
||||||
|
|
||||||
|
|
||||||
#pragma code-name(push, "OVERLAY2");
|
#pragma code-name(push, "OVERLAY2")
|
||||||
|
|
||||||
void bar(void)
|
void bar(void)
|
||||||
{
|
{
|
||||||
show("Two");
|
show("Two");
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma code-name(pop);
|
#pragma code-name(pop)
|
||||||
|
|
||||||
|
|
||||||
#pragma code-name(push, "OVERLAY3");
|
#pragma code-name(push, "OVERLAY3")
|
||||||
|
|
||||||
void foobar (void)
|
void foobar (void)
|
||||||
{
|
{
|
||||||
show("Three");
|
show("Three");
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma code-name(pop);
|
#pragma code-name(pop)
|
||||||
|
|
||||||
|
|
||||||
void main(int /*argc*/, char *argv[])
|
void main(int /*argc*/, char *argv[])
|
||||||
|
Loading…
Reference in New Issue
Block a user