-
Notifications
You must be signed in to change notification settings - Fork 304
Closed
Description
I found an problem working accessing bytes to color bitmap display:
.data
init: .word 0x10040000
.text
main:
lw t0, init # Heap adress
li t1, 0x00ff0000 # Red point to t1
sw t1, 0(t0) # Paint the first dot with red
addi t0, t0, 4 # Jump 4 bytes
li t2, 0xff
sb t2, 2(t0) # Paint the second dot with red
In this code i am trying to color two points with red. For the first dot, i use SW and works fine, but when i try to use SB to the second dot, in the display appears that the point is Blue.
Display Config:

Result:

The memory is right:

Reactions are currently unavailable