summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--asm_print.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/asm_print.c b/asm_print.c
index 161249e..ccd610e 100644
--- a/asm_print.c
+++ b/asm_print.c
@@ -3,7 +3,8 @@
void dprint(const char* str);
-int main(void) {
+int main(void)
+{
const char* message = "Hello, World!";
dprint(message);
@@ -11,7 +12,8 @@ int main(void) {
return 0;
}
-void dprint(const char* str) {
+void dprint(const char* str)
+{
size_t len = strlen(str);
asm volatile (