diff options
author | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-10-04 15:18:22 +0000 |
---|---|---|
committer | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-10-04 15:18:22 +0000 |
commit | 1c7864f6d4380797b07c7149111066b61f69f689 (patch) | |
tree | 59057c26f97fdf846b0193e852eeea7e707a9e20 /lcc/sparc/solaris/tst/8q.sbk | |
parent | 91db83f0cc7c564ff6c853eeb4e790732dae81cd (diff) | |
download | ioquake3-aero-1c7864f6d4380797b07c7149111066b61f69f689.tar.gz ioquake3-aero-1c7864f6d4380797b07c7149111066b61f69f689.zip |
* Moved lcc and q3asm into code/tools
git-svn-id: svn://svn.icculus.org/quake3/trunk@134 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'lcc/sparc/solaris/tst/8q.sbk')
-rw-r--r-- | lcc/sparc/solaris/tst/8q.sbk | 144 |
1 files changed, 0 insertions, 144 deletions
diff --git a/lcc/sparc/solaris/tst/8q.sbk b/lcc/sparc/solaris/tst/8q.sbk deleted file mode 100644 index e293f58..0000000 --- a/lcc/sparc/solaris/tst/8q.sbk +++ /dev/null @@ -1,144 +0,0 @@ -.global main -.section ".text" -.align 4 -main: -save %sp,-96,%sp -mov %g0,%i5 -.L2: -sll %i5,2,%i4 -set 1,%i3 -set down,%i2 -st %i3,[%i4+%i2] -set up,%i2 -st %i3,[%i4+%i2] -.L3: -add %i5,1,%i5 -cmp %i5,15; bl .L2; nop -mov %g0,%i5 -.L6: -sll %i5,2,%i4 -set rows,%i3 -set 1,%i2 -st %i2,[%i4+%i3] -.L7: -add %i5,1,%i5 -cmp %i5,8; bl .L6; nop -mov %g0,%o0 -call queens; nop -mov %g0,%i0 -.L1: -ret; restore -.type main,#function -.size main,.-main -.global queens -.align 4 -queens: -save %sp,-96,%sp -mov %g0,%i5 -.L11: -sll %i5,2,%i3 -set rows,%i2 -ld [%i3+%i2],%i3 -cmp %i3,%g0; be .L15; nop -sub %i5,%i0,%i3 -sll %i3,2,%i3 -set up+28,%i2 -ld [%i3+%i2],%i3 -cmp %i3,%g0; be .L15; nop -add %i5,%i0,%i3 -sll %i3,2,%i3 -set down,%i2 -ld [%i3+%i2],%i3 -cmp %i3,%g0; be .L15; nop -add %i5,%i0,%i3 -sll %i3,2,%i3 -set down,%i2 -st %g0,[%i3+%i2] -sub %i5,%i0,%i3 -sll %i3,2,%i3 -set up+28,%i2 -st %g0,[%i3+%i2] -sll %i5,2,%i3 -set rows,%i2 -st %g0,[%i3+%i2] -sll %i0,2,%i4 -set x,%i3 -st %i5,[%i4+%i3] -cmp %i0,7; bne .L19; nop -call print; nop -ba .L20; nop -.L19: -add %i0,1,%o0 -call queens; nop -.L20: -set 1,%i4 -add %i5,%i0,%i3 -sll %i3,2,%i3 -set down,%i2 -st %i4,[%i3+%i2] -sub %i5,%i0,%i3 -sll %i3,2,%i3 -set up+28,%i2 -st %i4,[%i3+%i2] -sll %i5,2,%i3 -set rows,%i2 -st %i4,[%i3+%i2] -.L15: -.L12: -add %i5,1,%i5 -cmp %i5,8; bl .L11; nop -mov %g0,%i0 -.L10: -ret; restore -.type queens,#function -.size queens,.-queens -.global print -.align 4 -print: -save %sp,-96,%sp -mov %g0,%i5 -.L23: -set .L27,%o0 -sll %i5,2,%i4 -set x,%i3 -ld [%i4+%i3],%i4 -add %i4,49,%o1 -call printf; nop -.L24: -add %i5,1,%i5 -cmp %i5,8; bl .L23; nop -set .L28,%o0 -call printf; nop -mov %g0,%i0 -.L22: -ret; restore -.type print,#function -.size print,.-print -.section ".bss" -.global x -.type x,#object -.size x,32 -.common x,32,4 -.global rows -.type rows,#object -.size rows,32 -.common rows,32,4 -.global down -.type down,#object -.size down,60 -.common down,60,4 -.global up -.type up,#object -.size up,60 -.common up,60,4 -.section ".rodata" -.align 1 -.L28: -.byte 10 -.byte 0 -.align 1 -.L27: -.byte 37 -.byte 99 -.byte 32 -.byte 0 |