Use a different approach to reading from buffers
authorJonas Hvid <mail@johv.dk>
Sun, 8 Mar 2020 18:17:02 +0000 (19:17 +0100)
committerJonas Hvid <mail@johv.dk>
Sun, 8 Mar 2020 18:17:02 +0000 (19:17 +0100)
commitc6ef34f80b3c194834b1522657166c2a36bf4a29
treeb56e104cb3c8261fea94c8aff2f270d8302a6afc
parentf0df53c35124c9a5e2b045aba60b513faa344567
Use a different approach to reading from buffers

We now store INPUT-BUFFER as a global variable. Words like S" and READ-WORD
automatically use this INPUT-BUFFER if it's available.

Our program currently segfaults on startup, which is probably because of at
least one of the following:

1. We don't handle the case where an input buffer ends in whitespace in
   INTERPRET-STRING.
2. We don't do anything to resume reading from user input when the buffer has
   been exhausted.
bootstrap.asm
main.asm
sys.f