Skip to content

bytehigh/golang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Picturesque Assembler converter

A very simple conversion program that converts ZX Spectrum Picturesque Assembler files into ASCII.

Picturesque assembler files are almost completely ASCII already, only the line numbers need conversion.

Command line arguments: -f input_filename -o output_filename

  • If no input file is provided the program will terminate with an open file error.
  • If no output file is provided the program will write to "output.asm" by default.

If the output file already exists it will be overwritten, so please be careful!

File format:

  • File header of 128 bytes
  • Next byte is 0xOD - each line that follows is terminated by 0xOD
  • First two bytes of each line hold a representation of the line number in hex
  • EOF denoted by 0xFF

Examples of two byte line numbers in hex:

  • 0010 - line 10
  • 0040 - line 40
  • 0120 - line 120
and so on...

The conversion programme throws away the file header and then reads the rest of the file one byte at a time. The first two bytes of each line (following a carriage return 0x0D) are converted to ASCII Everything else is written out as-is.

About

Simple file converter for ZX Spectrum Picturesque Assembler files to ASCII

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages