Skip to content

6502: get examples to work #232

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

Miezekatze64
Copy link
Contributor

This implements everything needed to run all the examples except raylib.b, game_of_life.b and snake.b.
Also, dc.b currently causes stack overflow on p.

To make the other examples work, we introduced a KBD interface to read characters, losely based on Apple 1 [6821 PIA] and also moved our output to use 6821 PIA DSP.

In addition, runtime arguments will now be passed to 6502 at compile-time, this can be changed to runtime later, but would require reserving a buffer for strings (maybe in ROM page).

// out in B.
MEMORY[address as usize] = getchar() as i8 as u8;
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After #257 all of this functionality should be in https://github.com/bext-lang/posix6502. Could you please submit it there?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants