code disassembly

6 posts / 0 new
Last post
Offline
Last seen: 17 hours 26 min ago
Joined: Jan 11 2025 - 14:57
Posts: 27
code disassembly
AttachmentSize
Plain text icon Code (2).txt3.57 KB

I have a code that I will attach to this post. This file needs to be disassembled through some kind of disassembler so that it looks like Merlin assembler code. Or at least become readable! Help please.

macnoyd's picture
Offline
Last seen: 5 hours 10 min ago
Joined: Oct 15 2012 - 08:59
Posts: 861
I tried ...

I tried reading it as a binary file.  (not using Merlin) Loaded it in at A$1000 and the code makes no sense.

mmphosis's picture
Offline
Last seen: 1 day 10 hours ago
Joined: Aug 18 2005 - 16:26
Posts: 452
disassembly

The first three bytes disassembled:

4C 06 22  JMP $2206

I can't tell at which address this "program" is supposed to start. The program is a lot of space characters and gibberish.

I can load it starting at $2000 in memory and disassemble:

# KEGS 65816 disassembly

*2000LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL 

Offline
Last seen: 17 hours 26 min ago
Joined: Jan 11 2025 - 14:57
Posts: 27
Yes

yes, I know something about it, like the code is broken or something like that. we need to disassemble it

Offline
Last seen: 17 hours 26 min ago
Joined: Jan 11 2025 - 14:57
Posts: 27
I have a second file!

I noticed in the HEX of this file that all 00 bytes have been replaced with 20 bytes. I have a second file that doesn't have this feature.

mmphosis's picture
Offline
Last seen: 1 day 10 hours ago
Joined: Aug 18 2005 - 16:26
Posts: 452
garbage in, garbage out

 JSR $2020 ; disassemble spaces! :)

Yeah, I remember binary files like this being opened in an editor and then saved and becomng useless.

We need the original to disassemble something maybe more coherent.

Log in or register to post comments