Giter VIP home page Giter VIP logo

Comments (7)

fuel-pcbox avatar fuel-pcbox commented on May 23, 2024

QEMU and Bochs also only emulate 386 or later CPUs and the main use case for QEMU is as a virtualizer anyway. MartyPC only emulates 8088-based systems currently, and also has far better debugging tools available to you anyway, than just the printf-style debugging that port 0xE9 gives you. You would know this, if you had actually used MartyPC before making this GitHub issue.

from martypc.

Azhagen avatar Azhagen commented on May 23, 2024

It is sometime simpler to use a printf style debugging, you know.
And yes, I know that there are more powerful tools available, thank you :)

from martypc.

dbalsom avatar dbalsom commented on May 23, 2024

If I'm reading right output to E9 was just printed to the console?
I figure you should be able to log any IO port, E9 or otherwise. Would be a good feature to help me debug future device implementations.

from martypc.

Azhagen avatar Azhagen commented on May 23, 2024

That's right, it simply prints to the console. It also does not need any setup, which is great.

from martypc.

dbalsom avatar dbalsom commented on May 23, 2024

That's right, it simply prints to the console. It also does not need any setup, which is great.

do you have an example program that uses it I could test with? do I want to filter output to ASCII printable characters, tab and newline, etc, to avoid garbage / beeps in the terminal?

I can get this in as a quick hack, but in the future I will probably implement it as a "null" device you would install in a machine configuration, with a port and tracelog setting. Tracelogs can already use stdout as an output target. This way you could have this facility for any port #.

from martypc.

Azhagen avatar Azhagen commented on May 23, 2024

do you have an example program that uses it I could test with?

I can make you an example program if you want. I don't have one at hands.

do I want to filter output to ASCII printable characters, tab and newline, etc, to avoid garbage / beeps in the terminal?

QEMU does not filter the output. It allows any character to be printed.

from martypc.

dbalsom avatar dbalsom commented on May 23, 2024

I was planning to implement this feature recently, but I stumbled across some interesting concerns

https://www.cyberark.com/resources/threat-research-blog/dont-trust-this-title-abusing-terminal-emulators-with-ansi-escape-characters

Now, the chances of a bad actor making a DOS COM program that attacks your terminal may sound ridiculous, but I would rather MartyPC not have any CVE's assigned to it. Perhaps file redirection is the way to go.

from martypc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.