Register - Login
Views: 94264699
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - Stats - Latest Posts - Color Chart - Smilies
08-18-18 04:37:22 PM

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

Shyguy
Level: 19


Posts: 87/91
EXP: 34798
For next: 979

Since: 03-25-14


Since last post: 2.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 and Technology - MIPS32 ASM Help! New poll - New thread - Thread closed




Rusted Logic

Acmlmboard - commit 5d36857 [2018-03-03]
©2000-2018 Acmlm, Xkeeper, Inuyasha, et al.

26 database queries.
Query execution time: 0.165542 seconds
Script execution time: 0.003989 seconds
Total render time: 0.169531 seconds
Memory used: 524288