It is currently Thu Sep 20, 2018 6:27 am

All times are UTC - 7 hours





Post new topic Reply to topic  [ 10 posts ] 
Author Message
PostPosted: Sat Nov 25, 2017 10:49 pm 
Offline
User avatar

Joined: Fri Nov 24, 2017 2:40 pm
Posts: 80
This might be the most useless piece of software I've ever written. Haha.

In case you ever wanted a 6502 disassembler to run on the NES that can only disassemble it's own source code:
Image

Donload source/.nes: http://files.slembcke.net/temp/Disassembler.tgz

edit: added a download link


Last edited by slembcke on Mon Nov 27, 2017 3:53 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Sat Nov 25, 2017 11:16 pm 
Offline
User avatar

Joined: Wed Apr 02, 2008 2:09 pm
Posts: 1243
That's actually really cool. Is the code small enough to fit in WRAM? Because it might be cool to hack into other games.

_________________
https://kasumi.itch.io/indivisible


Top
 Profile  
 
PostPosted: Sun Nov 26, 2017 12:45 am 
Offline
User avatar

Joined: Sat Feb 12, 2005 9:43 pm
Posts: 10814
Location: Rio de Janeiro - Brazil
That could be fun to play with, even if not particularly useful.

Totally unrelated, but I couldn't help noticing that the animated GIF was made from lossily compressed images, resulting in a huge file due to the numerous color artifacts around the text. If you used clean images instead, that GIF could easily be 10 times smaller, and it'd look better too. When possible, avoid JPEG/MPEG when capturing screenshots/video from old consoles.


Top
 Profile  
 
PostPosted: Mon Nov 27, 2017 3:26 am 
Offline
User avatar

Joined: Wed Mar 16, 2016 2:08 pm
Posts: 44
Location: World 9 - Warp Zone
Although it does not seem very useful, it is curious.

_________________
Projects:
HomeBrew Stuff (#2)(8bits/16bits/32bits)
HomeBrew Stuff (#1)(8bits/16bits/32bits)
J_GB Emulator (GB / GBC / SGB Emulator written in Java)
NES4J Emulator (NES / FAMICOM / FDS Emulator written in JAVA)


Top
 Profile  
 
PostPosted: Mon Nov 27, 2017 4:42 am 
Offline
User avatar

Joined: Thu Mar 31, 2016 11:15 am
Posts: 359
There's no link?

How does it determine the alignment of the code?


Top
 Profile  
 
PostPosted: Mon Nov 27, 2017 3:57 pm 
Offline
User avatar

Joined: Fri Nov 24, 2017 2:40 pm
Posts: 80
I'm kind of surprised that people want to see the code for this. :p I added a download link to the first post.

This is my first cc65 program in 10+ years (I think I last used it in like 2003), and first NES project so I wouldn't expect to learn much from it. Compared to the 2 kb Apple II monitor program, this 4+ kb disassembler is a monstrosity. :p It was easy to make though.

@puby It doesn't. It's starts at $c000, and there is only one code segment.


Top
 Profile  
 
PostPosted: Tue Nov 28, 2017 11:30 pm 
Offline
User avatar

Joined: Sun Jan 22, 2012 12:03 pm
Posts: 6808
Location: Canada
I let it go all the way around just to see.

Didn't quite manage to wrap perfectly. ;)
Attachment:
disassembler_wrap.png
disassembler_wrap.png [ 3.26 KiB | Viewed 1921 times ]


Top
 Profile  
 
PostPosted: Thu Nov 30, 2017 11:52 am 
Offline

Joined: Sun Mar 27, 2011 10:49 am
Posts: 265
Location: Seattle
Image


Top
 Profile  
 
PostPosted: Fri Dec 01, 2017 10:23 am 
Offline
User avatar

Joined: Sat Feb 16, 2013 11:52 am
Posts: 314
Is that a "quine"?

_________________
This is a block of text that can be added to posts you make. There is a 255 character limit.


Top
 Profile  
 
PostPosted: Fri Dec 15, 2017 1:36 am 
Offline
User avatar

Joined: Fri Nov 24, 2017 2:40 pm
Posts: 80
Now with split scrolling!
Image

Fixed the jerky scrolling by switching to NMIs as well. I had forgotten how much fun 6502 assembly was even if it's not very practical in 2018. :p


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 5 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