Assembly Question: I am trying to annotate this code and am
struggling to understand what it is doing. Can someone please add
comments?
.data
.star: .string "*"
.line: .string "\n"
.input: .string "%d"
.count: .space 8
.text
.global main
printstars:
push %rsi
push %rdi
_printstars:
push %rdi
mov $.star, %rdi
xor %rax, %rax
call printf
pop %rdi
dec %rdi
cmp $0, %rdi
jg _printstars
mov $.line, %rdi
xor %rax, %rax
call printf
pop %rdi
pop %rsi
ret
printstarpyramid:
mov %rdi,...