nesdev.com
http://forums.nesdev.com/

iNES emulator by Marat Fayzullin
http://forums.nesdev.com/viewtopic.php?f=3&t=12170
Page 2 of 2

Author:  James [ Thu Dec 22, 2016 10:21 am ]
Post subject:  Re: iNES emulator by Marat Fayzullin

You can convert binary pal files to iNES format with hexdump (on Linux, etc.):

Code:
hexdump -ve '3/1 "%02X " "\n"' bin.pal > ines.pal

Author:  tepples [ Thu Dec 22, 2016 11:16 am ]
Post subject:  Re: iNES emulator by Marat Fayzullin

The palette consists of 64 lines, one for each value of $3Fxx. Each line is 3 hex bytes, case insensitive, separated by a space ($20), terminated by a UNIX newline ($0A) or CP/M newline ($0D $0A). A full 64-entry palette file is thus 576 bytes (UNIX) or 640 bytes (CP/M).

The above translated into Python (untested):
Code:
#!/usr/bin/env python3
# By Damian Yerrick; license: WTFPL
with open("bisqwit.pal", "rb") as infp:
    p = infp.read(192)
p = bytearray(p)  # for compatibility with old Python where str is bytes
with open("bisqwit.ines.pal", "w") as outfp:
    outfp.writelines("%02X %02X %02X\n" % (p[i], p[i + 1], p[i + 2]) for i in range(0, 192, 3))

Author:  Eugene.S [ Thu Jan 12, 2017 6:52 am ]
Post subject:  Re: iNES emulator by Marat Fayzullin

iNES 4.8 released.
- fixed triangle channel
- improved DPCM channel (but still need some work)
- added support of binary PAL files (iNES can remember last palette now)
- added classic 4:3 display aspect ratio
- fixed bug when 44kHz audio + 50 Hz video output was selected.
screenshot

Android-version updated to 4.8.1 as well.

Page 2 of 2 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/