Device port reference

In the following table, the Read column is checked if the port can be read from, and the Write column is checked if the port can be written to. Ports with the label ‘grouped’ belong to the previous port as a port group, acting together as a single larger port, and ports with the label ‘aliased’ act as a copy of the previous port.

The name of each port is hyperlinked to the description of the port in the user manual of that device.

Port Name Description Read Write
00 Sleep Wait for a device event. ✓ ✓
01 grouped grouped ✓ ✓
02 Wake Device that woke the system. ✓ ✗
03 Fork Fork or reset the system. ✗ ✓
04 Device name Name of custom device 1. ✓ ✓
05 Device name Name of custom device 2. ✓ ✓
06 Device name Name of custom device 3. ✓ ✓
07 Device name Name of custom device 4. ✓ ✓
08 Name Name of this Bedrock system. ✓ ✓
09 Authors Authors of this Bedrock system. ✓ ✓
0A Program memory Program memory size. ✓ ✗
0B grouped grouped ✓ ✗
0C Working stack Working stack size. ✓ ✗
0D Return stack Return stack size. ✓ ✗
0E Connected devices List of connected devices. ✓ ✗
0F grouped grouped ✓ ✗
10 Count Number of pages allocated. ✓ ✓
11 grouped grouped ✓ ✓
12 Page offset Page offset of first head. ✓ ✓
13 grouped grouped ✓ ✓
14 Address offset Address offset of first head. ✓ ✓
15 grouped grouped ✓ ✓
16 Head Read and write with first head. ✓ ✓
17 aliased aliased ✓ ✓
18 Copy Copy one page to another. ✗ ✓
19 grouped grouped ✗ ✓
1A Page offset Page offset of second head. ✓ ✓
1B grouped grouped ✓ ✓
1C Address offset Address offset of second head. ✓ ✓
1D grouped grouped ✓ ✓
1E Head Read and write with second head. ✓ ✓
1F aliased aliased ✓ ✓
20 x coordinate Horizontal coordinate. ✓ ✓
21 grouped grouped ✓ ✓
22 y coordinate Vertical coordinate. ✓ ✓
23 grouped grouped ✓ ✓
24 r coordinate Radial coordinate. ✓ ✓
25 grouped grouped ✓ ✓
26 t coordinate Angular coordinate. ✓ ✓
27 grouped grouped ✓ ✓
28 Product Product of multiplication. ✓ ✗
29 grouped grouped ✓ ✗
2A grouped grouped ✓ ✗
2B grouped grouped ✓ ✗
2C Quotient Quotient of division. ✓ ✗
2D grouped grouped ✓ ✗
2E Remainder Remainder of division. ✓ ✗
2F grouped grouped ✓ ✗
30 Year Current year. ✓ ✓
31 Month Current month of the year. ✓ ✓
32 Day Current day of the month. ✓ ✓
33 Hour Current hour of the day. ✓ ✓
34 Minute Current minute of the hour. ✓ ✓
35 Second Current second of the minute. ✓ ✓
36 Uptime Incrementing counter. ✓ ✗
37 grouped grouped ✓ ✗
38 Timer Countdown timer 1. ✓ ✓
39 grouped grouped ✓ ✓
3A Timer Countdown timer 2. ✓ ✓
3B grouped grouped ✓ ✓
3C Timer Countdown timer 3. ✓ ✓
3D grouped grouped ✓ ✓
3E Timer Countdown timer 4. ✓ ✓
3F grouped grouped ✓ ✓
40 Horizontal coordinate Mouse cursor position. ✓ ✗
41 grouped grouped ✓ ✗
42 Vertical coordinate Mouse cursor position. ✓ ✗
43 grouped grouped ✓ ✗
44 Horizontal scroll Horizontal scroll delta. ✓ ✗
45 grouped grouped ✓ ✗
46 Vertical scroll Vertical scroll delta. ✓ ✗
47 grouped grouped ✓ ✗
48 Mouse active Mouse active state. ✓ ✗
49 Mouse button Mouse button states. ✓ ✗
4A Keyboard input Keyboard character queue. ✓ ✓
4B Keyboard modifier Keyboard modifier states. ✓ ✗
4C Controller Controller 1. ✓ ✗
4D Controller Controller 2. ✓ ✗
4E Controller Controller 3. ✓ ✗
4F Controller Controller 4. ✓ ✗
50 Horizontal coordinate Screen cursor position. ✓ ✓
51 grouped grouped ✓ ✓
52 Vertical coordinate Screen cursor position. ✓ ✓
53 grouped grouped ✓ ✓
54 Screen width Screen width. ✓ ✓
55 grouped grouped ✓ ✓
56 Screen height Screen height. ✓ ✓
57 grouped grouped ✓ ✓
58 Palette Change the colour palette. ✗ ✓
59 grouped grouped ✗ ✓
5A Selection Select the sprite colours. ✗ ✓
5B grouped grouped ✗ ✓
5C Sprite Write sprite data to a buffer. ✗ ✓
5D aliased aliased ✗ ✓
5E Draw Draw to the screen. ✗ ✓
5F Move Move the draw cursor. ✗ ✓
80 Input connection Connection state of local input channel. ✓ ✗
81 Output connection Connection state of local output channel. ✓ ✗
82 Input transmission Transmission state of local input channel. ✓ ✓
83 Output transmission Transmission state of local output channel. ✓ ✓
84 Input queue Bytes waiting in the local input queue. ✓ ✓
85 Output queue Bytes free in the local output queue. ✓ ✗
86 Head Read and write to the local bytestream. ✓ ✓
87 aliased aliased ✓ ✓
88 Input connection Connection state of remote input channel. ✓ ✓
89 Output connection Connection state of remote output channel. ✓ ✓
8A Input transmission Transmission state of remote input channel. ✓ ✓
8B Output transmission Transmission state of remote output channel. ✓ ✓
8C Input queue Bytes waiting in the remote input queue. ✓ ✓
8D Output queue Bytes free in the remote output queue. ✓ ✗
8E Head Read and write to the remote bytestream. ✓ ✓
8F aliased aliased ✓ ✓
90 Open Open a file or folder. ✓ ✓
91 Action Create, move, or delete an entry. ✓ ✓
92 Head Read and write to the open file. ✓ ✓
93 aliased aliased ✓ ✓
94 Path Path of the open entry. ✓ ✓
95 Type Type of the open entry. ✓ ✓
96 Child path Path of the selected child entry. ✓ ✓
97 Child type Type of the selected child entry. ✓ ✓
98 Address Select file address or child entry. ✓ ✓
99 continued continued ✓ ✓
9A continued continued ✓ ✓
9B continued continued ✓ ✓
9C Length Length of the current entry. ✓ ✓
9D continued continued ✓ ✓
9E continued continued ✓ ✓
9F continued continued ✓ ✓
A0 -- -- ✗ ✗
A1 -- -- ✗ ✗
A2 Read entry Read entry from primary clipboard. ✗ ✓
A3 Write entry Write entry to primary clipboard. ✗ ✓
A4 Read queue Bytes waiting in the primary read queue. ✓ ✗
A5 Write queue Bytes free in the primary write queue. ✓ ✓
A6 Head Read and write to the primary queues. ✓ ✓
A7 aliased aliased ✓ ✓
A8 Drag entry Drag an entry to or from this system. ✓ ✓
A9 Drop entry Drop an entry to or from this system. ✓ ✓
AA Read entry Read entry from secondary clipboard. ✗ ✓
AB Write entry Write entry to secondary clipboard. ✗ ✓
AC Read queue Bytes waiting in the secondary read queue. ✓ ✗
AD Write queue Bytes free in the secondary write queue. ✓ ✓
AE Head Read and write to the secondary queues. ✓ ✓
AF aliased aliased ✓ ✓
B0 Namespace Select a namespace by name. ✗ ✓
B1 Key Select a key by name. ✗ ✓
B2 Read value Read value from selected key. ✗ ✓
B3 Write value Write value to selected key. ✗ ✓
B4 Read queue Bytes waiting in the read queue. ✓ ✗
B5 Write queue Bytes free in the write queue. ✓ ✓
B6 Head Read and write to the access queues. ✓ ✓
B7 aliased aliased ✓ ✓
B8 Namespace select Select a namespace by index. ✓ ✓
B9 grouped grouped ✓ ✓
BA Key select Select a key by index. ✓ ✓
BB grouped grouped ✓ ✓
BC Namespace name Name of the selected namespace. ✓ ✓
BD Key name Name of the selected key. ✓ ✓
BE Delete namespace Delete the selected namespace. ✗ ✓
BF Delete key Delete the selected key. ✗ ✓