summaryrefslogtreecommitdiffstats
path: root/sw/z80_test/main.c
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2017-08-28 13:55:35 +0200
committerNao Pross <naopross@thearcway.org>2017-08-28 13:55:35 +0200
commit9b9e656da951138f7d5523fd717c86a834211096 (patch)
tree397be6d5fb2ea3566efcf7d6684660e8a2ab9593 /sw/z80_test/main.c
parentupdate gitignore to ignore sdcc output (diff)
downloadz80uPC-9b9e656da951138f7d5523fd717c86a834211096.tar.gz
z80uPC-9b9e656da951138f7d5523fd717c86a834211096.zip
add test program for z80
Diffstat (limited to '')
-rw-r--r--sw/z80_test/main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sw/z80_test/main.c b/sw/z80_test/main.c
new file mode 100644
index 0000000..a90cd92
--- /dev/null
+++ b/sw/z80_test/main.c
@@ -0,0 +1,7 @@
+#include "usart.h"
+
+void main(void)
+{
+ usart_init(USART_BAUDRATE_9600, USART_PARITY_EVEN, USART_STOP_BITS_1);
+ usart_write("Hello, World!", 13);
+}