Posted By
George on 2012-11-23 03:29:57
| Re: Draw a single pixel in assembler
Hi gerliczer,
sorry for the name, i did not realized the z.
i tried now this:
LDX #0 LDY #100 loop01 ; loop INX LDY #100 JSR drawpixel CPX #$FF BNE loop01
it draws the line until x=8 than it seems to stop.
Found it my self... i have to store X position in a memory location. And load it again.
Update: 2012-11-23 The Draw-Pixel function above draws a pixel at position xyy in Hires-Mode (320x200). How must the function be changed to draw a pixel in Multicolor mode (160x200)? Couldn't find it out myself.
|