Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 13 21:59
    safinaskar commented #298
  • Oct 13 19:58
    copy labeled #299
  • Oct 13 19:58
    copy opened #299
  • Oct 13 19:54
    copy closed #298
  • Oct 13 19:54
    copy commented #298
  • Oct 10 23:06
    safinaskar commented #298
  • Oct 10 21:41
    BenNottelling commented #298
  • Oct 10 19:19
    safinaskar opened #298
  • Oct 07 03:56
    ZaDarkSide commented #256
  • Oct 07 03:55
    ZaDarkSide commented #256
  • Oct 07 03:55
    ZaDarkSide commented #256
  • Sep 10 19:10
    pitust commented #297
  • Sep 10 19:03
    pitust commented #297
  • Sep 10 19:02
    pitust commented #297
  • Sep 09 12:36
    copy labeled #297
  • Sep 09 12:36
    copy labeled #297
  • Sep 08 12:18
    filips123 edited #297
  • Sep 08 12:16
    filips123 opened #297
  • Aug 25 06:41
    MicroappsTeam commented #86
  • Aug 23 07:16
    arcanis commented #48
Max-Novak
@Max-Novak
Thank you for the quick response
Max-Novak
@Max-Novak
Excuse me for being naive but is it possible for you to post the library you have prebuilt or would that not work?
Fabian
@copy
Max-Novak
@Max-Novak
thank you
pixeltris
@pixeltris
is there any way to redirect DNS requests on windows 95/98 without creating a custom img? i have some hacky networking working via SOCKS / shared memory of a usermode process, but at a bit of a loss how to get windows to look at my DNS
Fabian
@copy
@pixeltris I don't think so (it would require packet inspection?), but if you have the image locally you can use qemu to make the change. Under certain conditions v86 also offers you to download the modified image, but I believe only if it has been downloaded completely (as opposed to being downloaded in slice on demand, as is the case with the 98 image).
pixeltris
@pixeltris
ok thanks, i found out that winsock actually allows you to define a dll which does the DNS lookup, haven't tried it yet but fairly sure it'll work
copy/v86#198 going to play around with this idea soon. i guess 99% of sites wont work though, internet archive access would be nice, not sure how they have their site setup in terms of CORS though
pixeltris
@pixeltris
image.png
well i got your site to load (this is via XMLHttpRequest, no external proxy server (though that's supported too))
but yea 99.999% of sites obviously don't work, including internet archive :(. might need to write a web crawler and find sites which allow '*' for CORS
Benjamin Aerni
@BenNottelling
@pixeltris Can you publish that somewhere?
pixeltris
@pixeltris
will do after i've finished working on it. it's a little annoying to set up at the moment (at least on the built version of v86) as it needs access to the Uint8Array heap which is tricky to access due to js closures. would be nice if v86 exposed the heap as a global var HEAPU8 similar
Fabian
@copy
@pixeltris Cool stuff. What do you mean by heap? The guest memory?
pixeltris
@pixeltris
yea. essentially what I'm doing is super hacky. I'm creating a .txt file with 4096 characters in the vm. then scanning the memory for that buffer, i then replace those bytes with a stub exe which i can then use to transfer over a larger exe which handles the network traffic and such. the reason why i'm doing it like this is because the same code works on other things like jslinux. the correct thing to do would be to use a COM port i guess
pixeltris
@pixeltris
@copy the state.bin files don't seem to be gzipped for me on https, but they are on http. is that by design?
Fabian
@copy
That's not good, let me check
Yeah, can confirm
pixeltris
@pixeltris
hmm this is strange, on chrome i'm getting a CORS issue on the .img files. there seem to be multiple https://copy.sh allow origin entries. when i directly access the img it doesn't seem to show the duplicate entry
Fabian
@copy
@pixeltris Yeah, should be fixed now (including the compression issue). Thanks for reporting
pixeltris
@pixeltris
awesome
Fabian
@copy
The amount of bugs I had in v86 due to a combination of Cloudflare's proxy, htaccess files, http's intricacies with Range, CORS, Content-Type and compression headers is astonishing
Benjamin Aerni
@BenNottelling
pixeltris
@pixeltris
https://github.com/pixeltris/ww32vmt here's the code of that thing i was working on. i added file transfer support and clipboard access (text only), on top of that internet stuff which i already showed. it will probably stop working correctly as the memory of the OS fills up / fragments as it does a pretty fragile sharing of memory. if anyone knows of any better way of doing something similar, with just a byte array access i would love to hear
it's a little bit lame to set that tool up on v86 as there isn't any global access to the guest memory. you need to place a breakpoint down here https://github.com/copy/v86/blob/master/src/state.js#L309, step over it and then grab the memory array
Max-Novak
@Max-Novak
In /examples/serial.html one serial communicates with another and then freezes the main "OS" container
My goal is to create a button that when pressed will execute commands & scripts in the v86 OS and such that it can still be utlizied by a user
Max-Novak
@Max-Novak
If I copy paste the code from /examples/serial and instead of window.onload use it in an onclick button
It doesn't enter the emulator.add_listener("serial0-output-char", function(char)
How does the emulator.add_listener get triggered? Can I trigger it on a button click?
pixeltris
@pixeltris
the callback? it should be triggered when something in the VM sends a message over the serial port
emulator.serial0_send would be to send something into the VM
Max-Novak
@Max-Novak
emulator.add_listener("serial0-output-char", function(chr)
{
    this.postMessage(chr);
}.bind(this));

this.onmessage = function(e)
{
    emulator.serial0_send("test");
};
Right
But
1) I don't see any of the commands being executed in the vm
2) I lost focus on the window and can't type again
Can you explain how the code block above works I would really appreciate it
pixeltris
@pixeltris
if i'm not mistaken that will send anything back to the VM that the VM sends to host
Max-Novak
@Max-Novak
What is the practical purpose of that?
pixeltris
@pixeltris
i have no idea
Max-Novak
@Max-Novak
I want a way to just input commands into the vm
programatically
so like run a couple commands by a user clicking a button
Max-Novak
@Max-Novak
Oh your right just emulator.serial0_send(stages[0].send)
was all i was looking for thank you
Max-Novak
@Max-Novak
image.png
What are the things in the test folder?
Ive never seen something like it before
Fabian
@copy
@Max-Novak Those are tests for the cpu: https://github.com/copy/v86/tree/master/tests/qemu
Chris Mountford
@christo
@copy nice work on v86
Fabian
@copy
@christo Cheers!