Register - Login
Views: 87344571
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - JCS - Stats - Latest Posts - Color Chart - Smilies
11-19-17 07:52:43 AM

Jul - Computers - MIPS32 ASM Help! New poll - New thread - Thread closed
Next newer thread | Next older thread
Yoshimaster96

Shyguy
Level: 19


Posts: 87/91
EXP: 31712
For next: 4065

Since: 03-25-14


Since last post: 1.0 years
Last activity: 1.0 years

Posted on 05-31-15 09:01:35 PM (last edited by Yoshimaster96 at 05-31-15 09:08:50 PM) Link
I put this in Computers/Tech because this is regarding a game/console I'm programming. Here's the code:


.text

;li $8, 0x00FFFFFF
;li $9, 0x00100000
;sw $8, 0x00000000($9)

li $12, 1048576
li $14, 307200
li $15, 0
loop: beq $14, $15, end
li $8, 0x00FFFFFF
sll $10, $15, 2
add $10, $10, $12
sw $8, 0($10)
addi $15, $15, 1
j loop
end:



It should loop through all 640x480 pixels and load 0x00FFFFFF (white) into them. Only the top left pixel loads though, which tells me that the beq instruction is faulty. What could be the problem?

[EDIT]

Figured it out, it was the emulator at fault. This thread can be closed.
Next newer thread | Next older thread
Jul - Computers - MIPS32 ASM Help! New poll - New thread - Thread closed




Rusted Logic

Acmlmboard - commit 2f1bc75 [2017-08-27]
©2000-2017 Acmlm, Xkeeper, Inuyasha, et al.

26 database queries.
Query execution time: 0.124546 seconds
Script execution time: 0.003558 seconds
Total render time: 0.128104 seconds