Made overlaydemo compatible with the Atari:
- 8.3 overlay filenames - exit only after keypress git-svn-id: svn://svn.cc65.org/cc65/trunk@5740 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -79,6 +79,7 @@ EXELIST = ascii \
|
|||||||
mandelbrot \
|
mandelbrot \
|
||||||
mousedemo \
|
mousedemo \
|
||||||
nachtm \
|
nachtm \
|
||||||
|
ovrldemo \
|
||||||
plasma \
|
plasma \
|
||||||
sieve \
|
sieve \
|
||||||
tgidemo
|
tgidemo
|
||||||
@@ -122,7 +123,7 @@ endif
|
|||||||
|
|
||||||
nachtm: nachtm.o
|
nachtm: nachtm.o
|
||||||
|
|
||||||
overlaydemo: overlaydemo.o
|
ovrldemo: overlaydemo.o
|
||||||
@$(LD) -t $(SYS) -m $(basename $@).map -C $(SYS)-overlay.cfg -o $@ $^ $(CLIB)
|
@$(LD) -t $(SYS) -m $(basename $@).map -C $(SYS)-overlay.cfg -o $@ $^ $(CLIB)
|
||||||
|
|
||||||
plasma: plasma.o
|
plasma: plasma.o
|
||||||
@@ -168,5 +169,3 @@ clean:
|
|||||||
.PHONY: zap
|
.PHONY: zap
|
||||||
zap: clean
|
zap: clean
|
||||||
$(RM) $(EXELIST) samples.d64
|
$(RM) $(EXELIST) samples.d64
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <conio.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
@@ -70,17 +71,19 @@ unsigned char loadfile (char *name, void *addr, void *size)
|
|||||||
void main (void)
|
void main (void)
|
||||||
{
|
{
|
||||||
log ("Calling overlay 1 from main");
|
log ("Calling overlay 1 from main");
|
||||||
if (loadfile ("overlaydemo.1", &_OVERLAY1_LOAD__, &_OVERLAY1_SIZE__)) {
|
if (loadfile ("ovrldemo.1", &_OVERLAY1_LOAD__, &_OVERLAY1_SIZE__)) {
|
||||||
foo ();
|
foo ();
|
||||||
}
|
}
|
||||||
|
|
||||||
log ("Calling overlay 2 from main");
|
log ("Calling overlay 2 from main");
|
||||||
if (loadfile ("overlaydemo.2", &_OVERLAY2_LOAD__, &_OVERLAY2_SIZE__)) {
|
if (loadfile ("ovrldemo.2", &_OVERLAY2_LOAD__, &_OVERLAY2_SIZE__)) {
|
||||||
bar ();
|
bar ();
|
||||||
}
|
}
|
||||||
|
|
||||||
log ("Calling overlay 3 from main");
|
log ("Calling overlay 3 from main");
|
||||||
if (loadfile ("overlaydemo.3", &_OVERLAY3_LOAD__, &_OVERLAY3_SIZE__)) {
|
if (loadfile ("ovrldemo.3", &_OVERLAY3_LOAD__, &_OVERLAY3_SIZE__)) {
|
||||||
foobar ();
|
foobar ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cgetc ();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user