Skip to content

Commit

Permalink
Add screen capture of the REPL
Browse files Browse the repository at this point in the history
  • Loading branch information
mossprescott committed Mar 25, 2024
1 parent c61583b commit 29d7bbc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions alt/scheme/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ Goals:
- provide a REPL that can compile and run simple functions like `fib` or `fact` written at the
keyboard
- run something graphical (even if in character-mode)
- implement as little as possible in assembly; just the bare interpreter and Ribbit primitives,
- implement as little as possible in assembly/Jack; just the bare interpreter and Ribbit primitives,
plus a few additions for accessing the hardware.

![evaluating (+ 1 2)](capture.mov)


## Virtual Machine

Expand Down Expand Up @@ -38,8 +40,8 @@ character (if any).
However, at present, characters can only be entered after `getchar` has been invoked. While in the
loop receiving keypresses, a "blinking" underscore indicates the cursor position.
This makes `getchar`/`putchar` unsuitable for non-terminal-oriented uses (i.e. games.) Instead, you
can implement your own "keyDown" and "drawChar" operations (see [io.scm](io.scm)) using
`(peek 4095)` and `(poke (screenAddr x y) c)`.
can implement your own "keyDown" and "drawChar" operations using `(peek 4095)` and
`(poke (screenAddr x y) c)` (see [io.scm](io.scm)).


## Memory Layout
Expand Down
Binary file added alt/scheme/capture.mov
Binary file not shown.

0 comments on commit 29d7bbc

Please sign in to comment.