nmikstas / dragon-warrior-disassembly

NES Dragon Warrior software disassembly
https://nmikstas.github.io/portfolio/dwDisassembly/dwDisassembly.html
64 stars 5 forks source link

How do I Producing a working ROM? #1

Open jobjojo opened 1 month ago

jobjojo commented 1 month ago

Screenshot 2024-06-04 213208

I was able to run Git Bash to assemble the source files. But I have a question, how do I compile the ROM to Load it into an NES emulator? I'm not that much familiar with assembly. If you could provide/add a Dropbox file with the complied ROM that would be great

ayub_@Yuber MINGW64 ~/Desktop $ ^C

ayub_@Yuber MINGW64 ~/Desktop $ cd ~/Desktop/DragonWarriorDisassembly

ayub_@Yuber MINGW64 ~/Desktop/DragonWarriorDisassembly $../build_script

Deleting previous build files...

Assembling individual PRG banks...

Loading Header.asm Assembly complete: 16 bytes output (0 code, 16 data, 0 filler) Loading Bank00.asm Loading Dragon_Warrior_Defines.asm Assembly complete: 16384 bytes output (5377 code, 11007 data, 0 filler) Loading Bank01.asm Loading Dragon_Warrior_Defines.asm Assembly complete: 16384 bytes output (5755 code, 10629 data, 0 filler) Loading Bank02.asm Loading Dragon_Warrior_Defines.asm Assembly complete: 16384 bytes output (324 code, 16060 data, 0 filler) Loading Bank03.asm Loading Dragon_Warrior_Defines.asm Assembly complete: 16384 bytes output (13287 code, 3097 data, 0 filler)

Calculating checksums of individual PRG banks...

--------------------PRG Bank 00-------------------- Assembled md5sum = 4494467c3c7f3401a5ea25947814b8bd Original md5sum = 4494467c3c7f3401a5ea25947814b8bd Pass

--------------------PRG Bank 01-------------------- Assembled md5sum = e34c39bfb3069bc6c563b0e614b22a49 Original md5sum = e34c39bfb3069bc6c563b0e614b22a49 Pass

--------------------PRG Bank 02-------------------- Assembled md5sum = 0135d12602c3efb5728a0f220ae916fd Original md5sum = 0135d12602c3efb5728a0f220ae916fd Pass

--------------------PRG Bank 03-------------------- Assembled md5sum = aae638b52ffc7a720a63d6ef1700a2b3 Original md5sum = aae638b52ffc7a720a63d6ef1700a2b3 Pass

ayub_@Yuber MINGW64 ~/Desktop/DragonWarriorDisassembly

nmikstas commented 1 month ago

Add both attached files to the DragonWarriorDisassembly folder. The new build_script will overwrite the original build_script. run the new build_script. There is an extra segment of code at the end that will combine all the files into a functional ROM. The CHR_ROM.bin file is all the graphical data for the game. Let me know if this works.

Nick

On Wed, Jun 5, 2024 at 7:07 AM jobjojo @.***> wrote:

Screenshot.2024-06-04.213208.png (view on web) https://github.com/nmikstas/dragon-warrior-disassembly/assets/132441374/52cc26b0-72c8-40e4-9dc7-01ea86be7d86

I was able to run Git Bash to assemble the source files. But I have a question, how do I compile the ROM to Load it into an NES emulator? I'm not that much familiar with assembly. If you could provide/add a Dropbox file with the complied ROM that would be great

@.*** MINGW64 ~/Desktop $ ^C

@.*** MINGW64 ~/Desktop $ cd ~/Desktop/DragonWarriorDisassembly

@.*** MINGW64 ~/Desktop/DragonWarriorDisassembly $../build_script

Deleting previous build files...

Assembling individual PRG banks...

Loading Header.asm Assembly complete: 16 bytes output (0 code, 16 data, 0 filler) Loading Bank00.asm Loading Dragon_Warrior_Defines.asm Assembly complete: 16384 bytes output (5377 code, 11007 data, 0 filler) Loading Bank01.asm Loading Dragon_Warrior_Defines.asm Assembly complete: 16384 bytes output (5755 code, 10629 data, 0 filler) Loading Bank02.asm Loading Dragon_Warrior_Defines.asm Assembly complete: 16384 bytes output (324 code, 16060 data, 0 filler) Loading Bank03.asm Loading Dragon_Warrior_Defines.asm Assembly complete: 16384 bytes output (13287 code, 3097 data, 0 filler)

Calculating checksums of individual PRG banks...

--------------------PRG Bank 00-------------------- Assembled md5sum = 4494467c3c7f3401a5ea25947814b8bd Original md5sum = 4494467c3c7f3401a5ea25947814b8bd Pass

