We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 732fcbd commit e56ef1aCopy full SHA for e56ef1a
group3/group3.s
@@ -178,11 +178,9 @@ print_lines_loop:
178
179
180
push linebuf(%rip)
181
- push %rax
182
- call write_string
183
- pop %rax
184
185
+ log %rax
+ plop
186
187
call write_newline
188
print_int/print_int.s
@@ -9,6 +9,16 @@
9
mov %rsp, %rbp
10
.endm
11
12
+ .macro plop
13
+ add $8, %rsp
14
+ .endm
15
+
16
+ .macro log ex
17
+ push \ex
18
+ call write_string
19
20
21
22
.macro return
23
mov %rbp, %rsp
24
pop %rbp
0 commit comments