• Home
  • Install
  • Cosmos Website
  • Articles
  • Cosmos
  • X#
  • IL2CPU
Show / Hide Table of Contents
  • Cosmos.IL2CPU
    • _ExceptionRegionInfo
    • _FieldInfo
    • CompilerHelpers
    • CosmosAssembler
    • ExceptionHelper
    • ExceptionHelperRefs
    • GCImplementationRefs
    • ICompilerEngineSettings
    • Il2cpuMethodInfo
    • Il2cpuMethodInfo.TypeEnum
    • ILOp
    • ILOpCode
    • ILOpCode.Code
    • ILReader
    • KernelPanics
    • MethodBaseComparer
    • OpCodeAttribute
    • PlugInfo
    • Program
    • ScannerQueueItem
    • SZArrayImpl<T>
    • VTablesImplRefs
  • Cosmos.IL2CPU.Extensions
    • FieldExtensions
    • TypeExtensions
  • Cosmos.IL2CPU.ILOpCodes
    • Box<T>
    • NullRef
    • OpBranch
    • OpDouble
    • OpField
    • OpInt
    • OpInt64
    • OpMethod
    • OpNone
    • OpSig
    • OpSingle
    • OpString
    • OpSwitch
    • OpToken
    • OpType
    • OpVar
  • Cosmos.IL2CPU.MethodAnalysis
    • ILGroup
    • ILMethod
  • Cosmos.IL2CPU.X86.IL
    • Add
    • Add_Ovf
    • Add_Ovf_Un
    • And
    • Arglist
    • Box
    • Br
    • Branch
    • Break
    • Call
    • Calli
    • Callvirt
    • Castclass
    • Ceq
    • Cgt
    • Cgt_Un
    • Ckfinite
    • Clt
    • Clt_Un
    • Constrained
    • Conv_I
    • Conv_I1
    • Conv_I2
    • Conv_I4
    • Conv_I8
    • Conv_Ovf_I
    • Conv_Ovf_I_Un
    • Conv_Ovf_I1
    • Conv_Ovf_I1_Un
    • Conv_Ovf_I2
    • Conv_Ovf_I2_Un
    • Conv_Ovf_I4
    • Conv_Ovf_I4_Un
    • Conv_Ovf_I8
    • Conv_Ovf_I8_Un
    • Conv_Ovf_U
    • Conv_Ovf_U_Un
    • Conv_Ovf_U1
    • Conv_Ovf_U1_Un
    • Conv_Ovf_U2
    • Conv_Ovf_U2_Un
    • Conv_Ovf_U4
    • Conv_Ovf_U4_Un
    • Conv_Ovf_U8
    • Conv_Ovf_U8_Un
    • Conv_R_Un
    • Conv_R4
    • Conv_R8
    • Conv_U
    • Conv_U1
    • Conv_U2
    • Conv_U4
    • Conv_U8
    • Cpblk
    • Cpobj
    • Div
    • Div_Un
    • Dup
    • Endfilter
    • Endfinally
    • Initblk
    • Initobj
    • Isinst
    • Jmp
    • Ldarg
    • Ldarga
    • Ldc_I4
    • Ldc_I8
    • Ldc_R4
    • Ldc_R8
    • Ldelem
    • Ldelem_I
    • Ldelem_I1
    • Ldelem_I2
    • Ldelem_I4
    • Ldelem_I8
    • Ldelem_R4
    • Ldelem_R8
    • Ldelem_Ref
    • Ldelem_U1
    • Ldelem_U2
    • Ldelem_U4
    • Ldelema
    • Ldfld
    • Ldflda
    • Ldftn
    • Ldind
    • Ldlen
    • Ldloc
    • Ldloca
    • Ldnull
    • Ldobj
    • Ldsfld
    • Ldsflda
    • LdStr
    • Ldtoken
    • Ldvirtftn
    • Leave
    • Localloc
    • Mkrefany
    • Mul
    • Mul_Ovf
    • Mul_Ovf_Un
    • Neg
    • Newarr
    • Newobj
    • Nop
    • Not
    • Or
    • Pop
    • Readonly
    • Refanytype
    • Refanyval
    • Rem
    • Rem_Un
    • Ret
    • Rethrow
    • Shl
    • Shr
    • Shr_Un
    • Sizeof
    • Starg
    • Stelem
    • Stelem_I
    • Stelem_I1
    • Stelem_I2
    • Stelem_I4
    • Stelem_I8
    • Stelem_R4
    • Stelem_R8
    • Stelem_Ref
    • Stfld
    • Stind
    • Stloc
    • Stobj
    • Stsfld
    • Sub
    • Sub_Ovf
    • Sub_Ovf_Un
    • Switch
    • Throw
    • Unaligned
    • Unbox
    • Unbox_Any
    • Volatile
    • Xor
  • IL2CPU.API
    • InlineAttribute
    • LabelName
    • ObjectPointerAccess
    • ObjectUtils
    • ObjectUtils.InstanceTypeEnum
    • TargetPlatform
  • IL2CPU.API.Attribs
    • AsmLabel
    • AsmMarker
    • AsmMarker.Type
    • BootEntry
    • DebugStub
    • FieldAccess
    • FieldType
    • ForceIncludeAttribute
    • ManifestResourceStreamAttribute
    • Plug
    • PlugAssembly
    • PlugAssembly.AssemblyType
    • PlugField
    • PlugMethod

