#174618 - nathanpc - Fri Jul 02, 2010 1:13 am
Hello,
I'm trying to plot pixels, side-by-side. Something like this dots: ..., without any space between them. Then I've done this:
But when I tried to emulate this, what I got was this:
[Images not permitted - Click here to view it]
What I should do?
Best Regards,
Nathan Paulino Campos
_________________
Reading Tonc and trying to remind my very old C knowledge.
Just bought a GameBoy Advance SP one of those cartridges to put the ROMs for onboard debug.
I'm trying to plot pixels, side-by-side. Something like this dots: ..., without any space between them. Then I've done this:
Code: |
.arm
.text .global main .macro plot_pixel x, y, color mov r0, #0x6000000 mov r1, \color ldr r2, =(\x+\y*240)*2 str r1, [r0, r2] .endm main: mov r0, #0x4000000 mov r1, #0x400 add r1, r1, #3 str r1, [r0] plot_pixel 119, 80, #0x1F plot_pixel 120, 80, #0x03E0 plot_pixel 121, 80, #0x7C00 infin: b infin |
But when I tried to emulate this, what I got was this:
[Images not permitted - Click here to view it]
What I should do?
Best Regards,
Nathan Paulino Campos
_________________
Reading Tonc and trying to remind my very old C knowledge.
Just bought a GameBoy Advance SP one of those cartridges to put the ROMs for onboard debug.