aboutsummaryrefslogtreecommitdiff
path: root/debug/programs/semihosting.c
diff options
context:
space:
mode:
Diffstat (limited to 'debug/programs/semihosting.c')
-rw-r--r--debug/programs/semihosting.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/debug/programs/semihosting.c b/debug/programs/semihosting.c
index 2ceea8c..ea3fdde 100644
--- a/debug/programs/semihosting.c
+++ b/debug/programs/semihosting.c
@@ -65,9 +65,11 @@ int main()
{
char *filename = NULL;
const char *message = "Hello, world!\n";
+ const char *message2 = "Do re mi fa so la ti do!\n";
int fd;
begin:
fd = open(filename, O_WRONLY, 0644);
write(fd, message, strlen(message));
-} \ No newline at end of file
+ write(1, message2, strlen(message2));
+}