diff --git a/utils/gr-sim/twister/Makefile b/utils/gr-sim/twister/Makefile index c9649307..7b68b9a0 100644 --- a/utils/gr-sim/twister/Makefile +++ b/utils/gr-sim/twister/Makefile @@ -6,7 +6,7 @@ SDL_LIBS= `sdl-config --libs` SDL_INCLUDE= `sdl-config --cflags` all: generate_sines \ - twist_6502 + twist_6502 twist_dump ### @@ -24,9 +24,17 @@ twist_6502: twist_6502.o ../gr-sim.a twist_6502.o: twist_6502.c $(CC) $(CFLAGS) $(SDL_INCLUDE) -c twist_6502.c +### + +twist_dump: twist_dump.o ../gr-sim.a + $(CC) -o twist_dump twist_dump.o ../gr-sim.a $(LFLAGS) $(SDL_LIBS) + +twist_dump.o: twist_dump.c + $(CC) $(CFLAGS) $(SDL_INCLUDE) -c twist_dump.c + ### clean: - rm -f *~ *.o dots dots_dump dots_play dots_minimal dots_6502 dots_play2 + rm -f *~ *.o twist_6502 twist_dump diff --git a/utils/gr-sim/twister/twist_dump.c b/utils/gr-sim/twister/twist_dump.c new file mode 100644 index 00000000..95f0d9cd --- /dev/null +++ b/utils/gr-sim/twister/twist_dump.c @@ -0,0 +1,114 @@ +#include +#include +#include +#include +#include +#include + +//#include "../gr-sim.h" +//#include "../tfv_zp.h" + +unsigned char ram[40][48]; + + +int hlin(int color,int x1, int x2, int y) { + + int j; + + for(j=x1;j