#comment This file is part of Z80 Scheme Interpreter Z80 Scheme Interpreter is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Copyright 2007, Spencer Putt #endcomment #define DB .db #include "getstr.inc" repl_initialize: ld hl,empty_env ld (global_env),hl ld hl,0 ld (pencol),hl ret ; input ; de - base environment ; output ; none do_repl: ld a,$3E bcall(_vputmap) ld a,' ' bcall(_vputmap) ld ix,savesscreen ld b,384 call getstr ld a,(penrow) add a,6 ld (penrow),a xor a ld (pencol),a ld hl,savesscreen ld de,(global_env) call evaluate call repl_print jp do_repl