/DCPU-CSharp

A DCPU Compiler and emulator for C#

Primary LanguageC#Microsoft Public LicenseMS-PL

A Visual studio plugin that allows compiling C# code into binary/asm for 0x10c DCPU.

Features:
* Create new Visual studio project
* Compile basic c# to:
  - asm
  - bin 
  - exe 
* Emulation using CLI at real speed (plus other speeds) with UI and step/reset controls
* Debugger support (Run programs and debug them via visual studio)
* Language Features:
	- Static function calls
	- variables
	- Inline asm
	- If
	- For
	- While

ToDo:
* Small standard library
* Auto complete and error checking in Visual Studio
* Network support (running two simulators together)
* Language Features
	- Switch
	- Lambda
	- Arrays
	- Objects
		- Fields/Properties
		- New/Delete
		- Virtual functions
		- Inheritance
		- Interfaces
	- Delegates/events
	- try/catch exceptions
	- using
	- namespace
	- cast
	- type saftey

Big thanks to:
https://github.com/Blecki/DCPUC
https://github.com/densitynz/DCPU-16-ASM.NET