#10305 - slip - Tue Sep 02, 2003 1:29 am
Ok, I'm using ARM asm, it seems a little strange. When I write a single byte to VRAM it appears to write the byte twice, appearing to be two pixels plotted... I'll try and explain a little better..
I have a 32 bit word 00000000000000000000000011111111 which looks like that. that is my 'byte' I want to write. I'll find an address in VRAM and use strb to store the byte... thats what I'm using ^^ I'm asuming that when writting a byte from using a 32bit word the lower 8 bits will be used. The result however looks like this.. say this was a 32bit word in VRAM.
before write
00000000000000000000000000000000
after write
00000000000000001111111111111111
or
11111111111111110000000000000000
depending on the address.
I'm a little confused about this. Does ldrb and strb read and write 16 bit words =\
I'm trying to write a mode 4 pixels plotting routine.
_________________
[url="http://www.ice-d.com"]www.ice-d.com[/url]
I have a 32 bit word 00000000000000000000000011111111 which looks like that. that is my 'byte' I want to write. I'll find an address in VRAM and use strb to store the byte... thats what I'm using ^^ I'm asuming that when writting a byte from using a 32bit word the lower 8 bits will be used. The result however looks like this.. say this was a 32bit word in VRAM.
before write
00000000000000000000000000000000
after write
00000000000000001111111111111111
or
11111111111111110000000000000000
depending on the address.
I'm a little confused about this. Does ldrb and strb read and write 16 bit words =\
I'm trying to write a mode 4 pixels plotting routine.
_________________
[url="http://www.ice-d.com"]www.ice-d.com[/url]