After the 12-byte header a UEF file is chunks to the end of the data. Every chunk has the same frame, whatever it holds:
a 16-bit type, a 32-bit length, both little-endian, then length bytes. A chunk
never overlaps the next, so a reader can skip a type it does not know. Numbers written as &0100 are chunk types.
The header is UEF File!, $00, a minor and a major version byte ($0A $00 is 0.10,
the version of the real tape and of the writer in the EmWare emulator).
The chunks the viewer describes
The last column says what each description rests on. Real tape is the tape Test.uef on this
Mac, which has chunks &0000, &0100 and &0110 only. EmWare reader is the tape loader in the source of
the EmWare BBC Micro emulator (tape.c), a program that reads these chunks and plays them, which agrees with
the layout given. Specification is the text of the UEF specification, version 0.10, document draft 28
(revised 10/1/2006), by Thomas Harte with additions by Fraser Ross and Greg Cook, read in its raw text on 2026-11-14 (the page is
linked from the overview); every chunk that document defines is in this table, and the names and values are its own. Chunks with
only Specification in the last column have no tape on this Mac that uses them, so the viewer's decoding of them was
checked on built chunks, not on a real file. The sentences marked as our reading are ours.
| Type | Name | Contents | Checked against |
|---|---|---|---|
&0000 | Origin information | Text: where the tape came from (the real tape: Created by BeebEm, a zero byte) | Real tape |
&0001 | Game instructions or URL | Text holding the manual or notes; or, when the first five characters are URL: (with the space), a web address | Specification |
&0003 | Inlay scan | Offset 0: width (16 bits); 2: height (16 bits); 4: one byte, bits per pixel in the low 7 bits and bit 7 set for grey scale. For paletted 8 bpp colour, offset 5 holds a 768-byte palette of 256 blue, green, red triplets and the pixels start at 773; otherwise the pixels start at 5: width × height × bits per pixel, in reading order. A small, low quality scan for display in an emulator. The viewer shows the three fields only. | Specification |
&0005 | Target machine | Exactly one byte. High nibble: 0 BBC Model A, 1 Electron, 2 BBC Model B, 3 BBC Master, 4 Atom. Low nibble: 0 any layout or none specified, 1 keys best left in the same places as on the emulated machine, 2 best mapped as the emulating computer's keyboard. There may be several of these chunks (a tape with a BBC and an Electron version). A hint: the minimum hardware the file needs. | Specification |
&0006 | Bit multiplexing information | One byte, the bit multiplier: 4 times its value is the number of bits stored for each bit of the original machine (1 gives 32 bits per 8-bit value). Older definitions had a second byte, no longer used. Multiplexing is an emulator feature that most readers ignore. | Specification |
&0007 | Extra palette | Length / 3 entries of a red, a green and a blue byte (0 to 255) for multiplexed modes of fewer than 16 bits; colour 0 comes first; a remainder of the length divided by 3 is ignored; entries not given are undefined. | Specification |
&0008 | ROM hint | Bit 0 of the first byte: 0 asks for a ROM or ROMs to be absent, 1 present. Second byte 0: a ROM is named by a NUL-terminated string, followed by a byte whose bit 0 says whether the string is the whole ROM name (0) or only its first characters (1). Second byte not 0: a third byte gives a type: 0 all ROMs, 1 all ROMs except BASIC, 2 any DFS ROM, 3 any ADFS ROM, 4 any filing system ROM, 5 any language ROM. Requests to ensure the presence of types 0, 1, 4 and 5 are ignored (they exist to ask for absence). Several hints are followed in order, like instructions. | Specification |
&0009 | Short title | ASCII text for a title bar or file selector. | Specification |
&000A | Visible area | Four 16-bit numbers: lowest x (left), lowest y (top), highest x (right), highest y (bottom). BBC and Electron: measured on a 640 × 256 mode 0 screen whatever mode is in use; Atom: in its native mode. | Specification |
&0100 | Implicit start/stop bit tape data block | The data bytes. On the tape each is a start bit (0), 8 data bits (least significant first) and a stop bit (1) at the data encoding in force (1200 baud by default); the chunk holds the 8 data bits only. These bytes are the cassette blocks. | Real tape, EmWare reader, specification |
&0101 | Multiplexed data block | When it comes straight after a &0100 or &0102 chunk it holds the same data with every field expanded to multiplexed data; after any other chunk it means nothing and is ignored. Shown with its length only. | Specification |
&0102 | Explicit tape data block | Raw bits, no implicit start or stop bits. The number of bits used is the chunk length × 8 minus the value of the first byte; the least significant bit of a byte is first on the tape. The viewer shows the bit count; the bits are not made into bytes. | Specification, EmWare reader (partly) |
&0103 | Multiplexed data block (older number) | Older files use &0103 as a synonym for &0101. | Specification |
&0104 | Defined tape format data block | Three bytes, then the data. Byte 0: the number of data bits per packet (not counting start, stop or parity bits). Byte 1: the ASCII code of N, E or O: no parity, even or odd. Byte 2: a stop-bit count; a negative number is the negated count with an extra short wave added; positive numbers should be used wherever possible. The number of packets is the chunk length minus 3; bytes are whole, with unused high bits zero (7 data bits leave bit 7 clear); a start bit is always inserted, and the least significant bit is first. Formats met on the BBC and Electron: 7E1, 7E2, 7O1, 7O2, 8E1, 8N2, 8O1 (8N1 is the same as &0100); the Atom usually uses 8N-1. Read as blocks by the viewer when it is 8 data bits and no parity (the EmWare reader keeps only the low 7 bits of the stop-bit byte). | Specification, EmWare reader |
&0105 | Implicit start/stop bit Atom tape data block | As &0100, but every stop bit except that of the last byte is followed by one wave at twice the base frequency. For standard Atom files. | Specification |
&0110 | Carrier tone | A 16-bit count of cycles at twice the base frequency (the real tape: 8 chunks) | Real tape, EmWare reader, specification |
&0111 | Carrier tone with dummy byte | Four bytes: a 16-bit cycle count of carrier before, then a dummy byte, then a 16-bit count after. The dummy byte is always $AA; on tape it is the ten bits 0, 0, 1, 0, 1, 0, 1, 0, 1, 1 (start bit, the byte least significant bit first, stop bit). | EmWare reader, specification |
&0112 | Integer gap | A 16-bit rest length counted against the base frequency. The specification's words are that a value n is a gap of 1/(2n × base frequency) seconds. EmWare's writer uses 600 for a quarter of a second at 1200 Hz, which fits n / (2 × base frequency) instead (our reading: the specification's text looks mis-set). | EmWare reader, specification |
&0113 | Change of base frequency | A 32-bit IEEE 754 floating-point number (Intel byte order, little-endian), the new base frequency in hertz; 1200 when a file is opened. | EmWare reader, specification |
&0114 | Security cycles | Bytes 0 to 2: a 24-bit number of cycles. Byte 3: ASCII P or W; P replaces the first cycle with one high pulse. Byte 4: P or W; P replaces the last cycle with one low pulse (if byte 4 is P, byte 3 must be W and has no meaning). Then the cycles, 8 to a byte, most significant bit first: 0 is a slow cycle (base frequency), 1 a fast one (twice); spare bits of the last byte should be 0. Found at the start, rarely the end, of a run of carrier. Example in the specification: the sequence LSLLLSSLSSLLSL is stored $0E $00 $00 W W $9D $2C. The viewer decodes the count and the two flags only. | Specification |
&0115 | Phase change | A 16-bit unsigned value 0 to 359: the new phase of the waveform (180 when a file is opened); on a real recording only next to a gap. It does not change the data, and tools that only extract bytes may ignore it. | Specification |
&0116 | Floating point gap | A 32-bit floating-point number: seconds of silence. | EmWare reader, specification |
&0117 | Data encoding format change | A 16-bit unsigned value. 1200 (the default when a file is opened): a 0 bit is one cycle at the base frequency and a 1 bit two cycles at twice that. 300: a 0 bit is four cycles and a 1 bit eight cycles at twice. Any other value has undefined effect (the EmWare reader accepts any rate of 75 or more). | EmWare reader, specification |
&0120 | Position marker | Text describing the place it sits at, for people (for example where a level editor starts on the tape). | Specification |
&0130 | Tape set information | Modal values; unless stated a file is one single-track, single-sided tape. Byte 0: the vocabulary of the medium: 0 unit/position (generic), 1 tape/channel (the usual), 2 disc/track (a record, CD or Minidisc), 3 tape/cue, 4 cartridge/track (8-track). Byte 1: the number of tapes (at most 127). Byte 2: the number of independent channels (for disc media, the greatest number of audio tracks on any disc); most cassettes are mono, so 1. | Specification |
&0131 | Start of tape side | Byte 0: tape number in bits 0 to 6 (at most the value given by &0130) and the side in bit 7 (0 side A, 1 side B). Byte 1: the channel number, from 0 on each side (for disc media, the track number; left channel 0, right channel 1). Then a NUL-terminated ASCII description of the side (such as Electron, Side A, Label side), preferably at most 255 characters. | Specification |
&0200 | Disc info | Byte 0: the number of heads minus one (values above 127 are invalid; 0 for single and double sided alike, as a head may read two sides of a platter). Bytes 1 to 2: the sector length in bytes of the implicitly defined sides. Byte 3: sectors per track. Byte 4: tracks. Byte 5: filing system: 0 undefined, 1 Acorn 8271 DFS, 2 Watford DFS 62, 3 Acorn ADFS, 4 Acorn 1770 DFS, 5 Solidisk, 6 OPUS DDOS. This is the catalogue type of the disc and so the ROM to recommend; to force a ROM use &0008. | Specification |
&0201 | Single implicit disc side | A side/head byte (bit 7 set: side 2; bits 0 to 6: the head), then length − 1 bytes: the first byte of the first sector of the first track, the next sector after sector-length bytes, and so on, without sector headers or (M)FM syncs. It matches the SSD, DSD and ADF style of image. Fewer bytes than sector length × sectors × tracks means the rest of the disc is unimportant, though formatted. | Specification |
&0202 | Multiplexed disc side | As &0201 with the data after the side byte multiplexed. | Specification |
&0210 | Explicit disc track | A side/head byte as in &0201, a track number byte, a 16-bit count of the linearly spaced samples of the whole track, then one bit per sample (least significant bit first): 0 where the polarity did not change, 1 where it did, the raw FM or MFM data. No multiplexed form exists. | Specification |
&0300 | Standard machine ROM | Byte 0: type: 0 unspecified, 1 OS ROM, 2 BASIC ROM, 3 language ROM, 4 utility ROM, 5 filing system ROM, 6 hardware driver, 7 game ROM. Byte 1: a slot recommendation (high four bits zero; a hint only; undefined for the OS ROM). Then the ROM, normally 16 KB; a smaller one (the Electron Plus 1 ROM is 4 KB) repeats over the 16 KB. | Specification |
&0301 | Multiplexed machine ROM | As &0300 with multiplexed ROM data. | Specification |
&0400 | 6502 standard state | Eight bytes: the update byte (non-zero when the emulator should update the chunk on closing; common to all snapshot chunks), then A, P (status), X, Y, S, then the 16-bit program counter. | Specification |
&0401 | Electron ULA state | Offset 0: update byte. 1 (2 bytes): interrupt control then interrupt status (SHEILA &FE00). 3 (2): &FE02 then &FE03, the screen start address. 5 (1): &FE04, the cassette shift register. 6 (2): the value of &FE05 (for the page enable bit), then the ROM paged in (low 4 bits). 8 (10): the rest of the SHEILA bytes, &FE06 upwards. 18 (4): the number of 16 MHz cycles since the last end-of-display interrupt signal. The viewer shows its length only. | Specification |
&0402 | WD1770 state | The update byte, then the status, track, sector and data bytes, then the drive status: bits 0 to 2 the drive number (0 to 7), bit 3 the side select (high is side 2), bit 4 double density select (high is double density). Assumes no operation is in progress. | Specification |
&0403 | JIM paging register state | Two bytes: the update byte, then the last value written to the JIM paging register. | Specification |
&0410 | Standard memory data | The update byte, then a byte for the memory: 0 standard RAM from &0000 up, 1 shadow RAM, 2 the JIM page, 255 patch memory. For patch memory three bytes follow: a base (0, 1 or 2 as above) and a 16-bit offset into it at which the following data is loaded ($FF $00 $12 $34 loads at &3412 of normal RAM). | Specification |
&0411 | Multiplexed memory data | As &0410 with multiplexed data. | Specification |
&0412 | Multiplexed (partial) 6502 state | After the update byte, multiplexed entries for A, P, X and Y in that order. Meant to coexist with &0400. | Specification |
&0420 | Slogger Master RAM board state | The update byte, then the mode of the board: 0 disabled, 1 turbo, 2 shadow. | Specification |
&FF00 | Emulator identification string | A NUL-terminated string naming the emulator that wrote the &FF01 to &FFFF chunks, so another can tell whether it knows them. | Specification |
&FF01 to &FFFF | Reserved, emulator specific | Free for the writer's own use (the specification's author keeps an about-box picture and a GUI font there); a reader should not assume it understands them unless it recognises the &FF00 string. The viewer shows their length. | Specification |
The viewer's description of each chunk is in its own tree node and in the Chunks table of the tape view. The cycle counts are shown as a number of cycles; they are not turned into seconds, because the unit depends on the base frequency and the baud rate in force at that point of the tape, and no tape here changes either.
Where the list ends
The specification defines no other type: the rest of the numbers (for example &0002, &0004, &0106 to &010F, &0121 to &012F, &0132 and up, &0203 to &020F, &0302 and up) are not in draft 28. Such a type is shown as Chunk type not described with its length and bytes; a tape that has one still opens, and the data and tone chunks around it are read as usual. Chunks &0200 to &0420 (disc images, ROMs, machine state) are decoded in the Contents column of the tape view but a disc or ROM inside a UEF is not opened as a disc or ROM: the viewer reads only the tape data chunks (&0100 and the 8-bit, no-parity &0104) as cassette blocks.