Cosmos Userkit 20150310 ldobj Isn't implemented

Topics: Compiler, Using Cosmos (Developing your own OS, projects, etc)
Feb 7, 2015 at 8:14 AM
Edited Feb 7, 2015 at 8:16 AM
My Code:
using System;
using System.Collections.Generic;
using System.Text;
using Sys = Cosmos.System;
using Cosmos;
using Cosmos.Core;
using Cosmos.Debug;
using Cosmos.HAL;
using Cosmos.System;

namespace CosmosKernel3
{
    public class Kernel : Sys.Kernel
    {
        public static VGAScreen Ekran = new VGAScreen();
       

    
        protected override void BeforeRun()
        {
         System.Console.WriteLine("VGA Initializing");
         Ekran.SetGraphicsMode(VGAScreen.ScreenSize.Size320x200, VGAScreen.ColorDepth.BitDepth8);
         Ekran.Clear(0);
        
  
            
         System.Console.WriteLine("Cosmos booted successfully. Type a line of text to get it echoed back.");
        }

        protected override void Run()
        {
            Ekran.SetPixel320x200x8((uint)1, (uint)1, (uint)1);
            System.Console.Write("Input: ");
            var input = System.Console.ReadLine();
            System.Console.Write("Text typed: ");
            System.Console.WriteLine(input);
        }
    }
}
Tried Re-Installing UserKit
Tried Making VGAScreen Static or Un-Static
Tried Creating New Project With Same Code

And i Still get these errors on VS13 Ultimate , if i don't use any Cosmos.HAL code code successfully compiles & runs on VMWare Player.


Errors:
Error   1   Error occurred while invoking IL2CPU.   C:\Program Files (x86)\MSBuild\Cosmos\Cosmos.targets    31  6   CosmosKernel3Boot
Error   3      konum: Cosmos.IL2CPU.ILOpCodes.OpType.GetNumberOfStackPops(MethodBase aMethod) c:\Data\Sources\OpenSource\Cosmos\source\Cosmos.IL2CPU\ILOpCodes\OpType.cs içinde: satır 48   C:\Program Files (x86)\MSBuild\Cosmos\Cosmos.targets    31  6   CosmosKernel3Boot
Error   2   Exception: System.NotImplementedException: OpCode 'Ldobj' not implemented! Encountered in method Void WriteVGARegisters(Byte[]) C:\Program Files (x86)\MSBuild\Cosmos\Cosmos.targets    31  6   CosmosKernel3Boot
Error   4      konum: Cosmos.IL2CPU.ILOpCode.InitStackAnalysis(MethodBase aMethod) c:\Data\Sources\OpenSource\Cosmos\source\Cosmos.IL2CPU\ILOpCode.cs içinde: satır 296 C:\Program Files (x86)\MSBuild\Cosmos\Cosmos.targets    31  6   CosmosKernel3Boot
Error   5      konum: Cosmos.IL2CPU.ILReader.ProcessMethod(MethodBase aMethod) c:\Data\Sources\OpenSource\Cosmos\source\Cosmos.IL2CPU\ILReader.cs içinde: satır 407 C:\Program Files (x86)\MSBuild\Cosmos\Cosmos.targets    31  6   CosmosKernel3Boot
Error   6      konum: Cosmos.IL2CPU.ILScanner.ScanMethod(MethodBase aMethod, Boolean aIsPlug, String sourceItem) c:\Data\Sources\OpenSource\Cosmos\source\Cosmos.IL2CPU\ILScanner.cs içinde: satır 533  C:\Program Files (x86)\MSBuild\Cosmos\Cosmos.targets    31  6   CosmosKernel3Boot

Error   7      konum: Cosmos.IL2CPU.ILScanner.ScanQueue() c:\Data\Sources\OpenSource\Cosmos\source\Cosmos.IL2CPU\ILScanner.cs içinde: satır 658 C:\Program Files (x86)\MSBuild\Cosmos\Cosmos.targets    31  6   CosmosKernel3Boot

Error   8      konum: Cosmos.IL2CPU.ILScanner.Execute(MethodBase aStartMethod) c:\Data\Sources\OpenSource\Cosmos\source\Cosmos.IL2CPU\ILScanner.cs içinde: satır 249    C:\Program Files (x86)\MSBuild\Cosmos\Cosmos.targets    31  6   CosmosKernel3Boot

Error   9      konum: Cosmos.IL2CPU.CompilerEngine.Execute() c:\Data\Sources\OpenSource\Cosmos\source\Cosmos.IL2CPU\CompilerEngine.cs içinde: satır 238 C:\Program Files (x86)\MSBuild\Cosmos\Cosmos.targets    31  6   CosmosKernel3Boot
When i compile with some VGAScreen code i get all these errors (9 in total).

Also i found ldobj opcode at Cosmos Git but i have no ideas about how to compile that.
Coordinator
Feb 8, 2015 at 8:26 AM
What userkit version do you have installed?


2015-02-07 10:14 GMT+01:00 SomeDev <[email removed]>:

From: SomeDev

My Code:
using System;
using System.Collections.Generic;
using System.Text;
using Sys = Cosmos.System;
using Cosmos;
using Cosmos.Core;
using Cosmos.Debug;
using Cosmos.HAL;
using Cosmos.System;

namespace CosmosKernel3
{
    public class Kernel : Sys.Kernel
    {
        public static VGAScreen Ekran = new VGAScreen();
       

    
        protected override void BeforeRun()
        {
         System.Console.WriteLine("VGA Initializing");
         Ekran.SetGraphicsMode(VGAScreen.ScreenSize.Size320x200, VGAScreen.ColorDepth.BitDepth8);
         Ekran.Clear(0);
        
  
            
         System.Console.WriteLine("Cosmos booted successfully. Type a line of text to get it echoed back.");
        }

