From f66ec0a8a6d248f1bd9c1556d282f52f3113bf41 Mon Sep 17 00:00:00 2001 From: Connor Date: Sat, 20 Oct 2018 04:59:45 -0700 Subject: [PATCH 1/2] --- 0017 V00744020.xxd.patch | 4 ++++ 0023 V007492E0.xxd.patch | 10 ++++++++++ cmd.sh | 3 +++ 3 files changed, 17 insertions(+) create mode 100644 0017 V00744020.xxd.patch create mode 100644 0023 V007492E0.xxd.patch create mode 100644 cmd.sh 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..9f3f886 --- /dev/null +++ b/cmd.sh @@ -0,0 +1,3 @@ +# change the "340f 0002" instruction in file 0023 to select a game (0001 to 0007) +diff <(xxd e106dff*/0017*) <(xxd dnm-instant-famicom/0017*) > '0017 V00744020.xxd.patch' +diff <(xxd e106dff*/0023*) <(xxd dnm-instant-famicom/0023*) > '0023 V007492E0.xxd.patch' From 04ccfec87b3e5efdcd22a49678e9fac49b0d7917 Mon Sep 17 00:00:00 2001 From: Connor Date: Sat, 20 Oct 2018 05:13:20 -0700 Subject: [PATCH 2/2] --- cmd.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cmd.sh b/cmd.sh index 9f3f886..ca4cc55 100644 --- a/cmd.sh +++ b/cmd.sh @@ -1,3 +1,10 @@ -# change the "340f 0002" instruction in file 0023 to select a game (0001 to 0007) +# 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'