Align device identifiers with game#42
Conversation
|
So, let me make sure I understand this. Whenever a device is given, you can now, in addition to I haven't really been keeping up with changes to IC10, so if you could point me at an announcement where this was introduced, that would be greatly appreciated. |
|
The "direct device ID" capability was part of the last major update (the "Biggest Update Ever" update). See: https://store.steampowered.com/news/app/544550/view/533235259603419415. To quote the update itself for brevity:
The device ID needs to be retrieved via a tablet with the configuration cartridge installed is my understanding at this time. |
The current language of the game allows the following types for devices in instructions:
d#)r#)???)The current code base does not understand the concept of a device ID at all so I've added a minimal concept of it. It also does not accept a register as a valid input for a device-related instruction despite the in-game documentation saying it's allowed (as a pointer to which device to access).
Screenshot of the in-game documentation showing registers as an acceptable input for devices:
Screenshot of the LSP in action inside of the amazing awilliamson/ic10-language-support VSCode extension: