Zardoz89 / dcpu_vm

Another DCPU-16 Virtual Machine
http://zardoz89.github.io/dcpu_vm/
MIT License
6 stars 2 forks source link

Devices loadout #21

Open Zardoz89 opened 11 years ago

Zardoz89 commented 11 years ago

We need a way to select the devices load-out in a more powerful way. DevKit uses a XML (we can use TinyXML-2 lib for this) to select the load-out and build a multi-file assembly project. A example : https://github.com/S0lll0s/HowDoIOS/blob/master/DevKit/HowDoIOS-DevKit.10csln

If the load-out is missing or isn't using these "project file", we can use a default hardware load-out modifiable with the same parameters that actually we have.

lamogui commented 11 years ago

Yeah, i need also to implement "#include" directive for the assembler, to support many files .dasm

Zardoz89 commented 11 years ago

I saw that sometimes they use ".include" and ".define" instead of "#include" and "#define" Here : https://github.com/0x10cStandardsCommittee/0x10c-Standards/blob/master/ASM/Spec_0xSCA.txt

Zardoz89 commented 11 years ago

I make a branch and integrated TinyXML-2. Now keeps the task of detect the input file type by extension and parse the XML file. Also, with file type detection, we can remove the "-a" option or keep it to enforce the use of the assembler.

lamogui commented 11 years ago

I will support them both (like the label: and :label)

Zardoz89 commented 11 years ago

I added a prototype XML load-out file. It parsers his own format and the DevKit solution files, but in this case, only gets the device loadout.