Commit graph

6179 commits

Author SHA1 Message Date
fanoI
0dbb621c5d Fixed DataMember to handle long / ulong values (that is the correct NASM type 'dq' is emitted) 2016-08-25 15:43:52 +02:00
fanoI
b16b034ff9 Restored Int32 tests and added another concat test to String. 2016-08-24 14:21:18 +02:00
fanoI
709741d569 Added file DictionaryTests.cs with preliminary not passing test of Dictionary BCL class 2016-08-22 17:18:40 +02:00
fanoI
e2f363a200 Merge branch 'master' of https://github.com/CosmosOS/Cosmos
# Conflicts:
#	Tests/Cosmos.Compiler.Tests.Bcl/System/DoubleTest.cs
#	Tests/Cosmos.Compiler.Tests.Bcl/System/SingleTest.cs
2016-08-22 17:12:59 +02:00
fanoI
ad960c9a1a Continuation of Float work
- Fixed Single.ToString() on special cases (infinities, NaN and 0) and aumented the range of printable values
- Fixed Double.ToString(): it always printed "Double Overrange" for a bug in opcode ldarga
- Fixed opcode ldarga: the displacement of the argument variable was off of 4 bytes
- Fixed opcodes shr, shr_un and shl when the shift was more that 32 bytes, added to BCL relative tests
- Added BLC tests regarding BitConverter and unsafe code
- Moved the meat of the code of Single.ToString() and Double.ToString() to the class StringHelper together with the analogous methods for numer types
- Re-added _floatsignbit to CosmosAssembler.cs so the neg test should not fail anymore
- Removed all code relative to x87 that I had left under #if false
- Clean up
2016-08-22 16:31:22 +02:00
Charles Betros
3f47a50ea0 Comment failing tests. 2016-08-18 23:29:03 -05:00
Charles Betros
565053414d Merge pull request #369 from fanoI/master
- Initial work as for https://github.com/CosmosOS/Cosmos/issues/359
2016-08-18 16:32:23 -05:00
fanoI
ec6e231ac9 - Bugfix Shr_un does not really did a shift right unsigned
- Bugfix Shr does not really did a shift right signed
- Bigfix ShiftRighDouble was implemented as  ShiftLeftDouble
2016-08-18 20:10:10 +02:00
Matthijs ter Woord
82009cdec1 Merge pull request #434 from Unknown6656/date-time-functions
Added ASM instructions and basic DateTime-implementation
2016-08-14 17:31:40 +02:00
Unknown6656
1fd7a0367c Added ASM instructions and basic DateTime-implementation
Added the x86-instructions 'LEA', 'RDTSC' and 'RDMSR'.
Added a simplistic plug for 'system::datetime', which now contains the
method for fetching the current date/time
2016-08-14 06:06:30 +02:00
Charles Betros
d025c649bc Merge pull request #431 from TheCool1James/master
Fixed (short-short) op bug
2016-08-10 13:55:59 -05:00
Kevin
23c7e4c01e Fixed (short-short) op bug 2016-08-10 13:15:12 -04:00
fanoI
e6143b75df Source lose some changes... forced them! 2016-07-31 19:55:12 +02:00
fanoI
e36aeefd1a Trying to enanche the constant variables declaration:
- Added a version of XS.SSE.MoveSS that accepts a String as source (to use the constant variable name)
- Added XS.SSE2.XorPd
- Neg opcode declares the constant inline and not uses XS.LiteralCode anymore

