-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Supports SSD1309 based displays a part of KITB - Builds firmware separately for the original Kit vs the new Kit
- Loading branch information
1 parent
617000c
commit 9413168
Showing
5 changed files
with
48 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,25 @@ | ||
ASM_SOURCES = entry.s65 zeropage.s65 display.s65 util.s65 io.s65 api.s65 text.s65 | ||
|
||
all: flash_code firmware | ||
all: flash_code firmware_kita firmware_kitb | ||
|
||
FLASH_DIR = flash | ||
.PHONY: flash_code | ||
flash_code: | ||
$(MAKE) -C $(FLASH_DIR) | ||
|
||
# Compilation of assembler files | ||
%.o: %.s65 | ||
ca65 --cpu 6502 -o $@ -l $(@:.o=.lst) $< | ||
%_kita.o: %.s65 | ||
ca65 --cpu 6502 -D KITA -o $@ -l $(@:.o=.lst) $< | ||
|
||
all: firmware | ||
%_kitb.o: %.s65 | ||
ca65 --cpu 6502 -D KITB -o $@ -l $(@:.o=.lst) $< | ||
|
||
firmware: $(ASM_SOURCES:.s65=.o) | ||
firmware_kita: $(ASM_SOURCES:.s65=_kita.o) | ||
cl65 -C firmware.cfg -m firmware.map -o $@ $^ | ||
|
||
firmware_kitb: $(ASM_SOURCES:.s65=_kitb.o) | ||
cl65 -C firmware.cfg -m firmware.map -o $@ $^ | ||
|
||
clean: | ||
rm -f firmware *.s *.o *.lst *.map | ||
rm -f firmware_* *.s *.o *.lst *.map | ||
$(MAKE) -C $(FLASH_DIR) clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
|
||
MAJOR = $1 | ||
MINOR = $0 | ||
REVISION = $1 | ||
REVISION = $2 | ||
|
||
.setcpu "6502" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters