Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works
Anything · Lazarus or Delphi
Random projectRandom project

hunkster

A Windows app that creates Amiga 68k hunk files to embed image/audio/data. Can be linked with Amiga vbcc and freepascal cross compilers.

View on GitHub

Member rating

No ratings yet.

Sign in to rate this project.

README

hunkster

A Windows app that creates Amiga 68k hunk files to embed image/audio/data. Can be linked with Amiga vbcc and freepascal cross compilers.

In your C source code place the data name specified in hunkster as an extern statement. Note that in Hunkster the data name would be _dataname with an underscore. Other variations should work as well. You are just mapping a memory location to a variable/array. The contents of your variable/array will be what you imported in hunkster.

There is a multi compiler version of this utility called rtbinobj on the main page. This works with Windows, DOS, and Linux c/pascal compilers.

pascal
extern WORD dataname[];

extern LONG dataname_size;
pascal
vc yoursource.c hunkfile.o -o yourprogramname -lauto -lamiga

in freepascal code use

pascal
{$L file.o}  //where file.o is the file you created in hunkster

procedure dataname; external '_dataname';

var
 dataname_size : long; external '_dataname_size';