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