        protected override void Run()
        {
            Ekran.SetPixel320x200x8((uint)1, (uint)1, (uint)1);
            System.Console.Write("Input: ");
            var input = System.Console.ReadLine();
            System.Console.Write("Text typed: ");
            System.Console.WriteLine(input);
        }
    }
}
Tried Re-Installing UserKit
Tried Making VGAScreen Static or Un-Static
Tried Creating New Project With Same Code

And i Still get these errors on VS13 Ultimate , if i don't use any Cosmos.HAL code code successfully compiles & runs on VMWare Player.


Errors:
Error   1   Error occurred while invoking IL2CPU.   C:\Program Files (x86)\MSBuild\Cosmos\Cosmos.targets    31  6   CosmosKernel3Boot
Error   3      konum: Cosmos.IL2CPU.ILOpCodes.OpType.GetNumberOfStackPops(MethodBase aMethod) c:\Data\Sources\OpenSource\Cosmos\source\Cosmos.IL2CPU\ILOpCodes\OpType.cs içinde: satır 48   C:\Program Files (x86)\MSBuild\Cosmos\Cosmos.targets    31  6   CosmosKernel3Boot
Error   2   Exception: System.NotImplementedException: OpCode 'Ldobj' not implemented! Encountered in method Void WriteVGARegisters(Byte[]) C:\Program Files (x86)\MSBuild\Cosmos\Cosmos.targets    31  6   CosmosKernel3Boot
Error   4      konum: Cosmos.IL2CPU.ILOpCode.InitStackAnalysis(MethodBase aMethod) c:\Data\Sources\OpenSource\Cosmos\source\Cosmos.IL2CPU\ILOpCode.cs içinde: satır 296 C:\Program Files (x86)\MSBuild\Cosmos\Cosmos.targets    31  6   CosmosKernel3Boot
Error   5      konum: Cosmos.IL2CPU.ILReader.ProcessMethod(MethodBase aMethod) c:\Data\Sources\OpenSource\Cosmos\source\Cosmos.IL2CPU\ILReader.cs içinde: satır 407 C:\Program Files (x86)\MSBuild\Cosmos\Cosmos.targets    31  6   CosmosKernel3Boot
Error   6      konum: Cosmos.IL2CPU.ILScanner.ScanMethod(MethodBase aMethod, Boolean aIsPlug, String sourceItem) c:\Data\Sources\OpenSource\Cosmos\source\Cosmos.IL2CPU\ILScanner.cs içinde: satır 533  C:\Program Files (x86)\MSBuild\Cosmos\Cosmos.targets    31  6   CosmosKernel3Boot

Error   7      konum: Cosmos.IL2CPU.ILScanner.ScanQueue() c:\Data\Sources\OpenSource\Cosmos\source\Cosmos.IL2CPU\ILScanner.cs içinde: satır 658 C:\Program Files (x86)\MSBuild\Cosmos\Cosmos.targets    31  6   CosmosKernel3Boot

Error   8      konum: Cosmos.IL2CPU.ILScanner.Execute(MethodBase aStartMethod) c:\Data\Sources\OpenSource\Cosmos\source\Cosmos.IL2CPU\ILScanner.cs içinde: satır 249    C:\Program Files (x86)\MSBuild\Cosmos\Cosmos.targets    31  6   CosmosKernel3Boot

Error   9      konum: Cosmos.IL2CPU.CompilerEngine.Execute() c:\Data\Sources\OpenSource\Cosmos\source\Cosmos.IL2CPU\CompilerEngine.cs içinde: satır 238 C:\Program Files (x86)\MSBuild\Cosmos\Cosmos.targets    31  6   CosmosKernel3Boot
When i compile with some VGAScreen code i get all these errors (9 in total).

Read the full discussion online.

To add a post to this discussion, reply to this email ([email removed])

To start a new discussion for this project, email [email removed]

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com


Feb 8, 2015 at 5:02 PM
20150130 The Latest version of userkit
Feb 13, 2015 at 9:57 AM
Edited Feb 13, 2015 at 9:58 AM
SomeDev, I'm Turkish like you. I'm writing in English language because maybe writing in Turkish language is forbidden. 20150130 isn't a userkit version. its a devkit version. And in the last devkits (these versions contains Cosmos.HAL) i'm getting this error like you. I fixed this with using public static VGAScreen Ekran; instead of public static VGAScreen Ekran = new VGAScreen(); But i highly recommend you shouldn't use this version. Because you will get these errors in all Cosmos.HAL components. Download userkit from Downloads page. Sorry for my bad English.

Goodday / İyi günler.
Coordinator
Feb 13, 2015 at 10:01 AM
Turkish and other languages are fine, however English is preferred. If people post in languages other than English it will limit those who can participate in the reply.

So the translation to English is preferred, but not required.
Coordinator
Feb 13, 2015 at 10:46 AM
ILCode: 20150130 is a new form of userkit releases. IN the past we used the Codeplex changeset id for the build number. Doing that on github would mean having an id like 90169ed6ef67bb87d6d66dac32bf63f922ee0b7a as release number..... :)

ILCode, what kind of errors do you get with latest release?
It seems to me you're using old hardware dll's?



2015-02-13 12:02 GMT+01:00 kudzu <[email removed]>:

From: kudzu

Turkish and other languages are fine, however English is preferred. If people post in languages other than English it will limit those who can participate in the reply.

So the translation to English is preferred, but not required.

Read the full discussion online.

To add a post to this discussion, reply to this email ([email removed])

To start a new discussion for this project, email [email removed]

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com