URL
https://opencores.org/ocsvn/or1k_old/or1k_old/trunk
Subversion Repositories or1k_old
[/] [or1k_old/] [trunk/] [mw/] [src/] [engine/] [devopen.s] - Rev 1782
Compare with Previous | Blame | View Log
.file "devopen.c" .global _gr_mode .data .align 4 .type _gr_mode,@object .size _gr_mode,4 _gr_mode: .long 0 .section .rodata .LC0: .string "System" .text .align 4 .proc _GdOpenScreen .global _GdOpenScreen .type _GdOpenScreen,@function _GdOpenScreen: # 01011111111111010101010101000000 # gpr_save_area 8 vars 88 current_function_outgoing_args_size 0 l.addi r1,r1,-100 l.sw 0(r1),r9 l.sw 4(r1),r10 l.sw 8(r1),r12 l.movhi r3,hi(_scrdev) # move immediate (high) l.ori r3,r3,lo(_scrdev) # move immediate (low) l.lwz r10,48(r3) # SI load l.jalr r10 l.nop # nop delay slot l.addi r3,r0,0 # move immediate l.sfne r11,r3 l.bnf .L1 # delay slot filled l.addi r12,r11,0 # move reg to reg l.addi r3,r11,0 # move reg to reg l.jal _GdGetScreenInfo # delay slot filled l.addi r4,r1,12 l.lwz r3,52(r1) # SI load l.movhi r8,hi(_gr_pixtype) # move immediate (high) l.ori r8,r8,lo(_gr_pixtype) # move immediate (low) l.movhi r6,hi(_gr_firstuserpalentry) # move immediate (high) l.ori r6,r6,lo(_gr_firstuserpalentry) # move immediate (low) l.lwz r9,32(r12) # SI load l.movhi r7,hi(_gr_ncolors) # move immediate (high) l.ori r7,r7,lo(_gr_ncolors) # move immediate (low) l.lwz r4,36(r1) # SI load l.sw 0(r8),r3 l.sw 0(r6),r9 l.addi r3,r0,8 # move immediate l.sfeq r9,r3 l.bf .L7 # delay slot filled l.sw 0(r7),r4 l.sfgts r9,r3 l.bf .L11 # delay slot filled l.addi r11,r0,16 # move immediate l.addi r6,r0,2 # move immediate l.sfeq r9,r6 l.bf .L4 l.nop # nop delay slot l.addi r10,r0,4 # move immediate l.sfeq r9,r10 l.bf .L5 l.nop # nop delay slot .L9: l.addi r10,r0,0 # move immediate l.movhi r15,hi(_gr_firstuserpalentry) # move immediate (high) l.ori r15,r15,lo(_gr_firstuserpalentry) # move immediate (low) l.sw 0(r15),r10 .L3: l.jal _GdResetPalette l.nop # nop delay slot l.lwz r5,32(r12) # SI load l.addi r6,r10,0 # move reg to reg l.addi r4,r0,0 # move immediate l.jal _GdSetPalette # delay slot filled l.addi r3,r12,0 # move reg to reg l.jal _GdSetMode # delay slot filled l.addi r3,r0,0 # move immediate l.movhi r3,hi(16777215) # move immediate (high) l.ori r3,r3,lo(16777215) # move immediate (low) l.jal _GdFindColor l.nop # nop delay slot l.jal _GdSetForeground # delay slot filled l.andi r3,r11,0x00ff # zero_extendqisi2 l.jal _GdFindColor # delay slot filled l.addi r3,r0,0 # move immediate l.jal _GdSetBackground # delay slot filled l.andi r3,r11,0x00ff # zero_extendqisi2 l.jal _GdSetUseBackground # delay slot filled l.addi r3,r0,1 # move immediate l.movhi r4,hi(.LC0) # move immediate (high) l.ori r4,r4,lo(.LC0) # move immediate (low) l.addi r5,r0,0 # move immediate l.addi r6,r0,0 # move immediate l.jal _GdCreateFont # delay slot filled l.addi r3,r12,0 # move reg to reg l.jal _GdSetFont # delay slot filled l.addi r3,r11,0 # move reg to reg l.lwz r5,8(r12) # SI load l.addi r3,r0,0 # move immediate l.addi r4,r0,0 # move immediate l.jal _GdAllocRectRegion # delay slot filled l.lwz r6,12(r12) # SI load l.addi r4,r11,0 # move reg to reg l.jal _GdSetClipRegion # delay slot filled l.addi r3,r12,0 # move reg to reg l.lwz r21,8(r12) # SI load l.addi r3,r12,0 # move reg to reg l.addi r4,r0,0 # move immediate l.lwz r19,12(r12) # SI load l.addi r6,r21,-1 l.addi r5,r0,0 # move immediate l.lwz r17,80(r12) # SI load l.addi r7,r19,-1 l.jalr r17 # delay slot filled l.addi r8,r0,0 # move immediate l.j .L1 # delay slot filled l.addi r3,r12,0 # move reg to reg .L5: l.movhi r10,hi(_mwstdpal2) # move immediate (high) l.ori r10,r10,lo(_mwstdpal2) # move immediate (low) l.j .L3 l.nop # nop delay slot .L4: l.movhi r10,hi(_mwstdpal1) # move immediate (high) l.ori r10,r10,lo(_mwstdpal1) # move immediate (low) l.j .L3 l.nop # nop delay slot .L11: l.sfeq r9,r11 l.bf .L7 # delay slot filled l.addi r13,r0,256 # move immediate l.sfeq r9,r13 l.bnf .L9 # delay slot filled l.addi r5,r0,24 # move immediate l.movhi r10,hi(_mwstdpal8) # move immediate (high) l.ori r10,r10,lo(_mwstdpal8) # move immediate (low) l.j .L3 # delay slot filled l.sw 0(r6),r5 .L7: l.movhi r10,hi(_mwstdpal4) # move immediate (high) l.ori r10,r10,lo(_mwstdpal4) # move immediate (low) l.j .L3 l.nop # nop delay slot .L1: l.addi r11,r3,0 # move reg to reg l.lwz r9,0(r1) l.lwz r10,4(r1) l.lwz r12,8(r1) l.jr r9 l.addi r1,r1,100 .endproc _GdOpenScreen .Lfe1: .size _GdOpenScreen,.Lfe1-_GdOpenScreen .align 4 .proc _GdGetScreenInfo .global _GdGetScreenInfo .type _GdGetScreenInfo,@function _GdGetScreenInfo: # 00011111011100000000000000000000 # gpr_save_area 4 vars 0 current_function_outgoing_args_size 0 l.addi r1,r1,-8 l.sw 0(r1),r9 l.sw 4(r1),r10 l.lwz r7,56(r3) # SI load l.jalr r7 # delay slot filled l.addi r10,r4,0 # move reg to reg l.jal _GdGetButtonInfo # delay slot filled l.addi r3,r10,32 l.addi r3,r10,36 l.jal _GdGetModifierInfo # delay slot filled l.addi r4,r0,0 # move immediate l.addi r5,r10,64 l.addi r4,r10,68 l.jal _GdGetCursorPos # delay slot filled l.addi r3,r5,0 # move reg to reg l.lwz r9,0(r1) l.lwz r10,4(r1) l.jr r9 l.addi r1,r1,8 .endproc _GdGetScreenInfo .Lfe2: .size _GdGetScreenInfo,.Lfe2-_GdGetScreenInfo .align 4 .proc _GdResetPalette .global _GdResetPalette .type _GdResetPalette,@function _GdResetPalette: # 00011110000000000000000000000000 # gpr_save_area 0 vars 0 current_function_outgoing_args_size 0 l.movhi r6,hi(_gr_firstuserpalentry) # move immediate (high) l.ori r6,r6,lo(_gr_firstuserpalentry) # move immediate (low) l.movhi r5,hi(_gr_nextpalentry) # move immediate (high) l.ori r5,r5,lo(_gr_nextpalentry) # move immediate (low) l.lwz r3,0(r6) # SI load l.sw 0(r5),r3 l.jr r9 l.nop .endproc _GdResetPalette .Lfe3: .size _GdResetPalette,.Lfe3-_GdResetPalette .align 4 .proc _GdSetPalette .global _GdSetPalette .type _GdSetPalette,@function _GdSetPalette: # 00011111111111100000000000000000 # gpr_save_area 12 vars 0 current_function_outgoing_args_size 0 l.addi r1,r1,-16 l.sw 0(r1),r9 l.sw 4(r1),r10 l.sw 8(r1),r12 l.sw 12(r1),r14 l.addi r12,r5,0 # move reg to reg l.addi r8,r3,0 # move reg to reg l.lwz r5,36(r3) # SI load l.addi r10,r4,0 # move reg to reg l.addi r9,r0,2 # move immediate l.sfeq r5,r9 l.bnf .L14 # delay slot filled l.addi r14,r6,0 # move reg to reg l.lwz r7,32(r3) # SI load l.add r9,r4,r12 l.sfles r9,r7 l.bf .L24 # delay slot filled l.addi r11,r0,0 # move immediate l.sub r12,r7,r4 .L24: l.sflts r12,r11 l.bf .L14 # delay slot filled l.sfges r10,r7 l.bf .L14 l.nop # nop delay slot l.lwz r13,60(r8) # SI load l.jalr r13 # delay slot filled l.addi r5,r12,0 # move reg to reg l.addi r7,r0,0 # move immediate l.sflts r7,r12 l.bnf .L14 # delay slot filled l.slli r8,r10,2 l.addi r6,r14,0 # move reg to reg l.movhi r10,hi(_gr_palette) # move immediate (high) l.ori r10,r10,lo(_gr_palette) # move immediate (low) l.add r3,r8,r10 .L21: l.lwz r14,0(r6) # SI load l.addi r7,r7,1 l.sw 0(r3),r14 l.addi r6,r6,4 l.sflts r7,r12 l.bf .L21 # delay slot filled l.addi r3,r3,4 .L14: l.lwz r9,0(r1) l.lwz r10,4(r1) l.lwz r12,8(r1) l.lwz r14,12(r1) l.jr r9 l.addi r1,r1,16 .endproc _GdSetPalette .Lfe4: .size _GdSetPalette,.Lfe4-_GdSetPalette .align 4 .proc _GdFindColor .global _GdFindColor .type _GdFindColor,@function _GdFindColor: # 00011111110101010101010101010101 # gpr_save_area 0 vars 0 current_function_outgoing_args_size 0 l.addi r1,r1,-4 l.sw 0(r1),r9 l.movhi r4,hi(_gr_pixtype) # move immediate (high) l.ori r4,r4,lo(_gr_pixtype) # move immediate (low) l.lwz r5,0(r4) # SI load l.addi r4,r5,-3 l.addi r5,r0,4 # move immediate l.sfgtu r4,r5 l.bf .L26 # delay slot filled l.addi r11,r3,0 # move reg to reg l.slli r8,r4,2 l.movhi r3,hi(.L32) # move immediate (high) l.ori r3,r3,lo(.L32) # move immediate (low) l.add r7,r8,r3 l.lwz r6,0(r7) # SI load l.jr r6 l.nop # nop delay slot .section .rodata .align 4 .align 4 .L32: .word L28 .word L28 .word L29 .word L30 .word L31 .text .L28: l.movhi r13,hi(16711680) # move immediate (high) l.ori r13,r13,lo(16711680) # move immediate (low) l.and r9,r11,r13 l.j .L25 # delay slot filled l.srli r11,r9,16 .L29: l.movhi r23,hi(16252928) # move immediate (high) l.ori r23,r23,lo(16252928) # move immediate (low) l.andi r19,r11,64512 l.and r21,r11,r23 l.srli r11,r19,5 l.srli r17,r21,19 l.or r15,r11,r17 l.j .L25 # delay slot filled l.andi r11,r15,0x00ff # zero_extendqisi2 .L30: l.movhi r5,hi(16252928) # move immediate (high) l.ori r5,r5,lo(16252928) # move immediate (low) l.srli r29,r11,6 l.and r31,r11,r5 l.srli r25,r31,19 l.andi r27,r29,224 l.j .L25 # delay slot filled l.or r11,r27,r25 .L31: l.andi r13,r11,57344 l.movhi r3,hi(12582912) # move immediate (high) l.ori r3,r3,lo(12582912) # move immediate (low) l.srli r4,r13,11 l.and r9,r11,r3 l.andi r8,r11,224 l.srli r6,r9,22 l.or r7,r8,r4 l.j .L25 # delay slot filled l.or r11,r7,r6 .L26: l.movhi r19,hi(16777216) # move immediate (high) l.ori r19,r19,lo(16777216) # move immediate (low) l.addi r15,r0,0 # move immediate l.and r17,r3,r19 l.sfeq r17,r15 l.bf .L36 # delay slot filled l.addi r5,r3,0 # move reg to reg l.j .L25 # delay slot filled l.andi r11,r11,0x00ff # zero_extendqisi2 .L36: l.movhi r11,hi(_gr_ncolors) # move immediate (high) l.ori r11,r11,lo(_gr_ncolors) # move immediate (low) l.movhi r3,hi(_gr_palette) # move immediate (high) l.ori r3,r3,lo(_gr_palette) # move immediate (low) l.jal _GdFindNearestColor # delay slot filled l.lwz r4,0(r11) # SI load l.andi r11,r11,0x00ff # zero_extendqisi2 .L25: l.lwz r9,0(r1) l.jr r9 l.addi r1,r1,4 .endproc _GdFindColor .Lfe5: .size _GdFindColor,.Lfe5-_GdFindColor .align 4 .proc _GdFindNearestColor .global _GdFindNearestColor .type _GdFindNearestColor,@function _GdFindNearestColor: # 00011111110101010101010101010101 # gpr_save_area 0 vars 0 current_function_outgoing_args_size 0 l.addi r1,r1,-4 l.sw 0(r1),r9 l.addi r25,r3,0 # move reg to reg l.slli r7,r4,2 l.srli r3,r5,16 l.srli r8,r5,8 l.addi r9,r25,0 # move reg to reg l.andi r23,r3,255 l.andi r21,r8,255 l.add r3,r25,r7 l.movhi r13,hi(2147483647) # move immediate (high) l.ori r13,r13,lo(2147483647) # move immediate (low) l.addi r11,r0,0 # move immediate l.sfltu r25,r3 l.bnf .L39 # delay slot filled l.andi r17,r5,255 l.addi r19,r3,0 # move reg to reg l.addi r29,r0,0 # move immediate l.addi r27,r0,0 # move immediate .L41: l.lbz r3,0(r9) # zero_extendqisi2 l.sub r15,r9,r25 l.lbz r4,1(r9) # zero_extendqisi2 l.sub r31,r3,r17 l.sub r3,r4,r21 l.srai r7,r31,31 l.lbz r8,2(r9) # zero_extendqisi2 l.srai r6,r3,31 l.xor r5,r7,r31 l.sub r4,r8,r23 l.xor r31,r6,r3 l.sub r5,r5,r7 l.srai r8,r4,31 l.sub r7,r31,r6 l.add r6,r5,r7 l.xor r31,r8,r4 l.sub r7,r31,r8 l.add r5,r6,r7 l.sfges r5,r13 l.bf .L40 # delay slot filled l.addi r9,r9,4 l.srai r11,r15,2 l.sfne r5,r29 l.bnf .L39 # delay slot filled l.addi r13,r5,0 # move reg to reg .L40: l.sfeq r13,r27 l.bf .L39 # delay slot filled l.sfltu r9,r19 l.bf .L41 l.nop # nop delay slot .L39: l.andi r11,r11,0x00ff # zero_extendqisi2 l.lwz r9,0(r1) l.jr r9 l.addi r1,r1,4 .endproc _GdFindNearestColor .Lfe6: .size _GdFindNearestColor,.Lfe6-_GdFindNearestColor .section .rodata .LC1: .string "wb" .LC2: .string "/dev/fb0" .text .align 4 .proc _GdCaptureScreen .global _GdCaptureScreen .type _GdCaptureScreen,@function _GdCaptureScreen: # 01011111111111111111111111111111 # gpr_save_area 44 vars 8260 current_function_outgoing_args_size 4 l.addi r1,r1,-8312 l.sw 4(r1),r9 l.sw 8(r1),r10 l.sw 12(r1),r12 l.sw 16(r1),r14 l.sw 20(r1),r16 l.sw 24(r1),r18 l.sw 28(r1),r20 l.sw 32(r1),r22 l.sw 36(r1),r24 l.sw 40(r1),r26 l.sw 44(r1),r28 l.sw 48(r1),r30 l.movhi r4,hi(.LC1) # move immediate (high) l.ori r4,r4,lo(.LC1) # move immediate (low) l.jal _fopen # delay slot filled l.addi r10,r0,0 # move immediate l.sfne r11,r10 l.bf .L48 # delay slot filled l.addi r16,r11,0 # move reg to reg l.j .L47 # delay slot filled l.addi r11,r0,1 # move immediate .L48: l.addi r9,r0,0 # move immediate l.movhi r3,hi(.LC2) # move immediate (high) l.ori r3,r3,lo(.LC2) # move immediate (low) l.sw 0(r1),r9 l.jal _open l.nop # nop delay slot l.movhi r3,hi(_scrdev) # move immediate (high) l.ori r3,r3,lo(_scrdev) # move immediate (low) l.sw 60(r1),r11 l.lwz r26,20(r3) # SI load l.addi r7,r26,7 l.lwz r18,8(r3) # SI load l.srai r8,r7,31 l.lwz r20,12(r3) # SI load l.srli r4,r8,29 l.add r6,r7,r4 l.srai r5,r6,3 l.mul r3,r18,r5 l.sw 56(r1),r5 l.andi r24,r3,3 l.sfeq r24,r10 l.bf .L49 # delay slot filled l.sw 52(r1),r3 l.addi r10,r0,4 # move immediate l.sub r24,r10,r24 .L49: l.addi r11,r0,8 # move immediate l.sfgts r26,r11 l.bf .L51 # delay slot filled l.addi r28,r0,0 # move immediate l.addi r12,r0,1 # move immediate l.sll r28,r12,r26 .L51: l.addi r13,r0,0 # move immediate l.sfeq r28,r13 l.bf .L53 # delay slot filled l.addi r30,r0,12 # move immediate l.slli r30,r28,2 .L53: l.addi r14,r0,24 # move immediate l.sfne r26,r14 l.bf .L242 # delay slot filled l.add r15,r18,r24 l.addi r30,r0,0 # move immediate .L242: l.andi r29,r20,65280 l.mul r23,r15,r20 l.slli r22,r29,8 l.lwz r6,56(r1) # SI load l.addi r19,r30,56 l.movhi r17,hi(16711680) # move immediate (high) l.ori r17,r17,lo(16711680) # move immediate (low) l.srli r14,r19,24 l.and r11,r19,r17 l.and r12,r18,r17 l.andi r4,r19,65280 l.srli r7,r11,8 l.srli r8,r12,8 l.srli r25,r18,24 l.and r5,r20,r17 l.slli r27,r4,8 l.andi r3,r18,65280 l.or r31,r14,r7 l.mul r29,r23,r6 l.slli r21,r3,8 l.srli r9,r5,8 l.srli r13,r20,24 l.slli r10,r19,24 l.movhi r4,hi(16711680) # move immediate (high) l.ori r4,r4,lo(16711680) # move immediate (low) l.or r14,r13,r9 l.slli r19,r18,24 l.or r11,r14,r22 l.slli r17,r20,24 l.movhi r3,hi(-65536) # move immediate (high) l.ori r3,r3,lo(-65536) # move immediate (low) l.andi r14,r26,0xffff # zero_extendhisi2 l.andi r13,r14,0x00ff # zero_extendqisi2 l.or r23,r25,r8 l.or r25,r31,r27 l.or r31,r23,r21 l.addi r27,r0,0 # move immediate l.add r21,r30,r29 l.sw 8256(r1),r27 l.addi r22,r21,56 l.or r27,r25,r10 l.and r23,r22,r4 l.or r25,r31,r19 l.srli r5,r23,8 l.or r31,r11,r17 l.srli r19,r22,24 l.andi r12,r22,65280 l.slli r29,r22,24 l.slli r17,r12,8 l.or r10,r19,r5 l.addi r23,r0,0 # move immediate l.or r11,r10,r17 l.srli r22,r31,16 l.or r4,r11,r29 l.slli r21,r27,16 l.and r29,r23,r3 l.slli r12,r13,8 l.slli r23,r31,16 l.slli r19,r25,16 l.addi r10,r0,0 # move immediate l.srli r31,r27,16 l.srli r17,r14,8 l.srli r13,r4,16 l.srli r27,r25,16 l.sw 8284(r1),r10 l.addi r14,r0,66 # move immediate l.or r25,r19,r22 l.or r10,r29,r13 l.or r22,r17,r12 l.addi r13,r0,0 # move immediate l.addi r12,r0,77 # move immediate l.slli r6,r4,16 l.sb 8256(r1),r14 l.ori r29,r21,10240 l.addi r14,r0,0 # move immediate l.sw 8288(r1),r13 l.sw 8292(r1),r13 l.sb 8257(r1),r12 l.addi r13,r0,256 # move immediate l.addi r12,r0,0 # move immediate l.sw 8260(r1),r6 l.sw 8296(r1),r14 l.sw 8300(r1),r14 l.sh 8282(r1),r13 l.addi r6,r0,1 # move immediate l.addi r5,r0,0 # move immediate l.sw 8304(r1),r12 l.sw 8308(r1),r12 l.sw 8256(r1),r10 l.sw 8264(r1),r31 l.sw 8268(r1),r29 l.sw 8272(r1),r27 l.sw 8276(r1),r25 l.sw 8280(r1),r23 l.sh 8284(r1),r22 l.addi r17,r0,16 # move immediate l.sw 8268(r1),r21 l.sfne r26,r17 l.bf .L57 # delay slot filled l.sw 8276(r1),r19 l.addi r5,r6,0 # move reg to reg .L57: l.addi r10,r0,32 # move immediate l.sfne r26,r10 l.bf .L58 # delay slot filled l.addi r4,r0,0 # move immediate l.addi r4,r6,0 # move reg to reg .L58: l.or r21,r5,r4 l.addi r22,r0,0 # move immediate l.sfeq r21,r22 l.bf .L56 # delay slot filled l.addi r5,r0,0 # move immediate l.addi r5,r0,3 # move immediate .L56: l.mul r11,r15,r20 l.lwz r6,56(r1) # SI load l.slli r27,r5,24 l.movhi r31,hi(-65536) # move immediate (high) l.ori r31,r31,lo(-65536) # move immediate (low) l.lhz r19,8294(r1) # zero_extendhisi2 l.movhi r5,hi(16711680) # move immediate (high) l.ori r5,r5,lo(16711680) # move immediate (low) l.srli r21,r27,16 l.lhz r10,8290(r1) # zero_extendhisi2 l.sw 8288(r1),r10 l.mul r4,r11,r6 l.lwz r15,8284(r1) # SI load l.and r22,r15,r31 l.or r17,r22,r21 l.addi r15,r0,8 # move immediate l.sw 8284(r1),r17 l.and r12,r4,r5 l.srli r23,r4,24 l.srli r29,r12,8 l.andi r3,r4,65280 l.slli r8,r4,24 l.slli r7,r3,8 l.or r14,r23,r29 l.or r25,r14,r7 l.or r9,r25,r8 l.slli r13,r9,16 l.srli r27,r9,16 l.or r31,r19,r13 l.sw 8288(r1),r27 l.sfgts r26,r15 l.bf .L59 # delay slot filled l.sw 8292(r1),r31 l.addi r6,r28,0 # move reg to reg .L60: l.movhi r5,hi(16711680) # move immediate (high) l.ori r5,r5,lo(16711680) # move immediate (low) l.andi r21,r6,65280 l.and r15,r6,r5 l.srli r22,r6,24 l.srli r4,r15,8 l.slli r10,r21,8 l.slli r11,r6,24 l.or r17,r22,r4 l.lwz r29,8300(r1) # SI load l.or r12,r17,r10 l.movhi r3,hi(-65536) # move immediate (high) l.ori r3,r3,lo(-65536) # move immediate (low) l.or r7,r12,r11 l.lhz r14,8306(r1) # zero_extendhisi2 l.slli r23,r7,16 l.srli r8,r7,16 l.and r25,r29,r3 l.or r9,r14,r23 l.or r13,r25,r8 l.sw 8304(r1),r9 l.sw 8300(r1),r13 l.addi r3,r1,8256 l.addi r4,r0,56 # move immediate l.addi r5,r0,1 # move immediate l.jal _fwrite # delay slot filled l.addi r6,r16,0 # move reg to reg l.addi r19,r0,0 # move immediate l.sfeq r30,r19 l.bf .L230 # delay slot filled l.addi r22,r20,-1 l.addi r6,r0,8 # move immediate l.sfgts r26,r6 l.bf .L62 # delay slot filled l.addi r5,r0,5 # move immediate l.addi r22,r0,0 # move immediate l.sflts r22,r28 l.bnf .L61 l.nop # nop delay slot .L66: l.lwz r5,0(r16) # SI load l.lwz r31,8(r16) # SI load l.sfltu r5,r31 l.bnf .L187 # delay slot filled l.addi r13,r5,1 l.slli r10,r22,2 l.movhi r8,hi(_gr_palette) # move immediate (high) l.ori r8,r8,lo(_gr_palette) # move immediate (low) l.add r25,r10,r8 l.lbz r9,2(r25) l.sb 0(r5),r9 l.sw 0(r16),r13 l.lwz r5,0(r16) # SI load .L229: l.lwz r14,8(r16) # SI load l.sfltu r5,r14 l.bnf .L188 # delay slot filled l.addi r7,r5,1 l.movhi r3,hi(_gr_palette) # move immediate (high) l.ori r3,r3,lo(_gr_palette) # move immediate (low) l.add r11,r10,r3 l.lbz r12,1(r11) l.sb 0(r5),r12 l.sw 0(r16),r7 l.lwz r6,0(r16) # SI load .L228: l.lwz r17,8(r16) # SI load l.sfltu r6,r17 l.bnf .L189 l.nop # nop delay slot l.movhi r31,hi(_gr_palette) # move immediate (high) l.ori r31,r31,lo(_gr_palette) # move immediate (low) l.add r5,r10,r31 l.lbz r15,0(r5) l.addi r10,r6,1 l.sb 0(r6),r15 l.sw 0(r16),r10 l.lwz r4,0(r16) # SI load .L227: l.lwz r6,8(r16) # SI load l.sfltu r4,r6 l.bnf .L190 # delay slot filled l.addi r19,r0,0 # move immediate l.addi r27,r4,1 l.sb 0(r4),r19 l.sw 0(r16),r27 l.addi r22,r22,1 .L226: l.sflts r22,r28 l.bf .L66 l.nop # nop delay slot .L61: l.addi r22,r20,-1 .L230: l.addi r20,r0,0 # move immediate l.sfges r22,r20 l.bnf .L176 l.nop # nop delay slot l.mul r20,r22,r18 l.addi r28,r1,64 .L115: l.lwz r3,56(r1) # SI load l.addi r5,r0,0 # move immediate l.mul r29,r20,r3 l.add r23,r30,r29 l.addi r3,r16,0 # move reg to reg l.jal _fseek # delay slot filled l.addi r4,r23,56 l.lwz r3,60(r1) # SI load l.addi r4,r28,0 # move reg to reg l.jal _read # delay slot filled l.lwz r5,52(r1) # SI load l.addi r3,r0,24 # move immediate l.sfeq r26,r3 l.bf .L132 # delay slot filled l.addi r12,r0,0 # move immediate l.sfgts r26,r3 l.bf .L164 # delay slot filled l.addi r7,r0,32 # move immediate l.addi r4,r0,16 # move immediate l.sfeq r26,r4 l.bf .L144 # delay slot filled l.sflts r12,r18 l.addi r12,r0,0 # move immediate .L243: l.sflts r12,r18 l.bnf .L116 # delay slot filled l.addi r10,r28,0 # move reg to reg .L159: l.lwz r5,0(r16) # SI load l.addi r4,r16,0 # move reg to reg l.lwz r29,8(r16) # SI load l.sfltu r5,r29 l.bnf .L191 # delay slot filled l.addi r6,r5,1 l.lbz r3,0(r10) l.sb 0(r5),r3 l.addi r10,r10,1 l.sw 0(r16),r6 l.addi r12,r12,1 .L216: l.sflts r12,r18 l.bf .L159 l.nop # nop delay slot .L116: l.addi r12,r0,0 # move immediate .L217: l.sflts r12,r24 l.bnf .L185 l.nop # nop delay slot .L168: l.lwz r6,0(r16) # SI load l.addi r3,r0,0 # move immediate l.addi r4,r16,0 # move reg to reg l.lwz r11,8(r16) # SI load l.sfltu r6,r11 l.bnf .L192 # delay slot filled l.addi r7,r6,1 l.addi r4,r0,0 # move immediate l.sb 0(r6),r4 l.sw 0(r16),r7 l.addi r12,r12,1 .L214: l.sflts r12,r24 l.bf .L168 l.nop # nop delay slot .L185: l.addi r22,r22,-1 l.addi r12,r0,0 # move immediate l.sfges r22,r12 l.bf .L115 # delay slot filled l.sub r20,r20,r18 .L176: l.jal _fclose # delay slot filled l.addi r3,r16,0 # move reg to reg l.jal _close # delay slot filled l.lwz r3,60(r1) # SI load l.j .L47 # delay slot filled l.addi r11,r0,0 # move immediate .L192: l.jal _fputc # delay slot filled l.addi r12,r12,1 l.j .L214 l.nop # nop delay slot .L191: l.lbz r3,0(r10) # zero_extendqisi2 l.jal _fputc # delay slot filled l.addi r10,r10,1 l.j .L216 # delay slot filled l.addi r12,r12,1 .L144: l.bnf .L116 # delay slot filled l.addi r14,r28,0 # move reg to reg .L148: l.lhz r10,0(r14) # zero_extendhisi2 l.addi r4,r16,0 # move reg to reg l.lwz r6,0(r16) # SI load l.andi r3,r10,0x00ff # zero_extendqisi2 l.addi r14,r14,2 l.lwz r8,8(r16) # SI load l.sfltu r6,r8 l.bnf .L193 # delay slot filled l.addi r7,r6,1 l.sb 0(r6),r10 l.sw 0(r16),r7 l.lwz r6,0(r16) # SI load .L218: l.srli r10,r10,8 l.addi r4,r16,0 # move reg to reg l.lwz r23,8(r16) # SI load l.andi r3,r10,0x00ff # zero_extendqisi2 l.sfltu r6,r23 l.bnf .L194 # delay slot filled l.addi r7,r6,1 l.sb 0(r6),r10 l.sw 0(r16),r7 l.addi r12,r12,1 .L215: l.sflts r12,r18 l.bf .L148 l.nop # nop delay slot l.j .L217 # delay slot filled l.addi r12,r0,0 # move immediate .L194: l.jal _fputc # delay slot filled l.addi r12,r12,1 l.j .L215 l.nop # nop delay slot .L193: l.jal _fputc l.nop # nop delay slot l.j .L218 # delay slot filled l.lwz r6,0(r16) # SI load .L164: l.sfeq r26,r7 l.bnf .L243 # delay slot filled l.addi r12,r0,0 # move immediate l.sflts r12,r18 l.bnf .L217 # delay slot filled l.addi r14,r28,0 # move reg to reg .L121: l.lwz r10,0(r14) # SI load l.lwz r4,0(r16) # SI load l.lwz r11,8(r16) # SI load l.sfltu r4,r11 l.bnf .L195 # delay slot filled l.addi r14,r14,4 l.sb 0(r4),r10 l.addi r17,r4,1 l.sw 0(r16),r17 l.lwz r4,0(r16) # SI load .L222: l.lwz r21,8(r16) # SI load l.sfltu r4,r21 l.bnf .L196 # delay slot filled l.srli r10,r10,8 l.sb 0(r4),r10 l.addi r15,r4,1 l.sw 0(r16),r15 l.lwz r4,0(r16) # SI load .L221: l.lwz r5,8(r16) # SI load l.sfltu r4,r5 l.bnf .L197 # delay slot filled l.srli r10,r10,8 l.sb 0(r4),r10 l.addi r31,r4,1 l.sw 0(r16),r31 l.lwz r4,0(r16) # SI load .L220: l.lwz r6,8(r16) # SI load l.sfltu r4,r6 l.bnf .L198 # delay slot filled l.srli r10,r10,8 l.sb 0(r4),r10 l.addi r10,r4,1 l.sw 0(r16),r10 l.addi r12,r12,1 .L219: l.sflts r12,r18 l.bf .L121 l.nop # nop delay slot l.j .L217 # delay slot filled l.addi r12,r0,0 # move immediate .L198: l.andi r3,r10,0x00ff # zero_extendqisi2 l.jal _fputc # delay slot filled l.addi r4,r16,0 # move reg to reg l.j .L219 # delay slot filled l.addi r12,r12,1 .L197: l.andi r3,r10,0x00ff # zero_extendqisi2 l.jal _fputc # delay slot filled l.addi r4,r16,0 # move reg to reg l.j .L220 # delay slot filled l.lwz r4,0(r16) # SI load .L196: l.andi r3,r10,0x00ff # zero_extendqisi2 l.jal _fputc # delay slot filled l.addi r4,r16,0 # move reg to reg l.j .L221 # delay slot filled l.lwz r4,0(r16) # SI load .L195: l.andi r3,r10,0x00ff # zero_extendqisi2 l.jal _fputc # delay slot filled l.addi r4,r16,0 # move reg to reg l.j .L222 # delay slot filled l.lwz r4,0(r16) # SI load .L132: l.sflts r12,r18 l.bnf .L116 # delay slot filled l.addi r10,r28,0 # move reg to reg .L136: l.lwz r5,0(r16) # SI load l.addi r4,r16,0 # move reg to reg l.lwz r14,8(r16) # SI load l.sfltu r5,r14 l.bnf .L199 # delay slot filled l.addi r6,r5,1 l.lbz r27,0(r10) l.sb 0(r5),r27 l.addi r10,r10,1 l.sw 0(r16),r6 l.lwz r5,0(r16) # SI load .L225: l.addi r4,r16,0 # move reg to reg l.lwz r19,8(r16) # SI load l.sfltu r5,r19 l.bnf .L200 # delay slot filled l.addi r6,r5,1 l.lbz r13,0(r10) l.sb 0(r5),r13 l.addi r10,r10,1 l.sw 0(r16),r6 l.lwz r5,0(r16) # SI load .L224: l.addi r4,r16,0 # move reg to reg l.lwz r9,8(r16) # SI load l.sfltu r5,r9 l.bnf .L201 # delay slot filled l.addi r6,r5,1 l.lbz r25,0(r10) l.sb 0(r5),r25 l.addi r10,r10,1 l.sw 0(r16),r6 l.addi r12,r12,1 .L223: l.sflts r12,r18 l.bf .L136 l.nop # nop delay slot l.j .L217 # delay slot filled l.addi r12,r0,0 # move immediate .L201: l.lbz r3,0(r10) # zero_extendqisi2 l.jal _fputc # delay slot filled l.addi r10,r10,1 l.j .L223 # delay slot filled l.addi r12,r12,1 .L200: l.lbz r3,0(r10) # zero_extendqisi2 l.jal _fputc # delay slot filled l.addi r10,r10,1 l.j .L224 # delay slot filled l.lwz r5,0(r16) # SI load .L199: l.lbz r3,0(r10) # zero_extendqisi2 l.jal _fputc # delay slot filled l.addi r10,r10,1 l.j .L225 # delay slot filled l.lwz r5,0(r16) # SI load .L190: l.addi r3,r0,0 # move immediate l.jal _fputc # delay slot filled l.addi r4,r16,0 # move reg to reg l.j .L226 # delay slot filled l.addi r22,r22,1 .L189: l.movhi r4,hi(_gr_palette) # move immediate (high) l.ori r4,r4,lo(_gr_palette) # move immediate (low) l.add r21,r10,r4 l.lbz r3,0(r21) # zero_extendqisi2 l.jal _fputc # delay slot filled l.addi r4,r16,0 # move reg to reg l.j .L227 # delay slot filled l.lwz r4,0(r16) # SI load .L188: l.movhi r29,hi(_gr_palette) # move immediate (high) l.ori r29,r29,lo(_gr_palette) # move immediate (low) l.addi r4,r16,0 # move reg to reg l.add r23,r10,r29 l.jal _fputc # delay slot filled l.lbz r3,1(r23) # zero_extendqisi2 l.j .L228 # delay slot filled l.lwz r6,0(r16) # SI load .L187: l.slli r10,r22,2 l.movhi r19,hi(_gr_palette) # move immediate (high) l.ori r19,r19,lo(_gr_palette) # move immediate (low) l.addi r4,r16,0 # move reg to reg l.add r27,r10,r19 l.jal _fputc # delay slot filled l.lbz r3,2(r27) # zero_extendqisi2 l.j .L229 # delay slot filled l.lwz r5,0(r16) # SI load .L62: l.movhi r28,hi(_gr_pixtype) # move immediate (high) l.ori r28,r28,lo(_gr_pixtype) # move immediate (low) l.lwz r4,0(r28) # SI load l.sfeq r4,r5 l.bf .L80 # delay slot filled l.ori r12,r0,63488 # move immediate l.sfgts r4,r5 l.bnf .L79 # delay slot filled l.addi r22,r0,6 # move immediate l.sfeq r4,r22 l.bf .L81 # delay slot filled l.addi r12,r0,31744 # move immediate l.addi r13,r0,7 # move immediate l.sfeq r4,r13 l.bf .L82 # delay slot filled l.addi r12,r0,224 # move immediate .L79: l.movhi r12,hi(16711680) # move immediate (high) l.ori r12,r12,lo(16711680) # move immediate (low) l.ori r14,r0,65280 # move immediate l.addi r22,r0,255 # move immediate .L77: l.lwz r4,0(r16) # SI load l.lwz r9,8(r16) # SI load l.sfltu r4,r9 l.bnf .L202 # delay slot filled l.addi r25,r4,1 l.sb 0(r4),r12 l.sw 0(r16),r25 l.lwz r4,0(r16) # SI load .L241: l.lwz r8,8(r16) # SI load l.sfltu r4,r8 l.bnf .L203 # delay slot filled l.srli r10,r12,8 l.sb 0(r4),r10 l.addi r23,r4,1 l.sw 0(r16),r23 l.lwz r4,0(r16) # SI load .L240: l.lwz r29,8(r16) # SI load l.sfltu r4,r29 l.bnf .L204 # delay slot filled l.srli r10,r10,8 l.sb 0(r4),r10 l.addi r7,r4,1 l.sw 0(r16),r7 l.lwz r4,0(r16) # SI load .L239: l.lwz r12,8(r16) # SI load l.sfltu r4,r12 l.bnf .L205 # delay slot filled l.srli r10,r10,8 l.sb 0(r4),r10 l.addi r11,r4,1 l.sw 0(r16),r11 l.lwz r4,0(r16) # SI load .L238: l.lwz r17,8(r16) # SI load l.sfltu r4,r17 l.bnf .L206 # delay slot filled l.addi r21,r4,1 l.sb 0(r4),r14 l.sw 0(r16),r21 l.srli r10,r14,8 .L237: l.lwz r4,0(r16) # SI load l.lwz r14,8(r16) # SI load l.sfltu r4,r14 l.bnf .L207 # delay slot filled l.addi r15,r4,1 l.sb 0(r4),r10 l.sw 0(r16),r15 l.lwz r4,0(r16) # SI load .L236: l.lwz r5,8(r16) # SI load l.sfltu r4,r5 l.bnf .L208 # delay slot filled l.srli r10,r10,8 l.sb 0(r4),r10 l.addi r31,r4,1 l.sw 0(r16),r31 l.lwz r4,0(r16) # SI load .L235: l.lwz r6,8(r16) # SI load l.sfltu r4,r6 l.bnf .L209 # delay slot filled l.srli r10,r10,8 l.sb 0(r4),r10 l.addi r10,r4,1 l.sw 0(r16),r10 l.lwz r4,0(r16) # SI load .L234: l.lwz r27,8(r16) # SI load l.sfltu r4,r27 l.bnf .L210 # delay slot filled l.addi r19,r4,1 l.sb 0(r4),r22 l.sw 0(r16),r19 l.lwz r4,0(r16) # SI load .L233: l.lwz r28,8(r16) # SI load l.sfltu r4,r28 l.bnf .L211 # delay slot filled l.srli r10,r22,8 l.sb 0(r4),r10 l.addi r22,r4,1 l.sw 0(r16),r22 l.lwz r4,0(r16) # SI load .L232: l.lwz r13,8(r16) # SI load l.sfltu r4,r13 l.bnf .L212 # delay slot filled l.srli r10,r10,8 l.sb 0(r4),r10 l.addi r9,r4,1 l.sw 0(r16),r9 l.lwz r4,0(r16) # SI load .L231: l.lwz r25,8(r16) # SI load l.sfltu r4,r25 l.bnf .L213 # delay slot filled l.srli r10,r10,8 l.sb 0(r4),r10 l.addi r8,r4,1 l.j .L61 # delay slot filled l.sw 0(r16),r8 .L213: l.andi r3,r10,0x00ff # zero_extendqisi2 l.jal _fputc # delay slot filled l.addi r4,r16,0 # move reg to reg l.j .L230 # delay slot filled l.addi r22,r20,-1 .L212: l.andi r3,r10,0x00ff # zero_extendqisi2 l.jal _fputc # delay slot filled l.addi r4,r16,0 # move reg to reg l.j .L231 # delay slot filled l.lwz r4,0(r16) # SI load .L211: l.andi r3,r10,0x00ff # zero_extendqisi2 l.jal _fputc # delay slot filled l.addi r4,r16,0 # move reg to reg l.j .L232 # delay slot filled l.lwz r4,0(r16) # SI load .L210: l.andi r3,r22,0x00ff # zero_extendqisi2 l.jal _fputc # delay slot filled l.addi r4,r16,0 # move reg to reg l.j .L233 # delay slot filled l.lwz r4,0(r16) # SI load .L209: l.andi r3,r10,0x00ff # zero_extendqisi2 l.jal _fputc # delay slot filled l.addi r4,r16,0 # move reg to reg l.j .L234 # delay slot filled l.lwz r4,0(r16) # SI load .L208: l.andi r3,r10,0x00ff # zero_extendqisi2 l.jal _fputc # delay slot filled l.addi r4,r16,0 # move reg to reg l.j .L235 # delay slot filled l.lwz r4,0(r16) # SI load .L207: l.andi r3,r10,0x00ff # zero_extendqisi2 l.jal _fputc # delay slot filled l.addi r4,r16,0 # move reg to reg l.j .L236 # delay slot filled l.lwz r4,0(r16) # SI load .L206: l.andi r3,r14,0x00ff # zero_extendqisi2 l.jal _fputc # delay slot filled l.addi r4,r16,0 # move reg to reg l.j .L237 # delay slot filled l.srli r10,r14,8 .L205: l.andi r3,r10,0x00ff # zero_extendqisi2 l.jal _fputc # delay slot filled l.addi r4,r16,0 # move reg to reg l.j .L238 # delay slot filled l.lwz r4,0(r16) # SI load .L204: l.andi r3,r10,0x00ff # zero_extendqisi2 l.jal _fputc # delay slot filled l.addi r4,r16,0 # move reg to reg l.j .L239 # delay slot filled l.lwz r4,0(r16) # SI load .L203: l.andi r3,r10,0x00ff # zero_extendqisi2 l.jal _fputc # delay slot filled l.addi r4,r16,0 # move reg to reg l.j .L240 # delay slot filled l.lwz r4,0(r16) # SI load .L202: l.andi r3,r12,0x00ff # zero_extendqisi2 l.jal _fputc # delay slot filled l.addi r4,r16,0 # move reg to reg l.j .L241 # delay slot filled l.lwz r4,0(r16) # SI load .L82: l.addi r14,r0,28 # move immediate l.j .L77 # delay slot filled l.addi r22,r0,3 # move immediate .L81: l.addi r14,r0,992 # move immediate .L186: l.j .L77 # delay slot filled l.addi r22,r0,31 # move immediate .L80: l.j .L186 # delay slot filled l.addi r14,r0,2016 # move immediate .L59: l.j .L60 # delay slot filled l.addi r6,r0,0 # move immediate .L47: l.lwz r9,4(r1) l.lwz r10,8(r1) l.lwz r12,12(r1) l.lwz r14,16(r1) l.lwz r16,20(r1) l.lwz r18,24(r1) l.lwz r20,28(r1) l.lwz r22,32(r1) l.lwz r24,36(r1) l.lwz r26,40(r1) l.lwz r28,44(r1) l.lwz r30,48(r1) l.jr r9 l.addi r1,r1,8312 .endproc _GdCaptureScreen .Lfe7: .size _GdCaptureScreen,.Lfe7-_GdCaptureScreen .align 4 .proc _GdCloseScreen .global _GdCloseScreen .type _GdCloseScreen,@function _GdCloseScreen: # 00011110010000000000000000000000 # gpr_save_area 0 vars 0 current_function_outgoing_args_size 0 l.addi r1,r1,-4 l.sw 0(r1),r9 l.lwz r6,52(r3) # SI load l.jalr r6 l.nop # nop delay slot l.lwz r9,0(r1) l.jr r9 l.addi r1,r1,4 .endproc _GdCloseScreen .Lfe8: .size _GdCloseScreen,.Lfe8-_GdCloseScreen .align 4 .proc _GdSetPortraitMode .global _GdSetPortraitMode .type _GdSetPortraitMode,@function _GdSetPortraitMode: # 00011111011100000000000000000000 # gpr_save_area 4 vars 0 current_function_outgoing_args_size 0 l.addi r1,r1,-8 l.sw 0(r1),r9 l.sw 4(r1),r10 l.lwz r6,120(r3) # SI load l.addi r7,r0,0 # move immediate l.sfeq r6,r7 l.bf .L246 # delay slot filled l.addi r10,r3,0 # move reg to reg l.jalr r6 l.nop # nop delay slot .L246: l.lwz r11,124(r10) # SI load l.lwz r9,0(r1) l.lwz r10,4(r1) l.jr r9 l.addi r1,r1,8 .endproc _GdSetPortraitMode .Lfe9: .size _GdSetPortraitMode,.Lfe9-_GdSetPortraitMode .align 4 .proc _GdGetPalette .global _GdGetPalette .type _GdGetPalette,@function _GdGetPalette: # 00011111110100000000000000000000 # gpr_save_area 0 vars 0 current_function_outgoing_args_size 0 l.addi r1,r1,-4 l.sw 0(r1),r9 l.addi r7,r3,0 # move reg to reg l.lwz r3,36(r3) # SI load l.addi r9,r0,2 # move immediate l.sfeq r3,r9 l.bnf .L258 # delay slot filled l.addi r8,r4,0 # move reg to reg l.lwz r4,32(r7) # SI load l.add r7,r8,r5 l.sfles r7,r4 l.bf .L249 l.nop # nop delay slot l.sub r5,r4,r8 l.addi r4,r0,0 # move immediate l.sfgts r5,r4 l.bf .L249 l.nop # nop delay slot .L258: l.j .L247 # delay slot filled l.addi r5,r0,0 # move immediate .L249: l.addi r7,r0,0 # move immediate l.sflts r7,r5 l.bnf .L247 # delay slot filled l.slli r9,r8,2 l.movhi r8,hi(_gr_palette) # move immediate (high) l.ori r8,r8,lo(_gr_palette) # move immediate (low) l.add r3,r9,r8 .L254: l.lwz r11,0(r3) # SI load l.addi r7,r7,1 l.sw 0(r6),r11 l.addi r3,r3,4 l.sflts r7,r5 l.bf .L254 # delay slot filled l.addi r6,r6,4 .L247: l.addi r11,r5,0 # move reg to reg l.lwz r9,0(r1) l.jr r9 l.addi r1,r1,4 .endproc _GdGetPalette .Lfe10: .size _GdGetPalette,.Lfe10-_GdGetPalette .comm _gr_foreground,1,1 .comm _gr_background,1,1 .comm _gr_usebg,4,4 .comm _gr_palette,1024,4 .comm _gr_firstuserpalentry,4,4 .comm _gr_nextpalentry,4,4 .local _gr_pixtype .comm _gr_pixtype,4,4 .local _gr_ncolors .comm _gr_ncolors,4,4 .ident "GCC: (GNU) 3.1 20020121 (experimental)"