home *** CD-ROM | disk | FTP | other *** search
- .file "lib.c"
-
- # rs6000/powerpc options: -mcpu=604 -msdata=data -G 8
- # GNU C version 2.95.3 19991030 (prerelease/franzo) (ppc-amigaos) compiled by GNU C version 2.95.2 19991024 (release).
- # options passed: -mstrict-align -mno-prototype -mcpu=604 -mregnames -O2
- # -Wformat -Wunused -Wuninitialized -Wconversion -Wstrict-prototypes
- # -Werror-implicit-function-declaration -fomit-frame-pointer -fverbose-asm
- # options enabled: -fdefer-pop -fomit-frame-pointer -fcse-follow-jumps
- # -fcse-skip-blocks -fexpensive-optimizations -fthread-jumps
- # -fstrength-reduce -fpeephole -fforce-mem -ffunction-cse -finline
- # -fkeep-static-consts -fcaller-saves -fpcc-struct-return -fgcse
- # -frerun-cse-after-loop -frerun-loop-opt -fschedule-insns
- # -fschedule-insns2 -fsched-interblock -fsched-spec -fbranch-count-reg
- # -fcommon -fverbose-asm -fgnu-linker -fregmove -foptimize-register-move
- # -fargument-alias -fident -mpowerpc -mpowerpc-gfxopt -mnew-mnemonics
- # -mstrict-align -mregnames -mcpu=604 -mcall-sysv -msdata=data
-
- gcc2_compiled.:
- .globl LibInitStruct
- .section ".data"
- .align 2
- .type LibInitStruct,@object
- .size LibInitStruct,16
- LibInitStruct:
- .long 44
- .long LibFuncTable
- .long 0
- .long LIB_Init
- .globl LibResident
- .align 1
- .type LibResident,@object
- .size LibResident,26
- LibResident:
- .short 19196
- .long LibResident
- .long LibResident+26
- .byte 136
- .byte 0
- .byte 9
- .byte 0
- .long .LC0
- .long .LC1
- .long LibInitStruct
- .section ".rodata"
- .align 2
- .LC1:
- .string "ppcexample.library 0.2 (20.2.00) \251 2000 by Ralph Schmidt, written by Ralph Schmidt\r\n"
- .align 2
- .LC0:
- .string "ppcexample.library"
- .globl __amigappc__
- .section ".sdata","aw"
- .align 2
- .type __amigappc__,@object
- .size __amigappc__,4
- __amigappc__:
- .long 1
- .section ".text"
- .align 2
- .globl NoExecute
- .type NoExecute,@function
- NoExecute:
- li %r3,0
- blr
- .Lfe1:
- .size NoExecute,.Lfe1-NoExecute
- .section ".rodata"
- .align 2
- .LC2:
- .string "LibInit: LibBase 0x%lx SegList 0x%lx SBase 0x%lx\n"
- .section ".text"
- .align 2
- .globl LIB_Init
- .type LIB_Init,@function
- LIB_Init:
- stwu %r1,-32(%r1)
- mflr %r0
- stw %r27,12(%r1)
- stw %r28,16(%r1)
- stw %r29,20(%r1)
- stw %r30,24(%r1)
- stw %r31,28(%r1)
- stw %r0,36(%r1)
- mr %r29,%r3
- mr %r28,%r4
- lis %r3,.LC2@ha
- mr %r27,%r5
- la %r3,.LC2@l(%r3)
- crxor 6,6,6
- bl dprintf
- stw %r28,36(%r29)
- mr %r3,%r29
- stw %r27,40(%r29)
- lwz %r0,36(%r1)
- mtlr %r0
- lwz %r27,12(%r1)
- lwz %r28,16(%r1)
- lwz %r29,20(%r1)
- lwz %r30,24(%r1)
- lwz %r31,28(%r1)
- la %r1,32(%r1)
- blr
- .Lfe2:
- .size LIB_Init,.Lfe2-LIB_Init
- .section ".rodata"
- .align 2
- .LC3:
- .string "LIB_Expunge: LibBase 0x%lx <%s> OpenCount %ld\n"
- .align 2
- .LC4:
- .string "LIB_Expunge: set LIBF_DELEXP\n"
- .align 2
- .LC5:
- .string "LIB_Expunge: remove the library\n"
- .align 2
- .LC6:
- .string "LIB_Expunge: free the library\n"
- .align 2
- .LC7:
- .string "LIB_Expunge: return Segment 0x%lx to ramlib\n"
- .section ".text"
- .align 2
- .globl LibExpunge
- .type LibExpunge,@function
- LibExpunge:
- stwu %r1,-272(%r1)
- mflr %r0
- stw %r30,264(%r1)
- stw %r31,268(%r1)
- stw %r0,276(%r1)
- mr %r31,%r3
- lhz %r5,10(%r31)
- lis %r3,.LC3@ha
- mr %r4,%r31
- lhz %r0,12(%r31)
- la %r3,.LC3@l(%r3)
- slwi %r5,%r5,16
- lhz %r6,32(%r31)
- or %r5,%r0,%r5
- crxor 6,6,6
- bl dprintf
- lhz %r0,32(%r31)
- lwz %r30,36(%r31)
- cmpwi %cr0,%r0,0
- bc 4,2,.L5
- lwz %r9,40(%r31)
- li %r0,-132
- addi %r3,%r1,8
- stw %r0,8(%r1)
- stw %r9,68(%r1)
- lwz %r9,88(%r2)
- mtlr %r9
- blrl
- lis %r3,.LC5@ha
- la %r3,.LC5@l(%r3)
- crxor 6,6,6
- bl dprintf
- lwz %r9,40(%r31)
- li %r0,-252
- addi %r3,%r1,72
- stw %r0,72(%r1)
- stw %r9,132(%r1)
- stw %r31,112(%r1)
- lwz %r9,88(%r2)
- mtlr %r9
- blrl
- lwz %r9,40(%r31)
- li %r0,-138
- addi %r3,%r1,136
- stw %r0,136(%r1)
- stw %r9,196(%r1)
- lwz %r9,88(%r2)
- mtlr %r9
- blrl
- lis %r3,.LC6@ha
- la %r3,.LC6@l(%r3)
- crxor 6,6,6
- bl dprintf
- lhz %r0,16(%r31)
- li %r8,-210
- addi %r3,%r1,200
- lhz %r11,18(%r31)
- lwz %r10,40(%r31)
- subf %r9,%r0,%r31
- add %r0,%r0,%r11
- stw %r9,240(%r1)
- stw %r0,204(%r1)
- stw %r10,260(%r1)
- stw %r8,200(%r1)
- lwz %r9,88(%r2)
- mtlr %r9
- blrl
- lis %r3,.LC7@ha
- mr %r4,%r30
- la %r3,.LC7@l(%r3)
- crxor 6,6,6
- bl dprintf
- mr %r3,%r30
- b .L6
- .L5:
- lis %r3,.LC4@ha
- la %r3,.LC4@l(%r3)
- crxor 6,6,6
- bl dprintf
- lbz %r0,14(%r31)
- li %r3,0
- ori %r0,%r0,8
- stb %r0,14(%r31)
- .L6:
- lwz %r0,276(%r1)
- mtlr %r0
- lwz %r30,264(%r1)
- lwz %r31,268(%r1)
- la %r1,272(%r1)
- blr
- .Lfe3:
- .size LibExpunge,.Lfe3-LibExpunge
- .section ".rodata"
- .align 2
- .LC8:
- .string "LIB_Expunge:\n"
- .section ".text"
- .align 2
- .globl LIB_Expunge
- .type LIB_Expunge,@function
- LIB_Expunge:
- stwu %r1,-32(%r1)
- mflr %r0
- stw %r29,20(%r1)
- stw %r30,24(%r1)
- stw %r31,28(%r1)
- stw %r0,36(%r1)
- lis %r3,.LC8@ha
- lwz %r29,56(%r2)
- la %r3,.LC8@l(%r3)
- crxor 6,6,6
- bl dprintf
- mr %r3,%r29
- bl LibExpunge
- lwz %r0,36(%r1)
- mtlr %r0
- lwz %r29,20(%r1)
- lwz %r30,24(%r1)
- lwz %r31,28(%r1)
- la %r1,32(%r1)
- blr
- .Lfe4:
- .size LIB_Expunge,.Lfe4-LIB_Expunge
- .section ".rodata"
- .align 2
- .LC9:
- .string "LIB_Open: 0x%lx <%s> OpenCount %ld\n"
- .section ".text"
- .align 2
- .globl LIB_Open
- .type LIB_Open,@function
- LIB_Open:
- stwu %r1,-32(%r1)
- mflr %r0
- stw %r29,20(%r1)
- stw %r30,24(%r1)
- stw %r31,28(%r1)
- stw %r0,36(%r1)
- lwz %r29,56(%r2)
- lis %r3,.LC9@ha
- la %r3,.LC9@l(%r3)
- lhz %r5,10(%r29)
- mr %r4,%r29
- lhz %r0,12(%r29)
- slwi %r5,%r5,16
- lhz %r6,32(%r29)
- or %r5,%r0,%r5
- crxor 6,6,6
- bl dprintf
- lbz %r0,14(%r29)
- mr %r3,%r29
- lhz %r9,32(%r29)
- andi. %r0,%r0,247
- addi %r9,%r9,1
- stb %r0,14(%r29)
- sth %r9,32(%r29)
- lwz %r0,36(%r1)
- mtlr %r0
- lwz %r29,20(%r1)
- lwz %r30,24(%r1)
- lwz %r31,28(%r1)
- la %r1,32(%r1)
- blr
- .Lfe5:
- .size LIB_Open,.Lfe5-LIB_Open
- .section ".rodata"
- .align 2
- .LC10:
- .string "LIB_Close: 0x%lx <%s> OpenCount %ld\n"
- .align 2
- .LC11:
- .string "LIB_Close: done\n"
- .align 2
- .LC12:
- .string "LIB_Close: LIBF_DELEXP set\n"
- .section ".text"
- .align 2
- .globl LIB_Close
- .type LIB_Close,@function
- LIB_Close:
- stwu %r1,-16(%r1)
- mflr %r0
- stw %r31,12(%r1)
- stw %r0,20(%r1)
- lwz %r31,56(%r2)
- lis %r3,.LC10@ha
- la %r3,.LC10@l(%r3)
- lhz %r5,10(%r31)
- mr %r4,%r31
- lhz %r0,12(%r31)
- slwi %r5,%r5,16
- lhz %r6,32(%r31)
- or %r5,%r0,%r5
- crxor 6,6,6
- bl dprintf
- lhz %r9,32(%r31)
- addi %r9,%r9,-1
- rlwinm %r0,%r9,0,0xffff
- sth %r9,32(%r31)
- cmpwi %cr0,%r0,0
- bc 4,2,.L10
- lbz %r0,14(%r31)
- andi. %r9,%r0,8
- bc 12,2,.L11
- lis %r3,.LC12@ha
- la %r3,.LC12@l(%r3)
- crxor 6,6,6
- bl dprintf
- mr %r3,%r31
- bl LibExpunge
- b .L13
- .L10:
- lis %r3,.LC11@ha
- la %r3,.LC11@l(%r3)
- crxor 6,6,6
- bl dprintf
- .L11:
- li %r3,0
- .L13:
- lwz %r0,20(%r1)
- mtlr %r0
- lwz %r31,12(%r1)
- la %r1,16(%r1)
- blr
- .Lfe6:
- .size LIB_Close,.Lfe6-LIB_Close
- .section ".rodata"
- .align 2
- .LC13:
- .string "LIB_Reserved:\n"
- .section ".text"
- .align 2
- .globl LIB_Reserved
- .type LIB_Reserved,@function
- LIB_Reserved:
- stwu %r1,-16(%r1)
- mflr %r0
- stw %r0,20(%r1)
- lis %r3,.LC13@ha
- la %r3,.LC13@l(%r3)
- crxor 6,6,6
- bl dprintf
- li %r3,0
- lwz %r0,20(%r1)
- mtlr %r0
- la %r1,16(%r1)
- blr
- .Lfe7:
- .size LIB_Reserved,.Lfe7-LIB_Reserved
- .comm LibFuncTable,4,4
- .ident "GCC: (GNU) 2.95.3 19991030 (prerelease/franzo)"
-