It is currently Sat Nov 18, 2017 10:14 pm

All times are UTC - 7 hours





Post new topic Reply to topic  [ 11 posts ] 
Author Message
PostPosted: Sun Sep 13, 2015 6:52 am 
Offline

Joined: Sat Sep 12, 2015 3:42 pm
Posts: 44
I managed to disassemble Arkista's Ring with disasm6 and it seems to compile with asm6. I don't have the time to add the proper labels to it. Anyway I have included the .asm file, the .chr file, and the .cdl file I used to make the rom in an attachment.


Attachments:
Arkista's Ring Source Code.zip [135.27 KiB]
Downloaded 79 times


Last edited by mugenfighter on Mon Sep 14, 2015 6:45 am, edited 1 time in total.
Top
 Profile  
 
PostPosted: Sun Sep 13, 2015 3:44 pm 
Offline

Joined: Sun Mar 19, 2006 9:44 pm
Posts: 919
Location: Japan
You should call it a disassembly. Source code implies that it's the original developer's collection of .ASM files with all labels and comments intact.

_________________
http://www.chrismcovell.com


Top
 Profile  
 
PostPosted: Sun Sep 13, 2015 11:18 pm 
Offline
User avatar

Joined: Sun Jan 22, 2012 12:03 pm
Posts: 5822
Location: Canada
Is this just the straight output of the disassembler then? You might as well only post the CDL for now, since that's all someone else should need to produce the disassembly (and also is not violating copyright).


Top
 Profile  
 
PostPosted: Mon Sep 14, 2015 6:44 am 
Offline

Joined: Sat Sep 12, 2015 3:42 pm
Posts: 44
ccovell wrote:
You should call it a disassembly. Source code implies that it's the original developer's collection of .ASM files with all labels and comments intact.

Sorry I'm not good with this stuff.


Top
 Profile  
 
PostPosted: Mon Sep 14, 2015 6:47 am 
Offline

Joined: Sat Sep 12, 2015 3:42 pm
Posts: 44
rainwarrior wrote:
Is this just the straight output of the disassembler then? You might as well only post the CDL for now, since that's all someone else should need to produce the disassembly (and also is not violating copyright).

Yeah, it does compile to a working rom though, I rushed though this topic when creating it.


Top
 Profile  
 
PostPosted: Mon Sep 14, 2015 11:19 am 
Offline
User avatar

Joined: Fri Nov 19, 2004 7:35 pm
Posts: 3950
The real question is does it still compile correctly if you add a byte to the middle somewhere. This would indicate that all pointers (both in code and in data) are not absolute 16-bit numbers.
It's not a true relocatable disassembly until all 16-bit numbers that are memory addresses are labels (possibly with + - offsets).

_________________
Here come the fortune cookies! Here come the fortune cookies! They're wearing paper hats!


Top
 Profile  
 
PostPosted: Thu Oct 29, 2015 10:48 am 
Offline

Joined: Sat Sep 12, 2015 3:42 pm
Posts: 44
Here is the best cdl I can get. No other files included this time.


Attachments:
Arkista's Ring (U) [!].zip [1.67 KiB]
Downloaded 56 times
Top
 Profile  
 
PostPosted: Thu Oct 29, 2015 5:26 pm 
Offline

Joined: Mon Nov 10, 2008 3:09 pm
Posts: 431
Dwedit wrote:
The real question is does it still compile correctly if you add a byte to the middle somewhere. This would indicate that all pointers (both in code and in data) are not absolute 16-bit numbers.
It's not a true relocatable disassembly until all 16-bit numbers that are memory addresses are labels (possibly with + - offsets).


It's not just 16-bit numbers; you also have to have to handle the (extremely common on the 6502) case where a pointer is split into two immediate operands:

Code:
asl index
rol index+1
lda #<table
clc ; can omit if index is guaranteed to be < 32768
adc index
sta ptr
lda #>table
adc index+1
sta ptr+1


I haven't yet thought of a way to automate detection of this pattern...


Top
 Profile  
 
PostPosted: Fri Oct 30, 2015 6:07 am 
Offline

Joined: Sat Sep 12, 2015 3:42 pm
Posts: 44
mugenfighter wrote:
Here is the best cdl I can get. No other files included this time.

Sorry wrong file...


Attachments:
Arkista's Ring (U) [!].zip [1.61 KiB]
Downloaded 51 times
Top
 Profile  
 
PostPosted: Fri Oct 30, 2015 8:33 am 
Offline

Joined: Sat Sep 12, 2015 3:42 pm
Posts: 44
By the way, how can I learn what the disassembled code means? I'm still kind of new at this, but I want to learn how the game worked so I can recreate it in 32 bit Windows.

Edit: Sorry I haven't got time to work on a disassembly. I'm busy with stuff I can't go into now.

Edit (Again): My original goal was to have a working disassembly with comments, but again I'm busy.


Top
 Profile  
 
PostPosted: Sun Nov 01, 2015 7:30 am 
Offline

Joined: Sat Sep 12, 2015 3:42 pm
Posts: 44
I had nothing better to do...

I'm trying to get a good cdl to work from.

Edit: I think I'm just trying to avoid the fact that I have no clue what I'm doing.


Attachments:
Arkista's Ring (U) [!].zip [1.58 KiB]
Downloaded 59 times
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: Bing [Bot], Google [Bot], NovaSquirrel and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group