Please note that this code actually fails the second float neg test for no valid reason!
2016-07-31 17:01:50 +02:00
Charles Betros
53094b440b Fix typo in readme.md (#420) 2016-07-28 09:54:13 -05:00
pabru
7d684a8ce7 Fix typo in readme.md 2016-07-28 12:14:36 +01:00
fanoI
6e1bfb8d92 - Implemented Neg Opcode for floating point
- Added test for Neg OpCode for float and double
- Conv.U8 wrongly changed the sign of double before converting it to ulong
- Div_Un, Add_Ovf and Add_Ovf_Un had code for floating point but they should not have that for ECMA specs
2016-07-17 17:05:00 +02:00
fanoI
790ba2312c Added test for conversion to float to ulong 2016-07-03 19:28:13 +02:00
fanoI
0af7c5b78f - Finally the conversion of an ulong to a double works (IL opcode conv.r.un is completed)
- TestRunner should not be Run in process!
- Removed all unused 'variables' in CosmosAssembler.cs
- Fixed X#: FloatStoreAndPop() ignored the RegisterSize value
2016-07-03 15:00:04 +02:00
Matthijs ter Woord
07ac6cac1f Remove temporary Nunit 3.4.0 script. 2016-06-29 13:43:19 -04:00
Matthijs ter Woord
ca4901818a Disable the temporary test to reproduce the test issue. 2016-06-28 09:24:02 -04:00
Matthijs ter Woord
c5197f7f09 Build server is fixed now? Seems like a bug in NUnit 3.2.1. Script now installs 3.4.0. 2016-06-28 08:53:24 -04:00
Matthijs ter Woord
e66d787493 . 2016-06-27 08:57:25 -04:00
Matthijs ter Woord
bb7282322d More attempts to fix appveyor build.. 2016-06-27 08:51:30 -04:00
Matthijs ter Woord
9ba48ed61f Test to see if running multiple works ok. 2016-06-26 14:49:49 -04:00
Matthijs ter Woord
218f3ef03a Merge pull request #395 from jp2masa/ConsoleUpdate
Implemented some console methods and fixed a bug in the console, copying the behaviour of background color in windows console applications.
2016-06-26 20:27:26 +02:00
Matthijs ter Woord
3f78163e87 Enable all kernels except FAT. 2016-06-26 14:25:39 -04:00
Matthijs ter Woord
858bce5c79 Enable fat test. 2016-06-26 14:02:57 -04:00
Matthijs ter Woord
f4bf4e97c2 Disable memory test and enable debug compiler. 2016-06-26 13:54:28 -04:00
Matthijs ter Woord
6e3b517c08 Merge branch 'master' of https://github.com/CosmosOS/Cosmos 2016-06-26 13:41:57 -04:00
Matthijs ter Woord
66ff8688ab Disable memory test for now. 2016-06-26 13:41:51 -04:00
Matthijs ter Woord
5ba4fa9913 Merge pull request #391 from jp2masa/master
Replace PXE interface textbox with a combobox, filled with local machine interfaces
2016-06-26 19:27:15 +02:00
Matthijs ter Woord
336c65edcc Fix appveyor format 2016-06-26 13:23:32 -04:00
Matthijs ter Woord
fba256eeac Attempt to fix build. 2016-06-26 13:22:33 -04:00
Matthijs ter Woord
8cfa0b89ca Merge pull request #389 from MichaelTheShifter/console
Added more keys to the ConsoleKeyEx -> ConsoleKey converter.
2016-06-26 19:09:01 +02:00
Matthijs ter Woord
785693fe8f Only for VGA crash and Fat test kernels and improved timeout even more. 2016-06-26 12:01:18 -04:00
fanoI
56beccb8af Merge branch 'master' of https://github.com/CosmosOS/Cosmos
# Conflicts:
#	source/Cosmos.sln
2016-06-26 15:09:13 +02:00
fanoI
4e1c505e52 Merge branch 'master' of https://github.com/CosmosOS/Cosmos
# Conflicts:
#	Tests/Cosmos.Compiler.Tests.SingleEchoTest/Kernel.cs
#	source/Cosmos.Assembler/Assembler.cs
#	source/Cosmos.IL2CPU/IL/Add.cs
#	source/Cosmos.IL2CPU/IL/Ceq.cs
#	source/Cosmos.IL2CPU/IL/Cgt.cs
#	source/Cosmos.IL2CPU/IL/Cgt_Un.cs
#	source/Cosmos.IL2CPU/IL/Clt.cs
#	source/Cosmos.IL2CPU/IL/Clt_Un.cs
#	source/Cosmos.IL2CPU/IL/Conv_I2.cs
#	source/Cosmos.IL2CPU/IL/Conv_I4.cs
#	source/Cosmos.IL2CPU/IL/Conv_I8.cs
#	source/Cosmos.IL2CPU/IL/Conv_R4.cs
#	source/Cosmos.IL2CPU/IL/Conv_R_Un.cs
#	source/Cosmos.IL2CPU/IL/Conv_U1.cs
#	source/Cosmos.IL2CPU/IL/Conv_U2.cs
#	source/Cosmos.IL2CPU/IL/Div.cs
#	source/Cosmos.IL2CPU/IL/Mul.cs
#	source/Cosmos.IL2CPU/IL/Sub.cs
2016-06-26 15:02:38 +02:00
jp2masa
9b6bd665be Fix String.EndsWith and add reference to PlugsInspector project (#393)
* Fix String.EndsWith

* Add Cosmos.Core.Plugs as Reference to PlugsInspector so the list includes every plug.
2016-06-26 01:49:23 -05:00
Matthijs ter Woord
3f8c3dfcc5 Increase test kernel timeout. 2016-06-25 15:25:09 -04:00
Matthijs ter Woord
c1a82c6eaf Fix appveyor 2016-06-25 14:40:25 -04:00
Matthijs ter Woord
27a2ec5ae8 Typo in appveyor file. 2016-06-25 13:55:25 -04:00
Matthijs ter Woord
9db5f05359 New callback url for gitter. 2016-06-25 13:52:28 -04:00
Matthijs ter Woord
c90e41ad48 Attempt to fix builds on appveyor even more. 2016-06-25 13:50:05 -04:00
Matthijs ter Woord
3bfaf7f670 Make plugmanager not throw exceptions when plug targets are not found. 2016-06-25 12:16:51 -04:00
Matthijs ter Woord
00658f9923 Disable running IL2CPU in process. 2016-06-25 11:58:14 -04:00
Matthijs ter Woord
c4330ffcc2 Remove fat kernel from msbuild build. 2016-06-25 11:50:31 -04:00
Matthijs ter Woord
16e57658f0 Fix project settings. 2016-06-25 11:30:33 -04:00
Matthijs ter Woord
6fee280aaf Enable normal tests again. 2016-06-25 11:01:05 -04:00
Matthijs ter Woord
626c96eb40 Merge branch 'master' of https://github.com/CosmosOS/Cosmos 2016-06-25 10:52:56 -04:00