PHP supports an exec command that says run this file in a command line and return the results to a PHP array. All the HTML formating would be done in PHP.
There are not any comments in the code besides the Open Source statement.
-------------------
Here how I compiled and ran bit hoist. Give it another try. If you run into problems, I'll install Linux & compile there.
Look for "mac $". This is what I typed in.
Just the commands.
cd BitHoistServer/
pwd
ls
cp -i Makefile.ix Makefile
pwd
make
# at this point, I want to a window to copy the akal.bin to this folder.
ls
pwd
# akal.bin is last becase it starts with a lower case lettter!
./bithoist -id -mask akal.bin
Code:
# put the bithoist stuff in some folder.
# cd to that directory
#
# also, copy the akal.bin to the same folder as bithoist
mac $ cd BitHoistServer/
mac $ pwd
/Users/mac/BitHoistServer
mac $ ls
BitHoist.c Exormacs.c IdentifyMask.r Mostek.c Storage.c
BitHoist.h Exormacs.h IdentifySpec.r Mostek.h Storage.h
BitHoist.r ExtractBCC Intellec.c Options.c TekExtended.c
CRC.c HostTypes.h Intellec.h Options.h TekExtended.h
CRC.h Identify.c License ReadMe TekHex.c
ChangeLog Identify.h MacObject.c Series.c TekHex.h
Chunks.c Identify.r MacObject.h Series.h ToDo
Chunks.h IdentifyBCC.r MakeFile.mac Signetics.c
EditBCC IdentifyBCCTest.r Makefile.ix Signetics.h
# copy the Makefile.ix to a new file named Makefile
mac $ cp -i Makefile.ix Makefile
mac $ pwd
/Users/mac/BitHoistServer
# compile program bithoist
mac $ make
gcc -c BitHoist.c -o BitHoist.o
gcc -c Storage.c -o Storage.o
gcc -c Options.c -o Options.o
gcc -c Mostek.c -o Mostek.o
gcc -c Signetics.c -o Signetics.o
gcc -c TekHex.c -o TekHex.o
gcc -c Intellec.c -o Intellec.o
gcc -c Exormacs.c -o Exormacs.o
gcc -c TekExtended.c -o TekExtended.o
gcc -c Series.c -o Series.o
gcc -c Chunks.c -o Chunks.o
gcc -c CRC.c -o CRC.o
gcc -c Identify.c -o Identify.o
gcc -o BitHoist BitHoist.o Storage.o Options.o Mostek.o Signetics.o TekHex.o Intellec.o Exormacs.o TekExtended.o Series.o Chunks.o CRC.o Identify.o
mac $ # at this point, I want to a window to copy the akal.bin to this folder.
mac $ ls
BitHoist* EditBCC IdentifyMask.r Mostek.h Storage.c
BitHoist.c Exormacs.c IdentifySpec.r Mostek.o Storage.h
BitHoist.h Exormacs.h Intellec.c Options.c Storage.o
BitHoist.o Exormacs.o Intellec.h Options.h TekExtended.c
BitHoist.r ExtractBCC Intellec.o Options.o TekExtended.h
CRC.c HostTypes.h License ReadMe TekExtended.o
CRC.h Identify.c MacObject.c Series.c TekHex.c
CRC.o Identify.h MacObject.h Series.h TekHex.h
ChangeLog Identify.o MakeFile.mac Series.o TekHex.o
Chunks.c Identify.r Makefile Signetics.c ToDo
Chunks.h IdentifyBCC.r Makefile.ix Signetics.h akal.bin
Chunks.o IdentifyBCCTest.r Mostek.c Signetics.o
mac $ pwd
/Users/mac/BitHoistServer
mac $ # akal.bin is last becase it starts with a lower case lettter!
mac $ ./bithoist -id -mask akal.bin
---- cut here ----
0x0, 0x1000, scan, seq, sum, mask, spec, 0x57ba9cf4,
#ifndef rez
1, 1,
#endif
begin
0x0, 0x1000
end,
begin
sumlo, sumhi
end,
---- cut here ----
File 'akal.bin'
Mask ID: Unknown
mac $
Bookmarks