Skip to content

Store Byte with Bitmap display #47

@PedroAugustoRamalhoDuarte

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:
configdisplay
Result:
display
The memory is right:
mem

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions