diff --git a/0017 V00744020.xxd.patch b/0017 V00744020.xxd.patch new file mode 100644 index 0000000..18c6f4f --- /dev/null +++ b/0017 V00744020.xxd.patch @@ -0,0 +1,4 @@ +40c40 +< 00000270: a040 009f 3c0e 8080 25ce 32f8 240f 2410 .@..<...%.2.$.$. +--- +> 00000270: a040 009f 3c0e 8083 25ce df6c 240f 00e0 .@..<...%..l$... diff --git a/0023 V007492E0.xxd.patch b/0023 V007492E0.xxd.patch new file mode 100644 index 0000000..694c099 --- /dev/null +++ b/0023 V007492E0.xxd.patch @@ -0,0 +1,10 @@ +1011,1012c1011,1012 +< 00003f20: 910f 09f8 a100 09f9 3c01 8085 a02f 49ce ........<..../I. +< 00003f30: 8d18 07a0 8fa7 0048 3c01 8085 0018 c82b .......H<......+ +--- +> 00003f20: 340f 0002 a100 09f9 3c01 8085 a02f 49ce 4.......<..../I. +> 00003f30: 3418 0014 8fa7 0048 3c01 8085 0018 c82b 4......H<......+ +1057c1057 +< 00004200: 0000 0000 0c03 483d 0000 0000 1040 fff9 ......H=.....@.. +--- +> 00004200: 0000 0000 0c03 483d 0000 0000 0000 0000 ......H=........ diff --git a/cmd.sh b/cmd.sh new file mode 100644 index 0000000..ca4cc55 --- /dev/null +++ b/cmd.sh @@ -0,0 +1,10 @@ +# the patch for file 0017 (N64 logo overlay) tells it to load the Famicom overlay next +# instead of the normal gameplay overlay. it's specified by its VRAM address and context size. +# these values were taken from the table loaded at 80106E20 (each element is 0x30 long). +diff <(xxd e106dff*/0017*) <(xxd dnm-instant-famicom/0017*) > '0017 V00744020.xxd.patch' + +# the patch for file 0023 (Famicom emulator overlay) tells it to load some constant values +# instead of loading them from a setup we never did. +# change the "340f 0002" instruction to select a game. (0001 to 0007) +# it also NOPs out of a loop that expects a flag to be set. +diff <(xxd e106dff*/0023*) <(xxd dnm-instant-famicom/0023*) > '0023 V007492E0.xxd.patch'