Search found 15 matches

by Misteek
January 12th, 2021, 7:33 pm
Forum: General Chat & Messaging
Topic: Recommend me a disassembler (or advice on making one)
Replies: 6
Views: 9885

Re: Recommend me a disassembler (or advice on making one)

True, however I'm talking about taking the output from a disassembler, manipulating it with python scripts to achieve my goals, and then feeding it to the Armips assembler. If the syntax of the disassembler output isn't accepted as valid input by Armips, I'm SOL and need to write more python scripts...
by Misteek
January 9th, 2021, 11:56 am
Forum: General Chat & Messaging
Topic: Recommend me a disassembler (or advice on making one)
Replies: 6
Views: 9885

Re: Recommend me a disassembler (or advice on making one)

ARMIPS assembles MIPS code soooooooooooo yeah. Looking at this screencap of Munch , it uses noop for no operation, whereas armips uses nop. Granted "noop" to "nop" is literally just a Find/Replace in a text editor - and about as simple with terminal/python scripts - other things...
by Misteek
January 6th, 2021, 10:52 am
Forum: General Chat & Messaging
Topic: Recommend me a disassembler (or advice on making one)
Replies: 6
Views: 9885

Re: Recommend me a disassembler (or advice on making one)

IDA or Ghidra. Compatible with Armips? https://github.com/Kingcom/armips Since I made this thread (and one at RHDN), I've accepted that I'll probably need to do a deep dive in the source code of one of the disassemblers at RHDN that has most of the features I need, and alter the output so it can be...
by Misteek
January 2nd, 2021, 10:31 pm
Forum: General Chat & Messaging
Topic: Recommend me a disassembler (or advice on making one)
Replies: 6
Views: 9885

Recommend me a disassembler (or advice on making one)

I need a disassembler that I can feed a file and which generates armips compatible MIPS r3000a assembly code.

Naive disassembly - treating everything as assembly and ignoring text and data - is fine with me, though if it has options to do it intelligently that's great.
by Misteek
January 14th, 2019, 12:59 pm
Forum: General Chat & Messaging
Topic: Want info on PS2 disc images.
Replies: 0
Views: 8803

Want info on PS2 disc images.

I'm not quite ready to restart dev on my disc image i/o code, but I can start gathering info on PS2 discs. I looked at FF12 in a hex editor and it was compressed or encrypted - some parts looked like sectors, most did not. I do know that the PS2 proper can handle both CDs and DVDs of multiple types,...
by Misteek
March 29th, 2018, 7:48 am
Forum: Miscellaneous & Off Topic
Topic: [solved] PS1 ECC is incorrect (or my code is wrong)
Replies: 8
Views: 34496

Re: [solved] PS1 ECC is incorrect (or my code is wrong)

If anyone is interested, I got I/O working. Look the last two methods in DataHandler.java for most of it.

https://bitbucket.org/Mithridates/snakeoil/src
by Misteek
March 17th, 2018, 7:48 am
Forum: Programming/CPU
Topic: Multi-threading in PSX
Replies: 4
Views: 13029

Re: Multi-threading in PSX

I believe Glain et al. documented some stuff on multithreading at the FFHacktics wiki.
by Misteek
February 7th, 2018, 8:03 am
Forum: Miscellaneous & Off Topic
Topic: [solved] PS1 ECC is incorrect (or my code is wrong)
Replies: 8
Views: 34496

Re: [solved] PS1 ECC is incorrect (or my code is wrong)

Apropos of nothing, some questions. 1. What would you need to move a file from one area of a disc image to another? Here's what I think I'd need to do. * Check the directories to see if there's enough space to do it. * Update the relevant directory entries * Go through the disc image and from all th...
by Misteek
February 5th, 2018, 3:51 pm
Forum: Miscellaneous & Off Topic
Topic: [solved] PS1 ECC is incorrect (or my code is wrong)
Replies: 8
Views: 34496

Re: [solved] PS1 ECC is incorrect (or my code is wrong)

Other than the directory sectors I would never patch the system area, so it doesn't matter until I move files around and change file sizes. How does the EDC/ECC bug work, and does it matter? Is it used for anti-piracy protections in any games or the system itself? Can I patch the affected sectors wi...
by Misteek
February 3rd, 2018, 1:35 pm
Forum: Miscellaneous & Off Topic
Topic: [solved] PS1 ECC is incorrect (or my code is wrong)
Replies: 8
Views: 34496

Re: PS1 ECC is incorrect (or my code is wrong)

I think it's something in my code that's wrong: a lot of sectors throw an index out of bounds exceptions and my code produces correct ECC, except that it is prefixed with four zeros. Sectors 24 and 32, even. edit Yep, my code was wrong. I assigned the EDC to the wrong indices. It seems that every se...
by Misteek
February 2nd, 2018, 10:20 am
Forum: Miscellaneous & Off Topic
Topic: [solved] PS1 ECC is incorrect (or my code is wrong)
Replies: 8
Views: 34496

[solved] PS1 ECC is incorrect (or my code is wrong)

http://jce3000gt.com/forum/showthread.php?tid=490&pid=6504#pid6504 94 81 88 0b 00 00 00 00 00 00 00 00 00 00 fb 00 00 00 fb 00 00 00 00 00 // big endian 0b 88 81 94 00 00 00 00 00 00 00 00 00 fb 00 00 00 fb 00 00 00 00 00 00 // lil endian 0B 88 81 94 00 00 00 00 00 00 FB 00 00 00 FB 00 00 00 00 ...
by Misteek
August 12th, 2017, 7:28 am
Forum: Documentation
Topic: Writing an assembler for the PS1
Replies: 10
Views: 29546

Re: Writing an assembler for the PS1

I'm a programmer, the best way to learn MIPS is to write an assembler. It doesn't seem very hard. I need to know exactly what bits are set with each opcode and all their possible parameters, and what opcodes the PS1 supports. Labels seem straight-forward. For a disassembler, I want a way to make it ...
by Misteek
August 11th, 2017, 9:29 am
Forum: Documentation
Topic: Writing an assembler for the PS1
Replies: 10
Views: 29546

Re: Writing an assembler for the PS1

So the functions cdrom setloc, read, and write referenced in this post are not actual opcodes but something else entirely? https://www.romhacking.net/forum/index.php?topic=18596.msg266131#msg266131 How do you find these LBA tables? Well you need to run pSX with logging enabled and you need to log al...
by Misteek
August 11th, 2017, 2:45 am
Forum: Documentation
Topic: Writing an assembler for the PS1
Replies: 10
Views: 29546

Re: Writing an assembler for the PS1

http://problemkaputt.de/psx-spx.htm

I want to write a (dis)assembler that supports literally every opcode you would find in a PS1 game. This includes opcodes that deal with cd-rom seeks, reads, and writes, and anything else that you will find.
by Misteek
August 9th, 2017, 3:46 am
Forum: Documentation
Topic: Writing an assembler for the PS1
Replies: 10
Views: 29546

Writing an assembler for the PS1

I'm writing an assembler and a disassembler for the PS1. I want them to be the end-all, be-all of PS1 (dis)assemblers. Questions: 1. The specific instruction set used by the PS1 is MIPS r3000, correct? 2. Are there any additional operations that a PS1 assembler should support? Operations such as rea...