Class CosmosAssembler

Inheritance
System.Object
Assembler
CosmosAssembler
Inherited Members
Assembler.EmitAsmLabels
Assembler.mGdCode
Assembler.mGdData
Assembler.mCurrentIlLabel
Assembler.CurrentIlLabel
Assembler.mAsmIlIdx
Assembler.AsmIlIdx
Assembler.mDataMembers
Assembler.DataMembers
Assembler.mInstructions
Assembler.Instructions
Assembler.CurrentInstance
Assembler.GetAssemblerElement(Int32)
Assembler.TryResolveReference(ElementReference)
Assembler.Add(Instruction)
Assembler.Add(Instruction[])
Assembler.GetIdentifier(String)
Assembler.BeforeFlush()
Assembler.FlushBinary(Stream, UInt64)
Assembler.FlushText(TextWriter)
Assembler.Format
Assembler.Separator
Assembler.AddSymbol
Assembler.BeforeFlushText(TextWriter)
Assembler.OnFlushTextAfterEmitEverything(TextWriter)
Assembler.ClearCurrentInstance()
Namespace: Cosmos.IL2CPU
Assembly: Cosmos.IL2CPU.dll
Syntax
public class CosmosAssembler : Assembler

Constructors

| Improve this Doc View Source

CosmosAssembler(Int32)

Declaration
public CosmosAssembler(int comPort)
Parameters
Type Name Description
System.Int32 comPort

Fields

| Improve this Doc View Source

EntryPointName

Declaration
public const string EntryPointName = "__ENGINE_ENTRYPOINT__"
Field Value
Type Description
System.String
| Improve this Doc View Source

ReadDebugStubFromDisk

Setting this field to false means the .xs files for the debug stub are read from the DebugStub assembly. This allows the automated kernel tester to use the live ones, instead of the installed ones.

Declaration
public static bool ReadDebugStubFromDisk
Field Value
Type Description
System.Boolean
| Improve this Doc View Source

RemoveBootDebugOutput

Declaration
public bool RemoveBootDebugOutput
Field Value
Type Description
System.Boolean

Methods

| Improve this Doc View Source

BeforeFlushText(TextWriter)

Declaration
protected override void BeforeFlushText(TextWriter aOutput)
Parameters
Type Name Description
System.IO.TextWriter aOutput
| Improve this Doc View Source

CreateGDT()

Declaration
public void CreateGDT()
| Improve this Doc View Source

CreateIDT()

Declaration
public void CreateIDT()
| Improve this Doc View Source

GdtDescriptor(UInt32, UInt32, Boolean)

Declaration
protected byte[] GdtDescriptor(uint aBase, uint aSize, bool aCode)
Parameters
Type Name Description
System.UInt32 aBase
System.UInt32 aSize
System.Boolean aCode
Returns
Type Description
System.Byte[]
| Improve this Doc View Source

Initialize(Boolean, String)

Declaration
public void Initialize(bool enableVBE, string VBEResolution)
Parameters
Type Name Description
System.Boolean enableVBE
System.String VBEResolution
| Improve this Doc View Source

OnAfterEmitDebugStub()

Declaration
protected virtual void OnAfterEmitDebugStub()
| Improve this Doc View Source

OnBeforeFlush()

Declaration
protected override void OnBeforeFlush()
Overrides
Assembler.OnBeforeFlush()
| Improve this Doc View Source

OnFlushTextAfterEmitEverything(TextWriter)

Declaration
protected override void OnFlushTextAfterEmitEverything(TextWriter aOutput)
Parameters
Type Name Description
System.IO.TextWriter aOutput
| Improve this Doc View Source

SetIdtDescriptor(Int32, String, Boolean)

Declaration
protected void SetIdtDescriptor(int aNo, string aLabel, bool aDisableInts)
Parameters
Type Name Description
System.Int32 aNo
System.String aLabel
System.Boolean aDisableInts
| Improve this Doc View Source

WriteDebugVideo(String)

Declaration
public virtual void WriteDebugVideo(string aText)
Parameters
Type Name Description
System.String aText
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
☀
☾