View Single Post
Old May 5th, 2006, 10:06 PM   #20
lectricpharaoh
Caffeinated Neural Net
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 1,048
Rep Power: 5 lectricpharaoh will become famous soon enough
Quote:
Originally Posted by magus57
Well, I found an emulator with debugging capabilities, and I dumped the RAM, VRAM, Sprites, Palette, CPURegs, and VRegs in ASCII mode, but it doesn't look like something I could program on a calculator when I opened the files in Microsoft Word (it looked like a chart, and there were numbers and letters in each row, and each file had 30-60 rows). But when I dumped the files in Raw, all I got were these strange squares throughout the whole document. How do I open Raw files? And would Raw files be more appropriate for programming than ASCII files?
Hehehe. Sorry, but if you're asking this, you've got a lot to learn before you'll be ready to try tackling this issue.

This emulator you mentioned (from which you got an ASCII dump) seems to have given you an assembly output of the RAM (in other words, it disassembled it), but bear in mind for areas of memory that are data (as opposed to code), viewing it as a series of instructions makes no sense. For the program code itself, it's probably just fine, though if you don't understand it, you need to learn assembly for the CPU in question (and info on assembly-language programming tends to be much sparser than info for more mainstream programming languages, not to mention the CPU you mentioned isn't exactly mainstream either).

As for the 'raw' format, that will just be plain binary. For some stuff, that's how you want your data (and some assemblers and compilers will let you insert binary data directly into the object output, like NASM doeswith its INCBIN directive). For code, you will want a disassembled version of the memory. If working with raw data, you will often not change it, and if you do, you will want to use a hex editor, not a word processor or text editor. For the disassembled version, which is ASCII, you will want to use a text editor, or an IDE, and not a word processor. While it's possible to use a word processor, they generally insert special formatting codes and other extraneous stuff besides the actual text, which messes things up. If you make sure to save as plain ASCII, it's doable, but really, why not use tools approriate for the job?

I'm not saying what you want to do is impossible. It's certainly possible. However, it seems to be far beyond your current skill set (I know it's beyond mine), so you might want to look into alternate approaches.
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot.
- Vaarsuvius, Order of the Stick
lectricpharaoh is online now   Reply With Quote