change operands for some instructions and start work on devices

This commit is contained in:
2026-07-16 13:13:38 +10:00
parent c270a48141
commit a2d90f620a
7 changed files with 32 additions and 13 deletions

12
src/device.c Normal file
View File

@@ -0,0 +1,12 @@
#include "device.h"
Device* createDevice(
const char* name,
void (*sendToDevice)(uint16_t number),
uint16_t (*receiveFromDevice)(),
void (*update)()
) {
Device* new = malloc(sizeof(Device));
if (!new)
return NULL;
}