psuh
This commit is contained in:
@ -1,11 +1,31 @@
|
||||
movl $1, -4(%rbp) #constant assign
|
||||
movl -4(%rbp), %eax #assign start
|
||||
movl %eax, -8(%rbp) #assign end
|
||||
movl $2, -12(%rbp) #constant assign
|
||||
.globl entry
|
||||
entry:
|
||||
pushq %rbp
|
||||
movq %rsp, %rbp
|
||||
subq $128, %rsp
|
||||
movl %edi, -8(%rbp) #FunctionStart1param end
|
||||
movl $1, -12(%rbp) #constant assign
|
||||
.L1:
|
||||
movl -12(%rbp), %eax #assign start
|
||||
movl %eax, -16(%rbp) #assign end
|
||||
movl -8(%rbp), %eax #less than start
|
||||
cmpl -16(%rbp), %eax
|
||||
movl $2, -20(%rbp) #constant assign
|
||||
.L2:
|
||||
movl -20(%rbp), %eax #assign start
|
||||
movl %eax, -24(%rbp) #assign end
|
||||
movl -16(%rbp), %eax #less than start
|
||||
cmpl -24(%rbp), %eax
|
||||
setl %al
|
||||
movb %al, -15(%rbp) #less than end
|
||||
movl $1, -20(%rbp) #constant assign
|
||||
movb %al, -25(%rbp) #less than end
|
||||
.L3:
|
||||
movl -25(%rbp), %eax #assign start
|
||||
movl %eax, -26(%rbp) #assign end
|
||||
movl -26(%rbp), %edi #adding param start
|
||||
call printBoolean
|
||||
movl %eax, -30(%rbp) #store return from call
|
||||
.L4:
|
||||
movl -30(%rbp), %eax #assign start
|
||||
movl %eax, -34(%rbp) #assign end
|
||||
movl $1, -38(%rbp) #constant assign
|
||||
movl -38(%rbp), %eax #return $t4
|
||||
leave
|
||||
ret
|
||||
|
Reference in New Issue
Block a user