Skip to content

Tiny Basic internal doc? #6

@The-Blue-Wizard

Description

@The-Blue-Wizard

I found a 6502 version of Tiny Basic...it's in your repo! 😄
Anyway, I grabbed the code and modified it to assemble using ACME (not hard!), and modified it so it has both TOPMEM and BOTTOM memory range. then integrated it with my text mode screen manager (console style) plus a machine monitor derived from WozMon (of Apple I). I had to relocate the zero pages used by these programs to accommodate Tiny Basic interpreter. I originally had used $20-$3F zero pages, but I saw explicit uses of $23, etc (when modifying the code to use TOPMEM/BOTTOM boundaries), so I relocated them to $40-$5F range. But when running the interpreter, I noticed the text rendering got corrupted somehow, and I then looked more closely into the code. I don't see any $4x and $5x. I think the interpreter has an internal parameter stack located in zero page that somehow hit the memory range. But the source code is so incredibly cryptic to figure out!!!
I am thinking about reverse engineering it and adding the document to that...though it would be quite some work. And I'm willing to submit the updates to your copy if you like.
Let me know what you think or say about all that. Thanks in advance!
P.S. Having more (meaningful) symbols would be helpful, plus more info re: internal working would be helpful in porting that interpreter to other 6502 platforms.
P.S.S. I don't want to clone the entire 6502 repo just to push changes to one file...but I don't see how... ☹️

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions