Thanks...
Here's an update, in case this might help anyone else. I was able to successfully create a MIF file this way:
I saved a monochrome graphic file (i.e. converted it to 1-bit graphics) in RAW format in
GIMP, then used the following command on it (using
Cygwin):
- Code: Select all
od -td1 -v -w8 VGAtest | nl -v0 | gawk "{print \"\t\",$1,\":\",$3$4$5$6$7$8$9$10\";\"}" > VGA_Mem.mif
Then I edited the resulting file (VGA_Mem.mif) with Notepad, and put the following at the top:
- Code: Select all
WIDTH=8;
DEPTH=512;
ADDRESS_RADIX=DEC;
DATA_RADIX=BIN;
BEGIN CONTENT
At the end, I put:
- Code: Select all
END;
Please post any other suggestions if you have them!
EDIT: I actually used
Gnuwin32(CoreUtils and Gawk packages) for the above, not Cygwin. The difference is that Gnuwin runs natively on Windows, while Cygwin uses a UNIX emulation layer. I executed the above commands in a DOS prompt, not a UNIX shell, which is why the quotes are so odd-looking for GAWK.