x86-pc::*text-output-port* and bochs

Frode Vatvedt Fjeld <[email protected]> 26 Mar 2007 23:43:41 +0200
Newsgroups gmane.lisp.movitz.devel
Message-ID <[email protected]>
I just added a rather neat hack to textmode.lisp. The bochs PC
emulator has a feature that can be enabled where bytes written to
io-port #xe9 is sent to the console (you may need to recompile bohcs
in order to enable this, I'm not sure). Now, doing

  (setf x86-pc::*text-output-port* #xe9)

from inside bochs should cause everything to be logged to the
console. Similarly, it should be quite easy to set up a primitive
stream/function that dumps to #xe9, and bind e.g. *trace-output* to
it, which I should think might be useful.

-- 
Frode Vatvedt Fjeld