mirror of
https://github.com/sheumann/NetDisk.git
synced 2024-11-27 19:49:38 +00:00
24 lines
512 B
C
24 lines
512 B
C
#ifndef TWOIMG_H
|
|
#define TWOIMG_H
|
|
|
|
#define TWO_IMG_MAGIC ('2' | 'I'<<8 | (LongWord)'M'<<16 | (LongWord)'G'<<24)
|
|
|
|
#define IMAGE_FORMAT_DOS_33_ORDER 0
|
|
#define IMAGE_FORMAT_PRODOS_ORDER 1
|
|
#define IMAGE_FORMAT_NIBBLIZED 2
|
|
|
|
struct TwoImgHeader {
|
|
LongWord twoImgID;
|
|
LongWord appTag;
|
|
Word headerLength;
|
|
Word version;
|
|
LongWord imgFormat;
|
|
LongWord flag;
|
|
LongWord nBlocks;
|
|
LongWord dataOffset;
|
|
LongWord dataLength;
|
|
/* Remaining header fields are unimportant for us */
|
|
};
|
|
|
|
#endif
|