Commit graph

1585 commits

Author SHA1 Message Date
vibedivde
c19deebb75 add lock_mouse business
this has been my 3rd day doing nothing but analyzing v86
2020-07-17 22:44:24 +02:00
Andrew Au
6ab0fa85a9 Exposing the option to specify the second hard disk as a slave 2020-06-29 17:10:15 +02:00
Andrew Au
20469fe4ef
An attempt to make v86 ignore endbr32/endbr64 instructions (#344)
An attempt to make v86 ignore endbr32/endbr64 instructions
2020-05-29 22:20:22 +02:00
Fabian
94b86c0842 Include sourcemap in automatic builds 2020-04-25 00:50:34 +02:00
Fabian
811663c31f Include sourcemap in libv86.js 2020-04-22 22:43:25 +02:00
Filip Š
e99ba6e33e Switch to GitHub Releases for build storage 2020-04-22 22:32:48 +02:00
August
9c018e3d3a use specific version of closure 2020-03-22 14:56:58 +01:00
mprey
131f4e128b Fix tabulators from escaping CLI (copy#217) 2019-11-24 19:52:35 -06:00
copy
9211c4fc87 Destroy emulator (fix #283) 2019-07-11 19:44:48 -03:00
copy
833e9a2787 Make v86 destroyable (#283) 2019-07-11 17:13:54 -03:00
copy
e689674cec Make screen destroyable (#283) 2019-07-11 17:12:40 -03:00
copy
f6c2bea610 Remove silly anti-inlining hack 2019-07-11 17:11:45 -03:00
Filip Š
1cc094947d Use classList.contains for checking classes
Co-Authored-By: MailYouLater <github.com@mailinator.com>
2019-07-04 10:07:51 -03:00
Filip Š
f6464218e1 Temporary solution for hardcoded className 2019-07-04 10:07:51 -03:00
copy
82809ff85e Fix for recent versions of closure compiler 2019-07-03 20:23:39 -03:00
copy
289b8038b1 Cleanup 2019-05-18 14:16:37 -05:00
iamahuman
9c3f704d57 Use ES intrinsics for mul / imul, bsr / bsf
For integer multiplication, direct product of two 32-bit integers in
double precision FP arithmetic yields its higher 53 bits which are
sufficient for higher half of the product, while the lower half may be
computed with `Math.imul()`. A polyfill is provided for < IE 10.

For `floor(log2(n))` where `n` is a 32-bit integer, `31 - Math.clz32(n)`
is an accurate substitute for `v86util.int_log2` and preserves
`int_log2(0) = -1` (should it ever occur).
2019-05-18 14:16:16 -05:00
Ernest Wong
8b570936d2 Use alternative if AudioBuffer#copyToChannel is unavailable
Fixes #286

Safari 12 does not support AudioBuffer#copyToChannel yet.
2019-05-18 13:17:29 -05:00
Ernest Wong
19b8ac4799 Fix sound volume after state restore
Several volume mixer settings are mapped to two different mixer register
addresses: one for higher precision, and a lower precision one for
legacy reasons.

Windows 98 uses the new registers and leaves the legacy registers
untouched (which have a value of zero), but when v86 restores from a
state file, the old legacy registers are being re-written to and
incorrectly overwrites the new register values with zero.

mixer_full_update now skips over legacy register values. The new, higher
precision registers are the single source of truth and legacy register
values should be calculated from the new registers.

Fixes the Windows 98 sound demo.
2019-05-18 13:17:29 -05:00
copy
e237b218c9 Fix style and hide extra COM ports behind options 2019-05-11 19:06:41 -05:00
Stefan Bethke
0bce005cc0 Add COM2 to COM4 and extend API to allow receiving output bytes and sending input bytes to them. 2019-05-11 19:06:41 -05:00
Filip Š
bcc4f89a47 Use Python 3 for webserver 2019-04-09 09:43:33 -05:00
Fabian
ce1f396ef2 Fix #274 2019-03-22 17:13:46 -05:00
copy
9d19e01a1b Fix #271 2019-02-23 10:41:03 -05:00
David Bullado
59d9d103ef Fix spaces in instructions.js 2018-10-01 14:26:23 -03:00
David Bullado
af25d8eb00 Remove CR in fpu.js 2018-10-01 14:26:23 -03:00
David Bullado
700bd0e6e7 Implement instructions commiss & ucomiss 2018-10-01 14:26:23 -03:00
David Bullado
20905b90ac Minor: indentation consistency in cvtpi2ps.asm 2018-10-01 14:26:23 -03:00
David Bullado
22743716fd Remove unnecessary spaces in instruction.js 2018-10-01 14:26:23 -03:00
David Bullado
48f8fb1d77 Remove traling spaces in run.js 2018-10-01 14:26:23 -03:00
David Bullado
a9c0cd9679 Refactoring of fpu.integer_round 2018-10-01 14:26:23 -03:00
David Bullado
75c825a76d Add a trailing line in arith.js 2018-10-01 14:26:23 -03:00
David Bullado
d5f0f7e3e9 Implement ucomiss instruction 2018-10-01 14:26:23 -03:00
David Bullado
886d699ea9 Implement instruction cvtps2pi 2018-10-01 14:26:23 -03:00
David Bullado
43f9cd429f Implement instruction cvttps2pi 2018-10-01 14:26:23 -03:00
David Bullado
1e9c93252f Add nasm tests for movntpd & movntps 2018-10-01 14:26:23 -03:00
David Bullado
cd76fa7fff Implementation of movntpd & movntps instructions. 2018-10-01 14:26:23 -03:00
David Bullado
843ac57fbc Add cvtpi2ps instruction 2018-10-01 14:26:23 -03:00
David Bullado
12ba787e68 Nasm tests: print registry names in error output 2018-10-01 14:26:23 -03:00
David Bullado
5d18fb3786 Fix indentation between mmx and xmm for more clarity 2018-10-01 14:26:23 -03:00
David Bullado
9ec5f49115 Add movaps test 2018-10-01 14:26:23 -03:00
David Bullado
aafaa7c878 Fix do_mul32 bad usage in pmuludq 2018-09-17 13:57:05 -05:00
David Bullado
15058430f0 Add a new test case for pmuludq 2018-09-17 13:57:05 -05:00
David Bullado
994a1d265b Add nasm test for pmuludq 2018-09-17 13:57:05 -05:00
David Bullado
c4e689899b Update gdb command file output xmm registers (SSE) 2018-09-17 13:57:05 -05:00
David Bullado
f4f2514585 Implement pmuludq mm1, mm2/m64 2018-09-17 13:57:05 -05:00
copy
89f3a1c20b Fix FreeBSD loading on https 2018-07-15 14:58:44 -06:00
copy
0fdd1437bc Fix #220: Stackoverflow on JSOS 2018-07-13 14:57:35 -06:00
Ernest Wong
f6ae3ea58a AudioNode .connect chaining not implemented in Safari 2018-06-23 13:02:03 -06:00
copy
8f59a51458 Update ReactOS (#215) 2018-06-20 16:51:56 -06:00