Views: 19,993,288 |
Home
| Forums
| Uploader
| Wiki
| Object databases
| IRC
Rules/FAQ | Memberlist | Calendar | Stats | Online users | Last posts | Search |
04-19-24 06:22 AM |
Guest: |
0 users reading MIPS Help! | 1 bot |
Main - Computers and technology - MIPS Help! | Hide post layouts | New reply |
Yoshimaster96 |
| ||
Member Normal user Level: 39 Posts: 130/345 EXP: 376633 Next: 28138 Since: 11-03-14 Last post: 1941 days ago Last view: 882 days ago |
.=0xC00000
.set noreorder .text li $24, 0x500040 li $25, 0x100000 sw $25, 0($24) li $25, 0xFFFFFF sw $25, 4($24) li $25, 0x200020 sw $25, 8($24) li $25, 0x200020 sw $25, 12($24) jal fillrec nop j endprg nop filrec: li $8, 0x500040 li $9, 640 lw $4, 0($8) lw $5, 4($8) lw $6, 8($8) lw $7, 12($8) srl $13, $6, 16 andi $14, $6, 0xFFFF srl $15, $7, 16 andi $16, $7, 0xFFFF addu $14, $14, $13 addu $16, $16, $15 testal: beq $15, $16, endfil beq $13, $14, incver multu $15, $9 mflo $10 addu $10, $10, $13 sll $10, $10, 2 addu $10, $10, $4 sw $5, 0($10) addi $13, $13, 1 j testal incver: addi $15, $15, 1 j testal endfil: jr $31 nop imgrec: nop jr $31 nop rlerec: nop jr $31 nop putpix: li $8, 0x500000 li $9, 640 lw $4, 0($8) lw $5, 4($8) lw $6, 8($8) lw $7, 12($8) multu $7, $9 mflo $10 addu $10, $10, $6 sll $10, $10, 2 addu $10, $10, $4 sw $5, 0($10) jr $31 nop endprg: nop For some reason, filrec doesn't work as expected, not rendering at all. The framebuffer is 640x480 in address range $100000-$22BFFF. Each pixel is 00BBGGRR. $4 stores the framebuffer address. This is $100000 in this example. $5 stores the color value. #FFFFFF here. $6 stores the following: XXXXWWWW $7 stores the following: YYYYHHHH |
Arisotura |
| ||
Star Mario in this room you have a pile of apple pies Level: 163 Posts: 3794/9019 EXP: 56219726 Next: 267918 Since: 07-03-12 From: in a box Last post: 7 days ago Last view: 2 days ago |
Yoshimaster96 |
| ||
Member Normal user Level: 39 Posts: 131/345 EXP: 376633 Next: 28138 Since: 11-03-14 Last post: 1941 days ago Last view: 882 days ago |
Thanks! Got it working now! |
Arisotura |
| ||
Star Mario in this room you have a pile of apple pies Level: 163 Posts: 3796/9019 EXP: 56219726 Next: 267918 Since: 07-03-12 From: in a box Last post: 7 days ago Last view: 2 days ago |
Yoshimaster96 |
| ||
Member Normal user Level: 39 Posts: 132/345 EXP: 376633 Next: 28138 Since: 11-03-14 Last post: 1941 days ago Last view: 882 days ago |
Yeah, probably missed it. You can close or trash this thread if you'd like. |
Main - Computers and technology - MIPS Help! | Hide post layouts | New reply |
Page rendered in 0.024 seconds. (2048KB of memory used) MySQL - queries: 29, rows: 205/205, time: 0.009 seconds. Acmlmboard 2.064 (2018-07-20) © 2005-2008 Acmlm, Xkeeper, blackhole89 et al. |