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:
parent
1bafd55557
commit
9b56f8086b
2 changed files with 8 additions and 6 deletions
|
@ -79,6 +79,7 @@ EXELIST = ascii \
|
|||
mandelbrot \
|
||||
mousedemo \
|
||||
nachtm \
|
||||
ovrldemo \
|
||||
plasma \
|
||||
sieve \
|
||||
tgidemo
|
||||
|
@ -122,7 +123,7 @@ endif
|
|||
|
||||
nachtm: nachtm.o
|
||||
|
||||
overlaydemo: overlaydemo.o
|
||||
ovrldemo: overlaydemo.o
|
||||
@$(LD) -t $(SYS) -m $(basename $@).map -C $(SYS)-overlay.cfg -o $@ $^ $(CLIB)
|
||||
|
||||
plasma: plasma.o
|
||||
|
@ -168,5 +169,3 @@ clean:
|
|||
.PHONY: zap
|
||||
zap: clean
|
||||
$(RM) $(EXELIST) samples.d64
|
||||
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
|
||||
#include <stdio.h>
|
||||
#include <conio.h>
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
|
||||
|
@ -70,17 +71,19 @@ unsigned char loadfile (char *name, void *addr, void *size)
|
|||
void main (void)
|
||||
{
|
||||
log ("Calling overlay 1 from main");
|
||||
if (loadfile ("overlaydemo.1", &_OVERLAY1_LOAD__, &_OVERLAY1_SIZE__)) {
|
||||
if (loadfile ("ovrldemo.1", &_OVERLAY1_LOAD__, &_OVERLAY1_SIZE__)) {
|
||||
foo ();
|
||||
}
|
||||
|
||||
log ("Calling overlay 2 from main");
|
||||
if (loadfile ("overlaydemo.2", &_OVERLAY2_LOAD__, &_OVERLAY2_SIZE__)) {
|
||||
if (loadfile ("ovrldemo.2", &_OVERLAY2_LOAD__, &_OVERLAY2_SIZE__)) {
|
||||
bar ();
|
||||
}
|
||||
|
||||
log ("Calling overlay 3 from main");
|
||||
if (loadfile ("overlaydemo.3", &_OVERLAY3_LOAD__, &_OVERLAY3_SIZE__)) {
|
||||
if (loadfile ("ovrldemo.3", &_OVERLAY3_LOAD__, &_OVERLAY3_SIZE__)) {
|
||||
foobar ();
|
||||
}
|
||||
|
||||
cgetc ();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue