List ZX81 BASIC .P programs in a terminal. Written in Python. - Keywords: emulation zx81 basic listing

Pedro Gimeno Fortea ac55b57441 Unicode has now included the missing characters 4 년 전
.gitignore 9657a8ff71 Add .gitignore 10 년 전
README.md 73ea98e4c0 Add README.md for github 10 년 전
listzx81.py ac55b57441 Unicode has now included the missing characters 4 년 전

README.md

ListZX81

List ZX81 BASIC .P programs in a terminal. Written in Python.

Should work on Python 2 and 3.

Output goes to stdout.

Usage: listzx81.py file.p [hilite]

If the hilite option is added, terminal escape codes are output as well.

The terminal codes supported are bold (for tokens) and inverse video (for ZX81 characters with bit 7 set).

It uses Unicode to output certain characters. Two characters that don't (to the best of my knowledge) have an Unicode equivalent are the upper half checkerboard and the lower half checkerboard. Those are printed as {CHKHI} and {CHKLO}.

Uses the ROM's algorithm to determine when to print spaces around tokens.

Written by Pedro Gimeno Fortea on November 2014. Released to the public domain.

Keywords: Lister, Lists BASIC programs, ZX81, P files