From 578a121f1b1c51fce6e512e10dc89bd04f7040c2 Mon Sep 17 00:00:00 2001 From: Josh Date: Thu, 4 Jan 2018 11:09:00 +1100 Subject: [PATCH] Updated following issue #101 --- Hardware:-Universal-Com-Port.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Hardware:-Universal-Com-Port.md b/Hardware:-Universal-Com-Port.md index d8727a0..87dcc5b 100644 --- a/Hardware:-Universal-Com-Port.md +++ b/Hardware:-Universal-Com-Port.md @@ -2,7 +2,7 @@ The Universal Communication Port, or Com Port for short enables communication be ### Specifications Manufacturer: Apachicorp -Version: 1.1b +Version: 1.1c Default address: `0x000D` Hardware ID: `0x000D` @@ -10,10 +10,11 @@ Hardware ID: `0x000D` ### Interrupt Behavior | Value of A | Action | Energy cost | Result | | --- | --- | --- | --- | -| `0` | `COMPORT_SELF_CLEAR` | `0 kJ` | Clears the console screen and the internal message buffer. | +| `0` | `COMPORT_BUFFER_CLEAR` | `0 kJ` | Clears the internal message buffer. | | `1` | `COMPORT_POLL` | `4 kJ` | Copy all internal buffer messages to memory at X, sets B to the number of messages copied | | `2` | `COMPORT_FRONT_PORT_OUT` | `20 kJ` | Copies 8 words starting from the address in X to the object directly in front of the cubot if this object has a Universal Com Port as well. The B register is set if the operation succeeded, it is reset otherwise | | `3` | `COMPORT_SELF_OUT` | `1 kJ` | Copies 8 words starting from the address in X to the internal message buffer. The B register is set if the operation succeeded, it is reset otherwise | +| `4` | `COMPORT_CONSOLE_CLEAR` | `0 kJ` | Clears the console. | Note that a Cubot can send a message to another Cubot's internal buffer, which will be emptied into his console screen. Currently, the [Radio Tower](https://github.com/simon987/Much-Assembly-Required/wiki/Radio-Tower) is the only other object with a Com Port.