URL
https://opencores.org/ocsvn/eco32/eco32/trunk
Subversion Repositories eco32
[/] [eco32/] [trunk/] [lcc/] [x86/] [linux/] [tst/] [8q.sbk] - Rev 4
Compare with Previous | Blame | View Log
.globl main.text.align 16.type main,@functionmain:pushl %ebppushl %ebxpushl %esipushl %edimovl %esp,%ebpsubl $4,%espmovl $0,-4(%ebp).LC2:movl -4(%ebp),%edileal (,%edi,4),%edimovl $1,down(%edi)movl $1,up(%edi).LC3:incl -4(%ebp)cmpl $15,-4(%ebp)jl .LC2movl $0,-4(%ebp).LC6:movl -4(%ebp),%edimovl $1,rows(,%edi,4).LC7:incl -4(%ebp)cmpl $8,-4(%ebp)jl .LC6pushl $0call queensaddl $4,%espmov $0,%eax.LC1:movl %ebp,%esppopl %edipopl %esipopl %ebxpopl %ebpret.Lf10:.size main,.Lf10-main.globl queens.align 16.type queens,@functionqueens:pushl %ebppushl %ebxpushl %esipushl %edimovl %esp,%ebpsubl $4,%espmovl $0,-4(%ebp).LC12:movl -4(%ebp),%edicmpl $0,rows(,%edi,4)je .LC16movl 20(%ebp),%esimovl %edi,%ebxsubl %esi,%ebxcmpl $0,up+28(,%ebx,4)je .LC16leal (%esi,%edi),%edicmpl $0,down(,%edi,4)je .LC16movl -4(%ebp),%edimovl 20(%ebp),%esileal (%esi,%edi),%ebxmovl $0,down(,%ebx,4)movl %edi,%ebxsubl %esi,%ebxmovl $0,up+28(,%ebx,4)movl $0,rows(,%edi,4)movl 20(%ebp),%edimovl -4(%ebp),%esimovl %esi,x(,%edi,4)cmpl $7,20(%ebp)jne .LC20call printjmp .LC21.LC20:movl 20(%ebp),%edileal 1(%edi),%edipushl %edicall queensaddl $4,%esp.LC21:movl -4(%ebp),%edimovl 20(%ebp),%esileal (%esi,%edi),%ebxmovl $1,down(,%ebx,4)movl %edi,%ebxsubl %esi,%ebxmovl $1,up+28(,%ebx,4)movl $1,rows(,%edi,4).LC16:.LC13:incl -4(%ebp)cmpl $8,-4(%ebp)jl .LC12mov $0,%eax.LC11:movl %ebp,%esppopl %edipopl %esipopl %ebxpopl %ebpret.Lf23:.size queens,.Lf23-queens.globl print.align 16.type print,@functionprint:pushl %ebppushl %ebxpushl %esipushl %edimovl %esp,%ebpsubl $4,%espmovl $0,-4(%ebp).LC25:movl -4(%ebp),%edimovl x(,%edi,4),%edileal 49(%edi),%edipushl %edipushl $.LC29call printfaddl $8,%esp.LC26:incl -4(%ebp)cmpl $8,-4(%ebp)jl .LC25pushl $.LC30call printfaddl $4,%espmov $0,%eax.LC24:movl %ebp,%esppopl %edipopl %esipopl %ebxpopl %ebpret.Lf31:.size print,.Lf31-print.bss.globl x.align 4.type x,@object.size x,32.comm x,32.globl rows.align 4.type rows,@object.size rows,32.comm rows,32.globl down.align 4.type down,@object.size down,60.comm down,60.globl up.align 4.type up,@object.size up,60.comm up,60.data.align 1.LC30:.byte 10.byte 0.align 1.LC29:.byte 37.byte 99.byte 32.byte 0.text.ident "LCC: 4.1"
