D
D
devalone2016-10-22 23:24:20
assembler
devalone, 2016-10-22 23:24:20

How to send character set to qemu if no OS is there?

Hello everyone, the situation is as follows, I am writing a brainfuck interpreter on bare metal (nasm assembler), almost everything is already working. I'm testing in qemu and every time I enter plus signs from the keyboard for a long time, maybe there is some way to send a sequence of characters to the program using regular qemu tools?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2016-10-23
@jcmvbkbc

You can teach the interpreter to read from a serial port, connect the QEMU serial port to stdio with the -serial option and write there like this:
echo '++++++' | qemu-system-... -nographic -monitor none -serial stdio

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question