From f53a42977dae4e9a3705fb2c84676a2c8fe4c2f1 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