parameterize emulator
This commit is contained in:
parent
f7812bb19d
commit
bd510a228e
5
test.scm
5
test.scm
|
@ -21,10 +21,13 @@
|
||||||
(let ((s (read-string #f port)))
|
(let ((s (read-string #f port)))
|
||||||
(if (eq? s #!eof) "" s)))
|
(if (eq? s #!eof) "" s)))
|
||||||
|
|
||||||
|
(define emulator "./vm")
|
||||||
|
;(define emulator "uxncli")
|
||||||
|
|
||||||
(define (run-rom prog-text emu-args input-text)
|
(define (run-rom prog-text emu-args input-text)
|
||||||
(let*-values (((rom-path) (create-rom prog-text))
|
(let*-values (((rom-path) (create-rom prog-text))
|
||||||
((args) (cons rom-path emu-args))
|
((args) (cons rom-path emu-args))
|
||||||
((c-out c-in c-pid c-err) (process* "./vm" args)))
|
((c-out c-in c-pid c-err) (process* emulator args)))
|
||||||
(display input-text c-in)
|
(display input-text c-in)
|
||||||
(close-output-port c-in)
|
(close-output-port c-in)
|
||||||
(let*-values (((out-text) (read-output c-out))
|
(let*-values (((out-text) (read-output c-out))
|
||||||
|
|
Loading…
Reference in New Issue