--------------------PRG Bank 01-------------------- Assembled md5sum = e34c39bfb3069bc6c563b0e614b22a49 Original md5sum = e34c39bfb3069bc6c563b0e614b22a49 Pass

--------------------PRG Bank 02-------------------- Assembled md5sum = 0135d12602c3efb5728a0f220ae916fd Original md5sum = 0135d12602c3efb5728a0f220ae916fd Pass

--------------------PRG Bank 03-------------------- Assembled md5sum = aae638b52ffc7a720a63d6ef1700a2b3 Original md5sum = aae638b52ffc7a720a63d6ef1700a2b3 Pass

@.*** MINGW64 ~/Desktop/DragonWarriorDisassembly

— Reply to this email directly, view it on GitHub https://github.com/nmikstas/dragon-warrior-disassembly/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMOO3FMMI5OSJE673EEMLX3ZF4ERJAVCNFSM6AAAAABI2V565OVHI2DSMVQWIX3LMV43ASLTON2WKOZSGMZTKOBVHE2TIMQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

jobjojo commented 1 month ago

Thanks for the replying. My bad for asking bro again. But what two files am I supposed to attach to "DragonWarriorDisassembly" folder. Am I supposed to download both a "new " build_script and "CHR_ROM.bin" file ? I don't see any attached files or links from your reply ( or will these be added to the repo ?).

Besides that , I understand everything else about running the new build_script in Git bash to combine all files into a functional ROM

Here how everything looks in my DragonWarriorDisassembly folder: image image image

nmikstas commented 1 month ago

I attached 2 files to the email. Github may have removed them. Do you have a shared drive link or an alternate email address?

On Wednesday, June 5, 2024, jobjojo @.***> wrote:

Thanks for the replying. My bad for asking bro again. But what two files am I supposed to attach to "DragonWarriorDisassembly" folder. Am I supposed to download both a "new " build_script and "CHR_ROM.bin" file ? I don't see any attached files or links from your reply ( or will these be added to the repo ?).

Besides that , I understand everything else about running the new build_script in Git bash to combine all files into a functional ROM

Here how everything looks in my DragonWarriorDisassembly folder: image.png (view on web) https://github.com/nmikstas/dragon-warrior-disassembly/assets/132441374/b7f2bbd6-1e2b-43c6-b2e0-ab2a8ca9d0df image.png (view on web) https://github.com/nmikstas/dragon-warrior-disassembly/assets/132441374/9f0c0b68-33c5-4fd1-ae27-e3d0bcabeaa3 image.png (view on web) https://github.com/nmikstas/dragon-warrior-disassembly/assets/132441374/a162a204-3f9c-431c-bfeb-8ec915d08525

— Reply to this email directly, view it on GitHub https://github.com/nmikstas/dragon-warrior-disassembly/issues/1#issuecomment-2151390755, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMOO3FIDGYCCAMC44OEB5DLZF7QWXAVCNFSM6AAAAABI2V565OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJRGM4TANZVGU . You are receiving this because you commented.Message ID: @.***>

nmikstas commented 1 month ago

I sent you an email. It says I don't have permission to upload to that drive.

On Wed, Jun 5, 2024 at 10:52 PM jobjojo @.***> wrote:

@.***

https://drive.google.com/drive/folders/1U3rwoYRW9Udjz7LALKaYzmiHg7Tx67oM?usp=sharing

— Reply to this email directly, view it on GitHub https://github.com/nmikstas/dragon-warrior-disassembly/issues/1#issuecomment-2151409942, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMOO3FIXEORPEZGQVIU5KXDZF7TJTAVCNFSM6AAAAABI2V565OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJRGQYDSOJUGI . You are receiving this because you commented.Message ID: @.***>

jobjojo commented 1 month ago

No problem. I got the files.

It works like Dreams in the emulator You, Sir, are a 👑.

Take care, brother.

image

nmikstas commented 1 month ago

Nice! Let me know if you do anything cool with it!

On Wed, Jun 5, 2024 at 11:04 PM jobjojo @.***> wrote:

No problem. I got the files.

It works like Dreams in the emulator You, Sir, are a 👑.

Take care, brother.

image.png (view on web) https://github.com/nmikstas/dragon-warrior-disassembly/assets/132441374/c11fe0e2-7465-4c5e-ab7a-daeb8e00cf45

— Reply to this email directly, view it on GitHub https://github.com/nmikstas/dragon-warrior-disassembly/issues/1#issuecomment-2151419721, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMOO3FNICHWUU3TSUXF3253ZF7UW5AVCNFSM6AAAAABI2V565OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJRGQYTSNZSGE . You are receiving this because you commented.Message ID: @.***>