summary refs log tree commit diff homepage
path: root/day01.asm
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2016-12-02 05:21:54 -0500
committerJune McEnroe <june@causal.agency>2016-12-02 05:21:54 -0500
commitf967dca91f325af1d5fcdc0307c669594320a4df (patch)
treeebc4ab006c9d9029b2cc7abb43b23dcece9f8656 /day01.asm
parentAdd 32-bit hex formatting (diff)
downloadaoc-f967dca91f325af1d5fcdc0307c669594320a4df.tar.gz
aoc-f967dca91f325af1d5fcdc0307c669594320a4df.zip
Write newline
Diffstat (limited to '')
-rw-r--r--day01.asm3
1 files changed, 2 insertions, 1 deletions
diff --git a/day01.asm b/day01.asm
index fd31fce..083f971 100644
--- a/day01.asm
+++ b/day01.asm
@@ -66,10 +66,11 @@ _start:
   xor rPosY, rax
   sub rPosY, rax
 
+  push `\n`
   lea rdi, [rPosX + rPosY]
   call hex32
   push rax
-  syscall SYS_WRITE, FD_STDOUT, rsp, 8
+  syscall SYS_WRITE, FD_STDOUT, rsp, 9
 
   xor rax, rax
 syscall SYS_EXIT, rax
>Add plain text "language" to hiJune McEnroe 2019-02-10Don't match DQ string inside SQ stringJune McEnroe 2019-02-10Skip only one character if a match fails due to parentJune McEnroe Really it should skip forward until the parent changes, but this is simpler. 2019-02-10Remove pattend from hiJune McEnroe 2019-02-10Replace uses of pattend with newline patternsJune McEnroe 2019-02-10Add hi debug outputJune McEnroe 2019-02-10Actually do HTML &quot; escapingJune McEnroe 2019-02-10Set git commit.verboseJune McEnroe 2019-02-10Add back missing static keywordJune McEnroe