diff --git a/gr-sim/hgr/BALLC.BIN b/gr-sim/hgr/BALLC.BIN new file mode 100644 index 00000000..f1def064 Binary files /dev/null and b/gr-sim/hgr/BALLC.BIN differ diff --git a/gr-sim/hgr/MERRY.BIN b/gr-sim/hgr/MERRY.BIN new file mode 100644 index 00000000..52b04231 Binary files /dev/null and b/gr-sim/hgr/MERRY.BIN differ diff --git a/gr-sim/hgr/Makefile b/gr-sim/hgr/Makefile index 69525f61..0f4d8757 100644 --- a/gr-sim/hgr/Makefile +++ b/gr-sim/hgr/Makefile @@ -6,7 +6,7 @@ SDL_LIBS= `sdl-config --libs` SDL_INCLUDE= `sdl-config --cflags` GR_SIM = ../gr-sim.a -all: fireworks fw_purple lines image_load hgr_view seven random16 +all: fireworks fw_purple lines image_load hgr_view seven random16 scroll ### @@ -65,6 +65,14 @@ random16.o: random16.c #### +scroll: scroll.o $(GR_SIM) + $(CC) $(LFLAGS) $(SDL_LIBS) -o scroll scroll.o $(GR_SIM) + +scroll.o: scroll.c + $(CC) $(CFLAGS) -c scroll.c + +#### + clean: - rm -f *~ *.o fireworks lines image_load hgr_view fw_purple seven random16 + rm -f *~ *.o fireworks lines image_load hgr_view fw_purple seven random16 scroll diff --git a/gr-sim/hgr/scroll.c b/gr-sim/hgr/scroll.c new file mode 100644 index 00000000..136f439a --- /dev/null +++ b/gr-sim/hgr/scroll.c @@ -0,0 +1,55 @@ +#include +#include +#include + +#include + +#include "gr-sim.h" + +int main(int argc, char **argv) { + + int ch,fd; + + grsim_init(); + + home(); + + hgr(); + /* Show all 280x192, no bottom text */ + soft_switch(MIXCLR); + + fd=open("MERRY.BIN",O_RDONLY); + if (fd<0) { + printf("Error opening!\n"); + return -1; + } + read(fd,&ram[0x2000],8192); + close(fd); + + grsim_update(); + + while(1) { + ch=grsim_input(); + if (ch) break; + usleep(100000); + } + + fd=open("BALLC.BIN",O_RDONLY); + if (fd<0) { + printf("Error opening!\n"); + return -1; + } + read(fd,&ram[0x2000],8192); + close(fd); + + grsim_update(); + + while(1) { + ch=grsim_input(); + if (ch) break; + usleep(100000); + } + + + return 0; +}