aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-12-29 18:35:39 -0800
committerH. Peter Anvin <hpa@zytor.com>2008-12-29 18:35:39 -0800
commitd0ab04608f507229241e10f6609430ab2fe1357f (patch)
tree2d39da9b44ace0db79af2572f4e87938473c77fe
parent10c18661ca1575967bae57213c172fb5b24405b8 (diff)
downloadabc80-d0ab04608f507229241e10f6609430ab2fe1357f.tar.gz
abc80-d0ab04608f507229241e10f6609430ab2fe1357f.tar.xz
abc80-d0ab04608f507229241e10f6609430ab2fe1357f.zip
sddrom.asm: move LED codes to include file, add a few more
Move the LED codes to a separate include file, and add a few more in case we ever need them.
-rw-r--r--data/Makefile4
-rw-r--r--data/led.inc39
-rw-r--r--data/sddrom.asm38
3 files changed, 43 insertions, 38 deletions
diff --git a/data/Makefile b/data/Makefile
index ce2b00f..fdf0aa4 100644
--- a/data/Makefile
+++ b/data/Makefile
@@ -2,7 +2,7 @@ PERL = perl
BIN2MIF = bin2mif.pl
Z80ASM = ../tools/z80asm/z80asm
-.SUFFIXES: .bdf .asm .obj .bin .mif .bas .rom .pl
+.SUFFIXES: .bdf .asm .obj .bin .mif .bas .rom .pl .inc
.asm.bin:
$(Z80ASM) -o $@ -l $*.lst $<
@@ -72,3 +72,5 @@ clean:
dist: all
rm -f *.obj
rm -f $(filter-out abc80rom.bin,$(wildcard *.bin))
+
+sddrom.bin: sddrom.asm led.inc
diff --git a/data/led.inc b/data/led.inc
new file mode 100644
index 0000000..4a1c19e
--- /dev/null
+++ b/data/led.inc
@@ -0,0 +1,39 @@
+LED_0: equ 10111111b
+LED_1: equ 10000110b
+LED_2: equ 11011011b
+LED_3: equ 11001111b
+LED_4: equ 11100110b
+LED_5: equ 11101101b
+LED_6: equ 11111101b
+LED_7: equ 10000111b
+LED_8: equ 11111111b
+LED_9: equ 11101111b
+LED_A: equ 11110111b
+LED_a: equ 11011111b
+LED_b: equ 11111100b
+LED_C: equ 10111001b
+LED_c: equ 11011000b
+LED_d: equ 11011110b
+LED_E: equ 11111001b
+LED_e: equ 11111011b
+LED_F: equ 11110001b
+LED_H: equ 11110110b
+LED_h: equ 11110100b
+LED_i: equ 10000100b
+LED_J: equ 10011110b
+LED_L: equ 10111000b
+LED_n: equ 11010100b
+LED_o: equ 11011100b
+LED_P: equ 11110011b
+LED_q: equ 11100111b
+LED_r: equ 11010000b
+LED_t: equ 11111000b
+LED_U: equ 10111110b
+LED_u: equ 10011100b
+LED_y: equ 11101110b
+LED_minus: equ 11000000b
+LED_under: equ 10001000b
+LED_over: equ 10000001b
+LED_uo: equ 10001001b
+LED_equals: equ 11001000b
+LED_xi: equ 11001001b
diff --git a/data/sddrom.asm b/data/sddrom.asm
index 9d1b6cb..290b84e 100644
--- a/data/sddrom.asm
+++ b/data/sddrom.asm
@@ -16,43 +16,7 @@
;
; LED codes
-LED_0: equ 10111111b
-LED_1: equ 10000110b
-LED_2: equ 11011011b
-LED_3: equ 11001111b
-LED_4: equ 11100110b
-LED_5: equ 11101101b
-LED_6: equ 11111101b
-LED_7: equ 10000111b
-LED_8: equ 11111111b
-LED_9: equ 11101111b
-LED_A: equ 11110111b
-LED_a: equ 11011111b
-LED_b: equ 11111100b
-LED_C: equ 10111001b
-LED_c: equ 11011000b
-LED_d: equ 11011110b
-LED_E: equ 11111001b
-LED_e: equ 11111011b
-LED_F: equ 11110001b
-LED_H: equ 11110110b
-LED_h: equ 11110100b
-LED_L: equ 10111000b
-LED_n: equ 11010100b
-LED_o: equ 11011100b
-LED_P: equ 11110011b
-LED_q: equ 11100111b
-LED_r: equ 11010000b
-LED_t: equ 11111000b
-LED_U: equ 10111110b
-LED_u: equ 10011100b
-LED_y: equ 11101110b
-LED_minus: equ 11000000b
-LED_under: equ 10001000b
-LED_over: equ 10000001b
-LED_uo: equ 10001001b
-LED_equals: equ 11001000b
-LED_xi: equ 11001001b
+include 'led.inc'
; -----------------------------------------------------------
; Data area