[Coco] Allen, Allen, my buddy, you're gonna love this.

Allen Huffman alsplace at pobox.com
Thu Aug 14 00:23:47 EDT 2025



> On Aug 13, 2025, at 6:09 PM, Juan Castro via Coco <coco at maltedmedia.com> wrote:
> 
> (For certain twisted, messed up definitions of "love.")
> 
> Type this program in a CoCo 3, then save it to disk. It won't run, but it
> will tokenize every keyword, no problem.

Okay, more. Alex Evans’ BASIC UTILS have tokenizers … in Python. Here is his table:

https://github.com/varmfskii/basic_utils/blob/main/basic69/dialects.py

super_keywords = [
    ("ATTR", 0xF8), ("BRK", 0xF0), ("BUTTON", 0xFFA9), ("CMP", 0xF6),
    ("ERLIN", 0xFFAC), ("ERNO", 0xFFAB), ("ERR", 0xEF), ("HBUFF", 0xED),
    ("HCIRCLE", 0xE9), ("HCLS", 0xE6), ("HCOLOR", 0xE7), ("HDRAW", 0xF5),
    ("HGET", 0xEB), ("HLINE", 0xEA), ("HPAINT", 0xE8), ("HPOINT", 0xFFAA),
    ("HPRINT", 0xEE), ("HPUT", 0xEC), ("HRESET", 0xF4), ("HSCREEN", 0xE4),
    ("HSET", 0xF3), ("HSTAT", 0xF2), ("LOCATE", 0xF1), ("LPEEK", 0xFFA8),
    ("LPOKE", 0xE5), ("PALETTE", 0xE3), ("RGB", 0xF7), ("WIDTH", 0xE2)
]

Unravelled says:

LPEEK A8
BUTTON A9
HPOINT AA
ERNO AB
ERLIN AC

And this matches the table in the BASIC UTILS.

Which makes me think … it’s broken for these tokens!

(Or he has a special thing in the routine that uses the tokens that adjusts.)

Now I need to test that.


--
Allen Huffman - PO Box 7634 - Urbandale IA 50323 - 515-999-0227 (vmail/TXT only)
http://www.subethasoftware.com - https://www.facebook.com/subethasoftware




More information about the Coco mailing list