From 87ec6ded54c713995c27439c5a15dd79dd66ac2e Mon Sep 17 00:00:00 2001 From: able Date: Wed, 21 Jun 2023 08:22:56 -0500 Subject: [PATCH] Initial work on a simple serial driver for ableos --- hbasm/assets/serial_driver.hbasm | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 hbasm/assets/serial_driver.hbasm diff --git a/hbasm/assets/serial_driver.hbasm b/hbasm/assets/serial_driver.hbasm new file mode 100644 index 00000000..306bbf7a --- /dev/null +++ b/hbasm/assets/serial_driver.hbasm @@ -0,0 +1,7 @@ +jmp r0, start +start: + jmp r0, init_serial_port + +-- Uses r20 to set the port +init_serial_port: + add r20, r30, r10