Skip to content

SAP1Emu Binary File Format

Bob Baker edited this page Apr 19, 2020 · 27 revisions

File Requirements

1The SAP1Emu Binary File has some pretty simple requirements.

  1. All Binary Files must end with the ".b" file extension
  2. Each binary file must have exactly 16 lines of code
  3. Each line of code must contain only 1's and 0's with no nibbles-spaces or trailing end-spaces
  4. Each line of code must be terminated with a newline (CR LF for Windows and LF for Linux/macOS)
  5. Each line of code must be 8-bits wide

File Example

On the Assembly File page, the example used the following program:

LDA 0xD
ADD 0xE
ADD 0xF
OUT 0x0
HLT 0x0
...
0x2 0x8
0x0 0xF
0x0 0xD

If this program was assembled it would look like the following:

00001101
00011110
00011111
11100000
11110000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00101000
00001111
00001101
Clone this wiki locally