Compare commits
No commits in common. "3753b2efbb770d16a1d1e7b915d787eb64e3f0e9" and "cea07fb48f98c6c757e35393f09c9c62e5da6a4a" have entirely different histories.
3753b2efbb
...
cea07fb48f
29
Makefile
29
Makefile
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
export PATH := $(PATH):/home/nick/code/nes/go-fds/bin
|
export PATH := $(PATH):/home/nick/code/nes/go-fds/bin
|
||||||
|
|
||||||
LBL=../../go-dasm-labels/bin/dasm2mlb
|
LBL=../../go-dasm-labels/bin/dasm2lbl
|
||||||
DA=../../cc65/bin/da65
|
DA=../../cc65/bin/da65
|
||||||
|
|
||||||
all: dasm/ bins/ labels/ \
|
all: dasm/ bins/ labels/ \
|
||||||
|
|
@ -11,27 +11,17 @@ all: dasm/ bins/ labels/ \
|
||||||
dasm/dk3_file4-post-copy.asm \
|
dasm/dk3_file4-post-copy.asm \
|
||||||
dasm/sf_rom-qd_file1_precopy.asm \
|
dasm/sf_rom-qd_file1_precopy.asm \
|
||||||
dasm/sf_rom-qd_file1_postcopy.asm \
|
dasm/sf_rom-qd_file1_postcopy.asm \
|
||||||
dasm/sf_slow_rom-qd_file1_precopy.asm \
|
|
||||||
dasm/sf_slow_rom-qd_file1_postcopy.asm \
|
|
||||||
dasm/sf_slow_rom_file1_precopy.asm \
|
dasm/sf_slow_rom_file1_precopy.asm \
|
||||||
dasm/sf_slow_rom_file1_postcopy.asm \
|
dasm/sf_slow_rom_file1_postcopy.asm \
|
||||||
dasm/sf_slow_qd_file1_precopy.asm \
|
|
||||||
dasm/sf_slow_qd_file1_postcopy.asm \
|
|
||||||
labels/sf_slow_rom_file1_postcopy.mlb \
|
labels/sf_slow_rom_file1_postcopy.mlb \
|
||||||
labels/sf_slow_qd_file1_postcopy.mlb \
|
|
||||||
labels/sf_slow_rom-qd_file1_postcopy.mlb \
|
|
||||||
labels/sf_rom-qd_file1_postcopy.mlb
|
labels/sf_rom-qd_file1_postcopy.mlb
|
||||||
|
|
||||||
dasm/dk3_file4.asm: bins/dk3_file4.bin
|
dasm/dk3_file4.asm: bins/dk3_file4.bin
|
||||||
dasm/dk3_file4-post-copy.asm: bins/dk3_file4.bin
|
dasm/dk3_file4-post-copy.asm: bins/dk3_file4.bin
|
||||||
dasm/sf_rom-qd_file1_precopy.asm: bins/sf_rom-qd_file1.bin
|
dasm/sf_rom-qd_file1_precopy.asm: bins/sf_rom-qd_file1.bin
|
||||||
dasm/sf_rom-qd_file1_postcopy.asm: bins/sf_rom-qd_file1.bin
|
dasm/sf_rom-qd_file1_postcopy.asm: bins/sf_rom-qd_file1.bin
|
||||||
dasm/sf_slow_rom-qd_file1_precopy.asm: bins/sf_slow_rom-qd_file1.bin
|
dasm/sf_slow_rom_file1_precopy.asm: bins/sf_slow_rom_file1.bin
|
||||||
dasm/sf_slow_rom-qd_file1_postcopy.asm: bins/sf_slow_rom-qd_file1.bin
|
dasm/sf_slow_rom_file1_postcopy.asm: bins/sf_slow_rom_file1.bin
|
||||||
dasm/sf_slow_rom_file1_precopy.asm: bins/sf_slow_rom_file1.bin
|
|
||||||
dasm/sf_slow_rom_file1_postcopy.asm: bins/sf_slow_rom_file1.bin
|
|
||||||
dasm/sf_slow_qd_file1_precopy.asm: bins/sf_slow_qd_file1.bin
|
|
||||||
dasm/sf_slow_qd_file1_postcopy.asm: bins/sf_slow_qd_file1.bin
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-rm dasm/* bins/* labels/*
|
-rm dasm/* bins/* labels/*
|
||||||
|
|
@ -51,5 +41,8 @@ labels/%.mlb: %.cfg.tmp
|
||||||
bins/dk3_file4.bin: roms/sf_dk3.fds
|
bins/dk3_file4.bin: roms/sf_dk3.fds
|
||||||
fdsextract --side 0 --file-num 4 --output $@ $^
|
fdsextract --side 0 --file-num 4 --output $@ $^
|
||||||
|
|
||||||
bins/%_file1.bin: roms/%.fds
|
bins/sf_rom-qd_file1.bin: roms/sf_rom-qd.fds
|
||||||
|
fdsextract --side 0 --file-num 1 --output $@ $^
|
||||||
|
|
||||||
|
bins/sf_slow_rom_file1.bin: roms/sf_slow_rom.fds
|
||||||
fdsextract --side 0 --file-num 1 --output $@ $^
|
fdsextract --side 0 --file-num 1 --output $@ $^
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@ $04 0000_0100 // written before copy
|
||||||
$14 0001_0100 // written before jmp to ROM
|
$14 0001_0100 // written before jmp to ROM
|
||||||
$4C 0100_1100 //
|
$4C 0100_1100 //
|
||||||
$84 1000_0100 // written before copy loop into $E000
|
$84 1000_0100 // written before copy loop into $E000
|
||||||
$8C 1000_1100 // written before jump to qd RESET vector (FDS BIOS reset vector)
|
|
||||||
$9D 1001_1101 // written before jump to rom RESET vector
|
$9D 1001_1101 // written before jump to rom RESET vector
|
||||||
|
|
||||||
0011_1011 3B
|
0011_1011 3B
|
||||||
|
|
|
||||||
|
|
@ -1,87 +0,0 @@
|
||||||
global {
|
|
||||||
cpu "6502";
|
|
||||||
inputname "bins/sf_slow_qd_file1.bin";
|
|
||||||
startaddr $5100;
|
|
||||||
commentcolumn 50;
|
|
||||||
comments 3;
|
|
||||||
};
|
|
||||||
|
|
||||||
label { addr $5100; name "Postcopy_Entry"; };
|
|
||||||
|
|
||||||
range { start $51E4; end $5219; name "SF_rom_copy"; type code; };
|
|
||||||
label { addr $5204; name "SF_copy_source"; };
|
|
||||||
label { addr $5207; name "SF_copy_destination"; };
|
|
||||||
|
|
||||||
label { addr $515A; name "SF_write_reg_fromVar"; };
|
|
||||||
label { addr $515D; name "SF_write_reg_fromA"; };
|
|
||||||
|
|
||||||
label { addr $53A2; name "SF_menu_init"; };
|
|
||||||
label { addr $52AF; name "SF_FDS_reset"; };
|
|
||||||
#
|
|
||||||
label { addr $52C9; name "SF_eject_check_loop"; };
|
|
||||||
#
|
|
||||||
label { addr $52F7; name "SF_DrawText"; comment "Draw text via FDS_VRAMStructWrite.\n; Write struct address to $5306.w before calling"; };
|
|
||||||
label { addr $53D6; name "SF_draw_done"; };
|
|
||||||
range { start $5302; end $5303; name "cv5302"; type addrtable; };
|
|
||||||
|
|
||||||
label { addr $512F; name "SF_CopyData"; comment "Copies the last page "; };
|
|
||||||
|
|
||||||
range { start $5348; end $5349; type addrtable; };
|
|
||||||
range { start $534A; end $5361; type bytetable; };
|
|
||||||
#
|
|
||||||
#label { addr $548A; name "SF_SlowNMI"; };
|
|
||||||
range { start $548A; end $558C; name "SF_SlowNMI"; type code; };
|
|
||||||
#
|
|
||||||
range { start $558D; end $58F5; type bytetable; };
|
|
||||||
|
|
||||||
range { start $5161; end $51E3; type code; };
|
|
||||||
label { addr $5179; name "L5179_loop"; };
|
|
||||||
#
|
|
||||||
range { start $524C; end $5261; type code; };
|
|
||||||
#
|
|
||||||
range { start $5296; end $52AE; type code; name "SF_ReadPPUData"; comment "Read X bytes from PPU. Aligned to the bank.\n; $529B: PPU Hi Source\n; $52AE: CPU Hi Destination"; };
|
|
||||||
label { addr $52A5; name "L52A5_loop"; };
|
|
||||||
label { addr $51A1; name "L51A1_loop"; };
|
|
||||||
label { addr $51DE; name "L51DE_next"; };
|
|
||||||
#
|
|
||||||
label { addr $52BA; name "SF_ScreenEject"; comment "Promts the user to eject the disk and waits for it to be ejected."; };
|
|
||||||
label { addr $5307; name "SF_ScreenSlowLevel"; comment "Promts the user for the slowdown speed."; };
|
|
||||||
label { addr $5161; name "SF_TransferData"; paramsize 3; comment "Transfers data based on a structure. Struct count and pointer are inline.\n; Bytes in struct:\n; RegValue, SrcPage, PageCount, DestPage"; };
|
|
||||||
|
|
||||||
label { addr $5185; name "cv5185"; size 2; };
|
|
||||||
label { addr $5199; name "cv5199"; size 2; };
|
|
||||||
label { addr $51A5; name "cv51A5"; size 3; };
|
|
||||||
|
|
||||||
# var_ labels are variables outside of the loaded disk file
|
|
||||||
label { addr $5FE0; name "var_5FE0"; };
|
|
||||||
label { addr $5FDE; name "var_5FDE"; };
|
|
||||||
label { addr $5F72; name "var_5F72"; };
|
|
||||||
label { addr $5FFF; name "var_5FFF"; };
|
|
||||||
label { addr $5FDF; name "var_5FDF_LoopCount"; };
|
|
||||||
label { addr $5F70; name "var_5F07"; size 2; };
|
|
||||||
label { addr $5F76; name "var_5F76"; size 8; };
|
|
||||||
|
|
||||||
label { addr $5F74; name "var_NMI_RegBackups"; size 2; };
|
|
||||||
|
|
||||||
## VRAM Structs
|
|
||||||
#
|
|
||||||
range { start $52DD; end $52DE; type addrtable; name "VRAM_Addr_EjectDisk"; };
|
|
||||||
range { start $52DF; end $52F6; type bytetable; name "VRAM_Data_EjectDisk"; };
|
|
||||||
#
|
|
||||||
|
|
||||||
range { start $58F6; end $58FF; type addrtable; };
|
|
||||||
label { addr $58F6; name "FDS_VectorMirror_DiskNMI1"; size 2; };
|
|
||||||
label { addr $58F8; name "FDS_VectorMirror_DiskNMI2"; size 2; };
|
|
||||||
label { addr $58FA; name "FDS_VectorMirror_DiskNMI3"; size 2; };
|
|
||||||
label { addr $58FC; name "FDS_VectorMirror_DiskReset"; size 2; };
|
|
||||||
label { addr $58FE; name "FDS_VectorMirror_DiskIRQ"; size 2; };
|
|
||||||
|
|
||||||
label { addr $6FFA; name "SF_NMI_Mirror"; size 2; };
|
|
||||||
label { addr $54E0; name "SF_NMI_Orig"; size 2; };
|
|
||||||
label { addr $54D4; name "SF_NMI_Hop"; comment "Run the original NMI routine"; };
|
|
||||||
|
|
||||||
label { addr $5FD0; name "SF_loop_counter"; };
|
|
||||||
|
|
||||||
range { start $53E0; end $5489; type bytetable; };
|
|
||||||
range { start $5152; end $5159; type bytetable; unit 4; };
|
|
||||||
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
global {
|
|
||||||
cpu "6502";
|
|
||||||
inputname "bins/sf_slow_qd_file1.bin";
|
|
||||||
startaddr $D800;
|
|
||||||
commentcolumn 50;
|
|
||||||
comments 3;
|
|
||||||
};
|
|
||||||
|
|
||||||
label { addr $DFF0; name "Precopy_IRQ"; };
|
|
||||||
label { addr $DFC0; name "Precopy_Entry"; };
|
|
||||||
range { start $DF00; end $DF1B; type code; name "precopy_memcpy"; };
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
global {
|
|
||||||
cpu "6502";
|
|
||||||
inputname "bins/sf_slow_rom-qd_file1.bin";
|
|
||||||
startaddr $5100;
|
|
||||||
commentcolumn 50;
|
|
||||||
comments 3;
|
|
||||||
};
|
|
||||||
|
|
@ -1,17 +0,0 @@
|
||||||
global {
|
|
||||||
cpu "6502";
|
|
||||||
inputname "bins/sf_slow_rom-qd_file1.bin";
|
|
||||||
startaddr $D800;
|
|
||||||
commentcolumn 50;
|
|
||||||
comments 3;
|
|
||||||
};
|
|
||||||
|
|
||||||
label { addr $DFF0; name "IRQ"; };
|
|
||||||
label { addr $DFC0; name "Entry"; };
|
|
||||||
label { addr $DB00; name "Start"; };
|
|
||||||
|
|
||||||
range { start $DB00; end $DB6D; type code; };
|
|
||||||
|
|
||||||
range { start $DFE3; end $DFEF; type bytetable; };
|
|
||||||
range { start $DD7E; end $DFBF; type bytetable; };
|
|
||||||
range { start $DFF1; end $DFF5; type bytetable; };
|
|
||||||
|
|
@ -24,15 +24,13 @@ label { addr $52FB; name "SF_DrawText"; comment "Draw text via FDS_VRAMStructWr
|
||||||
label { addr $53DA; name "SF_draw_done"; };
|
label { addr $53DA; name "SF_draw_done"; };
|
||||||
range { start $5306; end $5307; type addrtable; };
|
range { start $5306; end $5307; type addrtable; };
|
||||||
|
|
||||||
label { addr $512C; name "SF_CopyData"; comment "Copies the last page "; };
|
|
||||||
|
|
||||||
range { start $534C; end $534D; type addrtable; };
|
range { start $534C; end $534D; type addrtable; };
|
||||||
range { start $534E; end $5365; type bytetable; };
|
range { start $534E; end $5365; type bytetable; };
|
||||||
|
|
||||||
label { addr $548E; name "SF_SlowNMI"; };
|
label { addr $548E; name "SF_SlowNMI"; };
|
||||||
range { start $548E; end $5597; type code; };
|
range { start $548E; end $5597; type code; };
|
||||||
|
|
||||||
range { start $5598; end $58F5; type bytetable; };
|
range { start $5697; end $58F5; type bytetable; };
|
||||||
|
|
||||||
#label { addr $5165; name "L5165"; paramsize 3; };
|
#label { addr $5165; name "L5165"; paramsize 3; };
|
||||||
range { start $5165; end $51D2; type code; };
|
range { start $5165; end $51D2; type code; };
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue