URL
https://opencores.org/ocsvn/raptor64/raptor64/trunk
Subversion Repositories raptor64
[/] [raptor64/] [trunk/] [software/] [sample code/] [sieve.lst] - Rev 47
Go to most recent revision | Compare with Previous | Blame | View Log
0000000000000000 code
0000000000000000 align 16
0000000000000000 my_org:
0000000100800200 org 0x100800200
0000000100800204 32200285 jmp crt_start
0000000100800208 .align 8
0000000100800208 sp_save:
0000000100800208 0000000000000000 dw 0
100800210 FFFFFFFFFFFFFFFF fill.b 0x0200,0xff
100800218 FFFFFFFFFFFFFFFF
100800220 FFFFFFFFFFFFFFFF
100800228 FFFFFFFFFFFFFFFF
100800230 FFFFFFFFFFFFFFFF
100800238 FFFFFFFFFFFFFFFF
100800240 FFFFFFFFFFFFFFFF
100800248 FFFFFFFFFFFFFFFF
100800250 FFFFFFFFFFFFFFFF
100800258 FFFFFFFFFFFFFFFF
100800260 FFFFFFFFFFFFFFFF
100800268 FFFFFFFFFFFFFFFF
100800270 FFFFFFFFFFFFFFFF
100800278 FFFFFFFFFFFFFFFF
100800280 FFFFFFFFFFFFFFFF
100800288 FFFFFFFFFFFFFFFF
100800290 FFFFFFFFFFFFFFFF
100800298 FFFFFFFFFFFFFFFF
1008002A0 FFFFFFFFFFFFFFFF
1008002A8 FFFFFFFFFFFFFFFF
1008002B0 FFFFFFFFFFFFFFFF
1008002B8 FFFFFFFFFFFFFFFF
1008002C0 FFFFFFFFFFFFFFFF
1008002C8 FFFFFFFFFFFFFFFF
1008002D0 FFFFFFFFFFFFFFFF
1008002D8 FFFFFFFFFFFFFFFF
1008002E0 FFFFFFFFFFFFFFFF
1008002E8 FFFFFFFFFFFFFFFF
1008002F0 FFFFFFFFFFFFFFFF
1008002F8 FFFFFFFFFFFFFFFF
100800300 FFFFFFFFFFFFFFFF
100800308 FFFFFFFFFFFFFFFF
100800310 FFFFFFFFFFFFFFFF
100800318 FFFFFFFFFFFFFFFF
100800320 FFFFFFFFFFFFFFFF
100800328 FFFFFFFFFFFFFFFF
100800330 FFFFFFFFFFFFFFFF
100800338 FFFFFFFFFFFFFFFF
100800340 FFFFFFFFFFFFFFFF
100800348 FFFFFFFFFFFFFFFF
100800350 FFFFFFFFFFFFFFFF
100800358 FFFFFFFFFFFFFFFF
100800360 FFFFFFFFFFFFFFFF
100800368 FFFFFFFFFFFFFFFF
100800370 FFFFFFFFFFFFFFFF
100800378 FFFFFFFFFFFFFFFF
100800380 FFFFFFFFFFFFFFFF
100800388 FFFFFFFFFFFFFFFF
100800390 FFFFFFFFFFFFFFFF
100800398 FFFFFFFFFFFFFFFF
1008003A0 FFFFFFFFFFFFFFFF
1008003A8 FFFFFFFFFFFFFFFF
1008003B0 FFFFFFFFFFFFFFFF
1008003B8 FFFFFFFFFFFFFFFF
1008003C0 FFFFFFFFFFFFFFFF
1008003C8 FFFFFFFFFFFFFFFF
1008003D0 FFFFFFFFFFFFFFFF
1008003D8 FFFFFFFFFFFFFFFF
1008003E0 FFFFFFFFFFFFFFFF
1008003E8 FFFFFFFFFFFFFFFF
1008003F0 FFFFFFFFFFFFFFFF
1008003F8 FFFFFFFFFFFFFFFF
100800400 FFFFFFFFFFFFFFFF
100800408 FFFFFFFFFFFFFFFF
0000000100800412 L_1:
0000000100800412 L_0:
0000000100800412 main:
0000000100800413 0FEF0018 subui sp,sp,#24
0000000100800417 67ED8000 sw bp,[sp]
000000010080041B 67EE0008 sw xlr,8[sp]
000000010080041F 67EF8010 sw lr,16[sp]
0000000100800423 E6800747 ; SETLO
0000000100800427 EE800402 ; SETMID
000000010080042B 6A0D702D lea xlr,L_5
000000010080042F 03ED8009 mov bp,sp
0000000100800433 E6835028 ; SETLO
0000000100800437 EE800003 ; SETMID
000000010080043B 05ED7805 subui sp,sp,#12800040
000000010080043F 0FEF0038 subui sp,sp,#56
0000000100800443 67E58000 sw r11,[sp]
0000000100800447 67E60008 sw r12,8[sp]
000000010080044B 67E68010 sw r13,16[sp]
000000010080044F 67E70018 sw r14,24[sp]
0000000100800453 67E78020 sw r15,32[sp]
0000000100800457 67E80028 sw r16,40[sp]
000000010080045B 67E88030 sw r17,48[sp]
000000010080045F 1607FFFF ori r15,r0,#-1
0000000100800463 E688E4F0 ; SETLO
0000000100800467 EEBFFFFD ; SETMID
000000010080046B 6BBD0C2D lea r3,-12000016[bp]
000000010080046F 02380009 mov r16,r3
; lw r1,#0x17
; mov r2,sp
; syscall #410
0000000100800473 160080AB lw r1,#0xAB
0000000100800477 E69C0600 ; SETLO
000000010080047B EE800003 ; SETMID
000000010080047F 6A0D0428 outb r1,0xdc0600
0000000100800483 3020027D call get_tick
0000000100800487 02118009 mov r3,r1
000000010080048B 02388009 mov r17,r3
000000010080048F 160080AC lw r1,#0xAC
0000000100800493 E69C0600 ; SETLO
0000000100800497 EE800003 ; SETMID
000000010080049B 6A0D0428 outb r1,0xdc0600
000000010080049F 16008017 lw r1,#0x17
00000001008004A3 03E10009 mov r2,sp
00000001008004A7 0181CD17 syscall #410
00000001008004AB 0FEF0008 subui sp,sp,#8
00000001008004AF 00000014 fip
00000001008004B3 DE000000 nop
00000001008004B7 DE000000 nop
00000001008004BB DE000000 nop
00000001008004BF DE000000 nop
00000001008004C3 67E20000 sw r4,[sp]
; fip
00000001008004C7 160080AE lw r1,#0xAE
00000001008004CB E69C0600 ; SETLO
00000001008004CF EE800003 ; SETMID
00000001008004D3 6A0D0428 outb r1,0xdc0600
00000001008004D7 DE000000 nop
00000001008004DB DE000000 nop
00000001008004DF DE000000 nop
00000001008004E3 DE000000 nop
00000001008004E7 DE000000 nop
00000001008004EB 0FEF0010 subui sp,sp,#16
00000001008004EF 00000014 fip
00000001008004F3 DE000000 nop
00000001008004F7 DE000000 nop
00000001008004FB DE000000 nop
00000001008004FF DE000000 nop
0000000100800503 DE000000 nop
0000000100800507 67E88008 sw r17,8[sp]
000000010080050B 00000014 fip
000000010080050F DE000000 nop
0000000100800513 DE000000 nop
0000000100800517 DE000000 nop
000000010080051B DE000000 nop
000000010080051F DE000000 nop
0000000100800523 E6800412 ; SETLO
0000000100800527 EE800402 ; SETMID
000000010080052B 040D0C09 ori r3,r0,#L_0
000000010080052F 00000014 fip
0000000100800533 DE000000 nop
0000000100800537 DE000000 nop
000000010080053B DE000000 nop
000000010080053F DE000000 nop
0000000100800543 DE000000 nop
0000000100800547 67E18000 sw r3,[sp]
000000010080054B DE000000 nop
000000010080054F DE000000 nop
0000000100800553 DE000000 nop
0000000100800557 DE000000 nop
000000010080055B DE000000 nop
000000010080055F 160080AE lw r1,#0xAE
0000000100800563 E69C0600 ; SETLO
0000000100800567 EE800003 ; SETMID
000000010080056B 6A0D0428 outb r1,0xdc0600
000000010080056F 00000028 wait
0000000100800573 302001D4 call printf
0000000100800577 0BEF0010 addui sp,sp,#16
000000010080057B 47E20000 lw r4,[sp]
000000010080057F 0BEF0008 addui sp,sp,#8
0000000100800583 02118009 mov r3,r1
0000000100800587 160080AD lw r1,#0xAD
000000010080058B E69C0600 ; SETLO
000000010080058F EE800003 ; SETMID
0000000100800593 6A0D0428 outb r1,0xdc0600
0000000100800597 00000040 cli
000000010080059B E696E360 ; SETLO
000000010080059F 040D0C09 ori r3,r0,#1500000
00000001008005A3 02370009 mov r14,r3
00000001008005A7 16018000 ori r3,r0,#0
00000001008005AB 02358009 mov r11,r3
00000001008005AF L_6:
00000001008005AF BEB700A1 bge r11,r14,L_7
00000001008005B3 08B18002 add r3,r11,#2
00000001008005B7 6B058F13 sw r3,[r16+r11*8]
00000001008005BB 0AB58001 addui r11,r11,#1
00000001008005BF BE007F8A bra L_6
00000001008005C3 L_7:
00000001008005C3 16018000 ori r3,r0,#0
00000001008005C7 02358009 mov r11,r3
00000001008005CB L_8:
00000001008005CB BEB701C1 bge r11,r14,L_9
00000001008005CF 6B058F03 lw r3,[r16+r11*8]
00000001008005D3 BE378148 beq r3,r15,L_10
00000001008005D7 6B058F03 lw r3,[r16+r11*8]
00000001008005DB 06320200 shli r4,r3,#1
00000001008005DF 0C418002 sub r3,r4,#2
00000001008005E3 02360009 mov r12,r3
00000001008005E7 L_12:
00000001008005E7 BEC700A1 bge r12,r14,L_13
00000001008005EB 6B063F13 sw r15,[r16+r12*8]
00000001008005EF 6B058F03 lw r3,[r16+r11*8]
00000001008005F3 04C1B002 add r12,r12,r3
00000001008005F7 BE007F8A bra L_12
00000001008005FB L_13:
00000001008005FB L_10:
00000001008005FB 0AB58001 addui r11,r11,#1
00000001008005FF BE007E6A bra L_8
0000000100800603 L_9:
0000000100800603 16018000 ori r3,r0,#0
0000000100800607 02360009 mov r12,r3
000000010080060B 16018000 ori r3,r0,#0
000000010080060F 02358009 mov r11,r3
0000000100800613 L_14:
0000000100800613 BEB701A1 bge r11,r14,L_15
0000000100800617 E68186A0 ; SETLO
000000010080061B BECD0161 bge r12,#100000,L_15
000000010080061F 6B058F03 lw r3,[r16+r11*8]
0000000100800623 BE3780E8 beq r3,r15,L_16
0000000100800627 6B058F03 lw r3,[r16+r11*8]
000000010080062B 08C60001 add r12,r12,#1
000000010080062F E6BCAFF0 ; SETLO
0000000100800633 EEBFFFFC ; SETMID
0000000100800637 6BBD102D lea r4,-12800016[bp]
000000010080063B 6A460F13 sw r3,[r4+r12*8]
000000010080063F L_16:
000000010080063F 0AB58001 addui r11,r11,#1
0000000100800643 BE007E8A bra L_14
0000000100800647 L_15:
0000000100800647 0FEF0010 subui sp,sp,#16
000000010080064B 67E20008 sw r4,8[sp]
000000010080064F 67E28000 sw r5,[sp]
0000000100800653 3020027D call get_tick
0000000100800657 47E20008 lw r4,8[sp]
000000010080065B 47E28000 lw r5,[sp]
000000010080065F 0BEF0010 addui sp,sp,#16
0000000100800663 02118009 mov r3,r1
0000000100800667 02368009 mov r13,r3
000000010080066B 0FEF0010 subui sp,sp,#16
000000010080066F 67E20008 sw r4,8[sp]
0000000100800673 67E28000 sw r5,[sp]
0000000100800677 0FEF0010 subui sp,sp,#16
000000010080067B 04D88C04 sub r3,r13,r17
000000010080067F 67E18008 sw r3,8[sp]
0000000100800683 E6800412 ; SETLO
0000000100800687 EE800402 ; SETMID
000000010080068B 040D0C09 ori r3,r0,#L_0
000000010080068F 67E18000 sw r3,[sp]
0000000100800693 302001D4 call printf
0000000100800697 0BEF0010 addui sp,sp,#16
000000010080069B 47E20008 lw r4,8[sp]
000000010080069F 47E28000 lw r5,[sp]
00000001008006A3 0BEF0010 addui sp,sp,#16
00000001008006A7 02118009 mov r3,r1
00000001008006AB 16018000 ori r3,r0,#0
00000001008006AF 02358009 mov r11,r3
00000001008006B3 L_18:
00000001008006B3 E68186A0 ; SETLO
00000001008006B7 BEBD02C1 bge r11,#100000,L_19
00000001008006BB 0FEF0010 subui sp,sp,#16
00000001008006BF 67E20008 sw r4,8[sp]
00000001008006C3 67E28000 sw r5,[sp]
00000001008006C7 0FEF0010 subui sp,sp,#16
00000001008006CB E6BCAFF0 ; SETLO
00000001008006CF EEBFFFFC ; SETMID
00000001008006D3 6BBD0C2D lea r3,-12800016[bp]
00000001008006D7 6A359303 lw r4,[r3+r11*8]
00000001008006DB 67E20008 sw r4,8[sp]
00000001008006DF E6800412 ; SETLO
00000001008006E3 EE800402 ; SETMID
00000001008006E7 040D1009 ori r4,r0,#L_0
00000001008006EB 67E20000 sw r4,[sp]
00000001008006EF 302001D4 call printf
00000001008006F3 0BEF0010 addui sp,sp,#16
00000001008006F7 47E20008 lw r4,8[sp]
00000001008006FB 47E28000 lw r5,[sp]
00000001008006FF 0BEF0010 addui sp,sp,#16
0000000100800703 02120009 mov r4,r1
0000000100800707 0AB58001 addui r11,r11,#1
000000010080070B BE007D4A bra L_18
000000010080070F L_19:
000000010080070F 16008000 ori r1,r0,#0
0000000100800713 L_20:
0000000100800713 47E88030 lw r17,48[sp]
0000000100800717 47E80028 lw r16,40[sp]
000000010080071B 47E78020 lw r15,32[sp]
000000010080071F 47E70018 lw r14,24[sp]
0000000100800723 47E68010 lw r13,16[sp]
0000000100800727 47E60008 lw r12,8[sp]
000000010080072B 47E58000 lw r11,[sp]
000000010080072F 0BEF0038 addui sp,sp,#56
0000000100800733 03BF0009 mov sp,bp
0000000100800737 47ED8000 lw bp,[sp]
000000010080073B 47EE0008 lw xlr,8[sp]
000000010080073F 47EF8010 lw lr,16[sp]
0000000100800743 37EF8018 ret #24
0000000100800747 L_5:
0000000100800747 47BF8008 lw lr,8[bp]
000000010080074B 67BF8010 sw lr,16[bp]
000000010080074F BE007E2A bra L_20
0000000100800753 printf:
0000000100800753 160080B0 lw r1,#0xB0
0000000100800757 E69C0600 ; SETLO
000000010080075B EE800003 ; SETMID
000000010080075F 6A0D0428 outb r1,0xdc0600
0000000100800763 0FEF0018 subui sp,sp,#24
0000000100800767 67ED8000 sw bp,[sp]
000000010080076B 67EE0008 sw xlr,8[sp]
000000010080076F 67EF8010 sw lr,16[sp]
0000000100800773 E6800937 ; SETLO
0000000100800777 EE800402 ; SETMID
000000010080077B 6A0D702D lea xlr,L_21
000000010080077F 03ED8009 mov bp,sp
0000000100800783 0FEF0008 subui sp,sp,#8
0000000100800787 0FEF0018 subui sp,sp,#24
000000010080078B 67E58000 sw r11,[sp]
000000010080078F 67E60008 sw r12,8[sp]
0000000100800793 67E68010 sw r13,16[sp]
0000000100800797 47B18018 lw r3,24[bp]
000000010080079B 02360009 mov r12,r3
000000010080079F E6800943 ; SETLO
00000001008007A3 EE800402 ; SETMID
00000001008007A7 040D3409 ori r13,r0,#putch
00000001008007AB 160080AE lw r1,#0xAE
00000001008007AF E69C0600 ; SETLO
00000001008007B3 EE800003 ; SETMID
00000001008007B7 6A0D0428 outb r1,0xdc0600
00000001008007BB 9BB18018 lea r3,24[bp]
00000001008007BF 02358009 mov r11,r3
00000001008007C3 L_22:
00000001008007C3 42C18000 lc r3,[r12]
00000001008007C7 BE300A68 beq r3,r0,L_23
00000001008007CB 42C18000 lc r3,[r12]
00000001008007CF B2304225 bne r3,#37,L_24
00000001008007D3 0AC60002 addui r12,r12,#2
00000001008007D7 42C18000 lc r3,[r12]
00000001008007DB 02318015 sext16 r3,r3
00000001008007DF 04300409 or r1,r3,r0
00000001008007E3 B0100525 beq r1,#37,L_27
00000001008007E7 B0101163 beq r1,#99,L_28
00000001008007EB B0101E64 beq r1,#100,L_29
00000001008007EF B0102B73 beq r1,#115,L_30
00000001008007F3 BE00070A bra L_26
00000001008007F7 L_27:
00000001008007F7 0FEF0010 subui sp,sp,#16
00000001008007FB 67E20008 sw r4,8[sp]
00000001008007FF 67E28000 sw r5,[sp]
0000000100800803 0FEF0008 subui sp,sp,#8
0000000100800807 16018025 ori r3,r0,#37
000000010080080B 67E18000 sw r3,[sp]
000000010080080F 34DF8000 jal lr,[r13]
0000000100800813 0BEF0008 addui sp,sp,#8
0000000100800817 47E20008 lw r4,8[sp]
000000010080081B 47E28000 lw r5,[sp]
000000010080081F 0BEF0010 addui sp,sp,#16
0000000100800823 02118009 mov r3,r1
0000000100800827 BE00056A bra L_26
000000010080082B L_28:
000000010080082B 0AB58008 addui r11,r11,#8
000000010080082F 0FEF0010 subui sp,sp,#16
0000000100800833 67E20008 sw r4,8[sp]
0000000100800837 67E28000 sw r5,[sp]
000000010080083B 0FEF0008 subui sp,sp,#8
000000010080083F 46B18000 lw r3,[r11]
0000000100800843 67E18000 sw r3,[sp]
0000000100800847 34DF8000 jal lr,[r13]
000000010080084B 0BEF0008 addui sp,sp,#8
000000010080084F 47E20008 lw r4,8[sp]
0000000100800853 47E28000 lw r5,[sp]
0000000100800857 0BEF0010 addui sp,sp,#16
000000010080085B 02118009 mov r3,r1
000000010080085F BE0003AA bra L_26
0000000100800863 L_29:
0000000100800863 0AB58008 addui r11,r11,#8
0000000100800867 0FEF0010 subui sp,sp,#16
000000010080086B 67E20008 sw r4,8[sp]
000000010080086F 67E28000 sw r5,[sp]
0000000100800873 0FEF0008 subui sp,sp,#8
0000000100800877 46B18000 lw r3,[r11]
000000010080087B 67E18000 sw r3,[sp]
000000010080087F 30200262 call putnum
0000000100800883 0BEF0008 addui sp,sp,#8
0000000100800887 47E20008 lw r4,8[sp]
000000010080088B 47E28000 lw r5,[sp]
000000010080088F 0BEF0010 addui sp,sp,#16
0000000100800893 02118009 mov r3,r1
0000000100800897 BE0001EA bra L_26
000000010080089B L_30:
000000010080089B 0AB58008 addui r11,r11,#8
000000010080089F 0FEF0010 subui sp,sp,#16
00000001008008A3 67E20008 sw r4,8[sp]
00000001008008A7 67E28000 sw r5,[sp]
00000001008008AB 0FEF0008 subui sp,sp,#8
00000001008008AF 46B18000 lw r3,[r11]
00000001008008B3 67E18000 sw r3,[sp]
00000001008008B7 30200274 call putstr
00000001008008BB 0BEF0008 addui sp,sp,#8
00000001008008BF 47E20008 lw r4,8[sp]
00000001008008C3 47E28000 lw r5,[sp]
00000001008008C7 0BEF0010 addui sp,sp,#16
00000001008008CB 02118009 mov r3,r1
00000001008008CF BE00002A bra L_26
00000001008008D3 L_26:
00000001008008D3 BE0001CA bra L_25
00000001008008D7 L_24:
00000001008008D7 0FEF0010 subui sp,sp,#16
00000001008008DB 67E20008 sw r4,8[sp]
00000001008008DF 67E28000 sw r5,[sp]
00000001008008E3 0FEF0008 subui sp,sp,#8
00000001008008E7 42C18000 lc r3,[r12]
00000001008008EB 02318015 sext16 r3,r3
00000001008008EF 67E18000 sw r3,[sp]
00000001008008F3 34DF8000 jal lr,[r13]
00000001008008F7 0BEF0008 addui sp,sp,#8
00000001008008FB 47E20008 lw r4,8[sp]
00000001008008FF 47E28000 lw r5,[sp]
0000000100800903 0BEF0010 addui sp,sp,#16
0000000100800907 02118009 mov r3,r1
000000010080090B L_25:
000000010080090B 0AC60002 addui r12,r12,#2
000000010080090F BE0075AA bra L_22
0000000100800913 L_23:
0000000100800913 L_31:
0000000100800913 47E68010 lw r13,16[sp]
0000000100800917 47E60008 lw r12,8[sp]
000000010080091B 47E58000 lw r11,[sp]
000000010080091F 0BEF0018 addui sp,sp,#24
0000000100800923 03BF0009 mov sp,bp
0000000100800927 47ED8000 lw bp,[sp]
000000010080092B 47EE0008 lw xlr,8[sp]
000000010080092F 47EF8010 lw lr,16[sp]
0000000100800933 37EF8018 ret #24
0000000100800937 L_21:
0000000100800937 47BF8008 lw lr,8[bp]
000000010080093B 67BF8010 sw lr,16[bp]
000000010080093F BE007EAA bra L_31
0000000100800943 putch:
0000000100800943 0FEF0018 subui sp,sp,#24
0000000100800947 67ED8000 sw bp,[sp]
000000010080094B 03ED8009 mov bp,sp
000000010080094F 160080AF lw r1,#0xAF
0000000100800953 E69C0600 ; SETLO
0000000100800957 EE800003 ; SETMID
000000010080095B 6A0D0428 outb r1,0xdc0600
000000010080095F 1600800A lw r1,#0x0a
0000000100800963 47B10018 lw r2,24[bp]
0000000100800967 16018001 lw r3,#1
000000010080096B 0181CD17 syscall #410
000000010080096F 160080B0 lw r1,#0xB0
0000000100800973 E69C0600 ; SETLO
0000000100800977 EE800003 ; SETMID
000000010080097B 6A0D0428 outb r1,0xdc0600
000000010080097F L_33:
000000010080097F 03BF0009 mov sp,bp
0000000100800983 47ED8000 lw bp,[sp]
0000000100800987 37EF8018 ret #24
000000010080098B L_32:
000000010080098B putnum:
000000010080098B 0FEF0018 subui sp,sp,#24
000000010080098F 67ED8000 sw bp,[sp]
0000000100800993 03ED8009 mov bp,sp
0000000100800997 160080B1 lw r1,#0xB1
000000010080099B E69C0600 ; SETLO
000000010080099F EE800003 ; SETMID
00000001008009A3 6A0D0428 outb r1,0xdc0600
00000001008009A7 16008015 lw r1,#0x15
00000001008009AB 47B10018 lw r2,24[bp]
00000001008009AF 16018005 lw r3,#5
00000001008009B3 0181CD17 syscall #410
00000001008009B7 160080B2 lw r1,#0xB2
00000001008009BB E69C0600 ; SETLO
00000001008009BF EE800003 ; SETMID
00000001008009C3 6A0D0428 outb r1,0xdc0600
00000001008009C7 L_35:
00000001008009C7 03BF0009 mov sp,bp
00000001008009CB 47ED8000 lw bp,[sp]
00000001008009CF 37EF8018 ret #24
00000001008009D3 L_34:
00000001008009D3 putstr:
00000001008009D3 0FEF0018 subui sp,sp,#24
00000001008009D7 67ED8000 sw bp,[sp]
00000001008009DB 03ED8009 mov bp,sp
00000001008009DF 16008014 lw r1,#0x14
00000001008009E3 47B10018 lw r2,24[bp]
00000001008009E7 0181CD17 syscall #410
00000001008009EB L_37:
00000001008009EB 03BF0009 mov sp,bp
00000001008009EF 47ED8000 lw bp,[sp]
00000001008009F3 37EF8018 ret #24
00000001008009F7 L_36:
00000001008009F7 get_tick:
00000001008009F7 0FEF0018 subui sp,sp,#24
00000001008009FB 67ED8000 sw bp,[sp]
00000001008009FF 03ED8009 mov bp,sp
0000000100800A03 16008000 lw r1,#0
0000000100800A07 0181D017 syscall #416
0000000100800A0B L_39:
0000000100800A0B 03BF0009 mov sp,bp
0000000100800A0F 47ED8000 lw bp,[sp]
0000000100800A13 37EF8018 ret #24
0000000100800A17 L_38:
0000000100800A17 crt_start:
0000000100800A17 0FEF0018 subui sp,sp,#24
0000000100800A1B 67ED8000 sw bp,[sp]
0000000100800A1F 67EE0008 sw xlr,8[sp]
0000000100800A23 67EF8010 sw lr,16[sp]
0000000100800A27 E6800ADF ; SETLO
0000000100800A2B EE800402 ; SETMID
0000000100800A2F 6A0D702D lea xlr,L_41
0000000100800A33 03ED8009 mov bp,sp
0000000100800A37 160080AA lw r1,#0xAA
0000000100800A3B E69C0600 ; SETLO
0000000100800A3F EE800003 ; SETMID
0000000100800A43 6A0D0428 outb r1,0xdc0600
0000000100800A47 E6800208 ; SETLO
0000000100800A4B EE800402 ; SETMID
0000000100800A4F 6A0D7813 sw sp,sp_save
0000000100800A53 E6BFFFF8 ; SETLO
0000000100800A57 EE80041F ; SETMID
0000000100800A5B 040D7809 lw sp,#0x1_07FFFFF8
0000000100800A5F 16008017 lw r1,#0x17
0000000100800A63 03E10009 mov r2,sp
0000000100800A67 0181CD17 syscall #410
0000000100800A6B E6800A8B ; SETLO
0000000100800A6F EE800402 ; SETMID
0000000100800A73 6A0D702D lea xlr,prog_abort
0000000100800A77 30200104 call main
0000000100800A7B E6800208 ; SETLO
0000000100800A7F EE800402 ; SETMID
0000000100800A83 6A0D7803 lw sp,sp_save
0000000100800A87 BE00022A bra retcode
0000000100800A8B prog_abort:
0000000100800A8B 0FEF0010 subui sp,sp,#16
0000000100800A8F 67E20008 sw r4,8[sp]
0000000100800A93 67E28000 sw r5,[sp]
0000000100800A97 0FEF0008 subui sp,sp,#8
0000000100800A9B E6800412 ; SETLO
0000000100800A9F EE800402 ; SETMID
0000000100800AA3 040D0C09 ori r3,r0,#L_0
0000000100800AA7 67E18000 sw r3,[sp]
0000000100800AAB 30200274 call putstr
0000000100800AAF 0BEF0008 addui sp,sp,#8
0000000100800AB3 47E20008 lw r4,8[sp]
0000000100800AB7 47E28000 lw r5,[sp]
0000000100800ABB 0BEF0010 addui sp,sp,#16
0000000100800ABF E6800208 ; SETLO
0000000100800AC3 EE800402 ; SETMID
0000000100800AC7 6A0D7803 lw sp,sp_save
0000000100800ACB retcode:
0000000100800ACB L_42:
0000000100800ACB 03BF0009 mov sp,bp
0000000100800ACF 47ED8000 lw bp,[sp]
0000000100800AD3 47EE0008 lw xlr,8[sp]
0000000100800AD7 47EF8010 lw lr,16[sp]
0000000100800ADB 37EF8018 ret #24
0000000100800ADF L_41:
0000000100800ADF 47BF8008 lw lr,8[bp]
0000000100800AE3 67BF8010 sw lr,16[bp]
0000000100800AE7 BE007F2A bra L_42
100800AE8 0000000000000000 align 8
0000000100800AF0 align 8
0000000100800AF0 L_40:
0000000100800B26 L_4:
0000000100800B2C L_3:
0000000100800B4C L_2:
; global putch
; global get_tick
; global my_org
; global printf
; global main
; global putnum
; global putstr
; global crt_start
0000000100800B6A 00000000
0000000100800B6E 00000000
Symbol Table:
==========================================================
Name Typ Segment Address/Value
----------------------------------------------------------
my_org L code 0000000000000000
sp_save L code 0000000100800208
L_1 L code 0000000100800412
L_0 L code 0000000100800412
main L code 0000000100800412
L_6 L code 00000001008005AF
L_7 L code 00000001008005C3
L_8 L code 00000001008005CB
L_9 L code 0000000100800603
L_10 L code 00000001008005FB
L_12 L code 00000001008005E7
L_13 L code 00000001008005FB
L_14 L code 0000000100800613
L_15 L code 0000000100800647
L_16 L code 000000010080063F
L_18 L code 00000001008006B3
L_19 L code 000000010080070F
L_20 L code 0000000100800713
L_5 L code 0000000100800747
printf L code 0000000100800753
L_22 L code 00000001008007C3
L_23 L code 0000000100800913
L_24 L code 00000001008008D7
L_27 L code 00000001008007F7
L_28 L code 000000010080082B
L_29 L code 0000000100800863
L_30 L code 000000010080089B
L_26 L code 00000001008008D3
L_25 L code 000000010080090B
L_31 L code 0000000100800913
L_21 L code 0000000100800937
putch L code 0000000100800943
L_33 L code 000000010080097F
L_32 L code 000000010080098B
putnum L code 000000010080098B
L_35 L code 00000001008009C7
L_34 L code 00000001008009D3
putstr L code 00000001008009D3
L_37 L code 00000001008009EB
L_36 L code 00000001008009F7
get_tick L code 00000001008009F7
L_39 L code 0000000100800A0B
L_38 L code 0000000100800A17
crt_start L code 0000000100800A17
retcode L code 0000000100800ACB
prog_abort L code 0000000100800A8B
L_42 L code 0000000100800ACB
L_41 L code 0000000100800ADF
L_40 L code 0000000100800AF0
L_4 L code 0000000100800B26
L_3 L code 0000000100800B2C
L_2 L code 0000000100800B4C
Go to most recent revision | Compare with Previous | Blame | View Log