|
|
| |
Z80-FILE(5) |
File format |
Z80-FILE(5) |
description of file format used by z80-asm
The recommended filename extension should be .z80 The file consists of
header, address and data.
Header is 8 bytes long. It contains string Z80ASM (6 bytes - without
trailing zero) followed by 0x1a character and linefeed character (
0x0a ). The 0x1a character is to persuade DO$ viewers to stop
viewing the file. The newline character terminates the header.
Address follows the header as 2 bytes. These are interpretated as a 16-bit start
address of the data(code) to load. The less significant byte comes first, most
significant byte follows.
Data come after address. Data are raw compiled program. Length of data can be
simply calculated: length of file-10 bytes.
z80-asm(1), z80-mon(1), z80-asm(5)
Visit the GSP FreeBSD Man Page Interface. Output converted with ManDoc. |