Terminal program for MailStation devices
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Makefile: regenerate spleen-5x8.inc from .hex

+29 -22
+22 -15
Makefile
··· 19 19 ASZ80 ?= sdasz80 -l 20 20 SDCC ?= sdcc -mz80 21 21 22 + SRCDIR ?= ${.CURDIR} 23 + 22 24 OBJ ?= obj/ 23 25 24 26 all: msterm.bin ··· 29 31 # assembly 30 32 31 33 crt0.rel: crt0.s 32 - $(ASZ80) -o $@ $> 34 + $(ASZ80) -o ${.TARGET} $> 33 35 34 36 isr.rel: isr.s 35 - $(ASZ80) -o $@ $> 37 + $(ASZ80) -o ${.TARGET} $> 36 38 37 - putchar.rel: putchar.s 38 - $(ASZ80) -o $@ $> 39 + putchar.rel: putchar.s $(SRCDIR)/font/spleen-5x8.inc 40 + $(ASZ80) -o ${.TARGET} $(SRCDIR)/putchar.s 39 41 40 42 getchar.rel: getchar.s 41 - $(ASZ80) -o $@ $> 43 + $(ASZ80) -o ${.TARGET} $> 42 44 43 45 lpt.rel: lpt.s 44 - $(ASZ80) -o $@ $> 46 + $(ASZ80) -o ${.TARGET} $> 45 47 46 48 modem.rel: modem.s 47 - $(ASZ80) -o $@ $> 49 + $(ASZ80) -o ${.TARGET} $> 48 50 49 51 settings.rel: settings.s 50 - $(ASZ80) -o $@ $> 52 + $(ASZ80) -o ${.TARGET} $> 51 53 52 54 # c code 53 55 54 56 csi.rel: csi.c 55 - $(SDCC) -c $@ $> 57 + $(SDCC) -c ${.TARGET} $> 56 58 57 59 mailstation.rel: mailstation.c 58 - $(SDCC) -c $@ $> 60 + $(SDCC) -c ${.TARGET} $> 59 61 60 62 mslib.rel: mslib.c 61 - $(SDCC) -c $@ $> 63 + $(SDCC) -c ${.TARGET} $> 62 64 63 65 msterm.rel: msterm.c 64 - $(SDCC) -c $@ $> 66 + $(SDCC) -c ${.TARGET} $> 67 + 68 + # generated code 69 + 70 + font/spleen-5x8.inc: font/spleen-5x8.hex 71 + ruby $(SRCDIR)/tools/hexfont2inc.rb $> > $(SRCDIR)/${.TARGET} 65 72 66 73 # code-loc must be far enough to hold _HEADER code in crt0 67 74 msterm.ihx: crt0.rel isr.rel putchar.rel getchar.rel lpt.rel mailstation.rel \ 68 75 modem.rel msterm.rel mslib.rel csi.rel settings.rel 69 - $(SDCC) --no-std-crt0 --code-loc 0x8100 --data-loc 0x0000 -o $@ $> 76 + $(SDCC) --no-std-crt0 --code-loc 0x8100 --data-loc 0x0000 -o ${.TARGET} $> 70 77 71 78 msterm.bin: msterm.ihx 72 79 hex2bin msterm.ihx >/dev/null 73 - @if [ `stat -f '%z' $@` -gt 16384 ]; then \ 74 - echo "$@ overflows a dataflash page, must be <= 16384"; \ 80 + @if [ `stat -f '%z' ${.TARGET}` -gt 16384 ]; then \ 81 + echo "${.TARGET} overflows a dataflash page, must be <= 16384"; \ 75 82 exit 1; \ 76 83 fi 77 84
font/hexfont2inc.rb tools/hexfont2inc.rb
+5 -5
font/spleen-5x8.bdf
··· 3371 3371 BBX 6 8 0 -1 3372 3372 BITMAP 3373 3373 00 3374 - F8 3375 - F8 3376 - F8 3377 - F8 3378 - F8 3374 + 00 3375 + F0 3376 + F0 3377 + F0 3378 + F0 3379 3379 00 3380 3380 00 3381 3381 ENDCHAR
+1 -1
font/spleen-5x8.hex
··· 220 220 00FB:0000000000000000 221 221 00FC:0000000000000000 222 222 00FD:7010207000000000 223 - 00FE:00F8F8F8F8F80000 223 + 00FE:0000F0F0F0F00000 224 224 00FF:0000000000000000
+1 -1
font/spleen-5x8.inc
··· 252 252 .db #0x00, #0x00, #0x00, #0x00, #0x00, #0x00, #0x00, #0x00 253 253 .db #0x00, #0x00, #0x00, #0x00, #0x00, #0x00, #0x00, #0x00 254 254 .db #0x0e, #0x08, #0x04, #0x0e, #0x00, #0x00, #0x00, #0x00 255 - .db #0x00, #0x1f, #0x1f, #0x1f, #0x1f, #0x1f, #0x00, #0x00 255 + .db #0x00, #0x00, #0x0f, #0x0f, #0x0f, #0x0f, #0x00, #0x00 256 256 .db #0x00, #0x00, #0x00, #0x00, #0x00, #0x00, #0x00, #0x00