36 lines
882 B
Plaintext
36 lines
882 B
Plaintext
.globl entry
|
|
entry:
|
|
pushq %rbp
|
|
movq %rsp, %rbp
|
|
subq $416, %rsp
|
|
movl %edi, -8(%rbp) #FunctionStart1param end
|
|
movl $1, -9(%rbp) #constant assign
|
|
.L1:
|
|
movl -9(%rbp), %eax #assign start
|
|
movl %eax, -10(%rbp) #assign end
|
|
movl $0, -11(%rbp) #constant assign
|
|
.L2:
|
|
movl -11(%rbp), %eax #assign start
|
|
movl %eax, -12(%rbp) #assign end
|
|
movl $1, -13(%rbp) #constant assign
|
|
cmpb $0, -10(%rbp) #if true start
|
|
jne .L4 #if true end
|
|
jmp .L3
|
|
.L3:
|
|
cmpb $0, -12(%rbp) #if true start
|
|
jne .L4 #if true end
|
|
movl $0, -13(%rbp) #constant assign
|
|
jmp .L4
|
|
.L4:
|
|
movl -13(%rbp), %eax #assign start
|
|
movl %eax, -12(%rbp) #assign end
|
|
movl -12(%rbp), %edi #adding param start
|
|
call printBoolean
|
|
movl %eax, -18(%rbp) #store return from call
|
|
movl -18(%rbp), %eax #assign start
|
|
movl %eax, -24(%rbp) #assign end
|
|
movl $1, -28(%rbp) #constant assign
|
|
movl -28(%rbp), %eax #return $t4
|
|
leave
|
|
ret
|