mirror of
https://codeberg.org/hkzlab/TK2048.git
synced 2026-01-04 12:09:20 +11:00
Update the Makefile to generate woz images
This commit is contained in:
parent
36ad3da27e
commit
ee893868cd
2 changed files with 8 additions and 5 deletions
8
Makefile
8
Makefile
|
|
@ -21,7 +21,7 @@ C_SRCS = main.c monitor_subroutines.c utility.c \
|
||||||
# Object files
|
# Object files
|
||||||
OBJS = $(ASM_SRCS:%.s=%.o) $(C_SRCS:%.c=%.o)
|
OBJS = $(ASM_SRCS:%.s=%.o) $(C_SRCS:%.c=%.o)
|
||||||
|
|
||||||
all: $(PRG).wav $(PRG).dsk
|
all: $(PRG).wav $(PRG).woz
|
||||||
|
|
||||||
%.o: %.s
|
%.o: %.s
|
||||||
as6502 --core=6502 --list-file=$(@:%.o=obj/%.lst) -o obj/$@ $<
|
as6502 --core=6502 --list-file=$(@:%.o=obj/%.lst) -o obj/$@ $<
|
||||||
|
|
@ -41,10 +41,14 @@ $(PRG).wav: $(PRG).bin
|
||||||
$(PRG).dsk: $(PRG).bin
|
$(PRG).dsk: $(PRG).bin
|
||||||
(cd out ; cp ../dsk/TK2048_AUTO_BRUN.dsk ./$(PRG).dsk; cat $(PRG).bin | $(JAVA) -jar $(ACMD) -p $(PRG).dsk HELLO B 0x801)
|
(cd out ; cp ../dsk/TK2048_AUTO_BRUN.dsk ./$(PRG).dsk; cat $(PRG).bin | $(JAVA) -jar $(ACMD) -p $(PRG).dsk HELLO B 0x801)
|
||||||
|
|
||||||
|
$(PRG).woz: $(PRG).dsk
|
||||||
|
(cd out ; dsk2woz ./$(PRG).dsk ./$(PRG).woz)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-(cd obj ; rm $(OBJS) $(OBJS:%.o=%.lst))
|
-(cd obj ; rm $(OBJS) $(OBJS:%.o=%.lst))
|
||||||
-rm obj/*.lst
|
-rm obj/*.lst
|
||||||
-rm out/*.hex
|
-rm out/*.hex
|
||||||
-rm out/*.bin
|
-rm out/*.bin
|
||||||
-rm out/*.wav
|
-rm out/*.wav
|
||||||
-rm out/*.dsk
|
-rm out/*.dsk
|
||||||
|
-rm out/*.woz
|
||||||
|
|
@ -1,11 +1,10 @@
|
||||||
(define memories
|
(define memories
|
||||||
;;; '((memory zeroPage (address (#x72 . #xdf)) (type ram) ;;; Should be starting at 0x56, ending at 0xff, but experiments in the monitor have shown doc is not to be trusted
|
'((memory zeroPage (address (#x56 . #xff)) (type ram) ;;; Should be starting at 0x56, ending at 0xff, but experiments in the monitor have shown doc is not to be trusted if monitor routines are used
|
||||||
'((memory zeroPage (address (#x56 . #xff)) (type ram) ;;; Should be starting at 0x56, ending at 0xff, but experiments in the monitor have shown doc is not to be trusted
|
|
||||||
(section registers zpage zzpage))
|
(section registers zpage zzpage))
|
||||||
(memory firstPage (address (#x100 . #x1ff)) (section stack))
|
(memory firstPage (address (#x100 . #x1ff)) (section stack))
|
||||||
(memory reserved (address (#x200 . #x7ff)) (type ram))
|
(memory reserved (address (#x200 . #x7ff)) (type ram))
|
||||||
(memory program (address (#x801 . #x1fff)) (type ram)
|
(memory program (address (#x801 . #x1fff)) (type ram)
|
||||||
(section (programStart #x801) startup code))
|
(section (programStart #x801) (dii_critical_wr_code #x804) dii_critical_rd_code startup code))
|
||||||
(memory displayPage1 (address (#x2000 . #x3fff)) (type ram) (section loadscreen))
|
(memory displayPage1 (address (#x2000 . #x3fff)) (type ram) (section loadscreen))
|
||||||
(memory upperData (address (#x4000 . #x85ff)) (type ram) (section switch idata cdata data_init_table)) ;;; usermem goes from 0x4000 to 0x9FFFF (included), we are splitting it
|
(memory upperData (address (#x4000 . #x85ff)) (type ram) (section switch idata cdata data_init_table)) ;;; usermem goes from 0x4000 to 0x9FFFF (included), we are splitting it
|
||||||
(memory upperMem (address (#x8600 . #x95ff)) (type ram) (section cstack zdata data heap zpsave))
|
(memory upperMem (address (#x8600 . #x95ff)) (type ram) (section cstack zdata data heap zpsave))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue