Revision 1433
Added by markw 11 months ago
atari_chips/pokeyv2/build_tools | ||
---|---|---|
rm -f init.bin
|
||
./makehex ./init_0.bin init_0.hex "0x000000"
|
||
./makehex ./init_1.bin init_1.hex "0x000000"
|
||
|
||
rm -f sidwavedata.bin
|
||
./sidwavedata
|
||
|
||
atari_chips/pokeyv2/find_offset.cpp | ||
---|---|---|
|
||
std::string pattern = argv[1];
|
||
int offset = atoi(argv[2]);
|
||
int len = atoi(argv[3]);
|
||
size_t len = atoi(argv[3]);
|
||
std::string find_in_here = argv[4];
|
||
|
||
FILE * p = fopen(pattern.c_str(),"rb");
|
||
... | ... | |
if (fread(match,1,len,f) !=len)
|
||
break;
|
||
found = true;
|
||
for (int i=0;i!=len;++i)
|
||
for (size_t i=0;i!=len;++i)
|
||
{
|
||
//printf("%d:%d:%02x %02x\n",file_offset,i,match[i],data[i]);
|
||
if (match[i]!=data[i])
|
atari_chips/pokeyv2/makehexfiles | ||
---|---|---|
rm -f init.bin
|
||
gcc -Wall init.c -lm -o init && ./init
|
||
./makehex ./init_0.bin init_0.hex "0x000000"
|
||
./makehex ./init_1.bin init_1.hex "0x000000"
|
||
|
||
rm -f sidwavedata.bin
|
||
gcc -Wall sidwavedata.c -lm -o sidwavedata && ./sidwavedata
|
||
g++ -Wall find_offset.cpp -o find_offset
|
||
|
||
|
Also available in: Unified diff
Move tool build to own script. Added find_offset build.