Login
Back to forumSee the full topicGo to last reply

Posted By

George
on 2013-04-19
17:19:09
 Re: Draw a single pixel in assembler

Hi Kichy,

thanks for your example. A little overkill at first view for me. I will try to understand it and will come with questions.

Got it working in 2.4.0.
The source does not compile without errors.

Replace the line 136 to 147 with this here:
XCoord = $d0 ; X coordinate between 0-156
YCoord = $d1 ; Y coordinate between 0-96
SrcAddr = $d2 ; Address of 2x1char shape to be drawn (normal, or shifted versions)
SrcAddrLo = $d2
SrcAddrHi = SrcAddr+1
Dest1Addr = $d4 ; Address of left character of 2x1 shape on bitmap
Dest1AddrLo = $d4
Dest1AddrHi = Dest1Addr+1
Dest2Addr = $d6 ; Address of right character of 2x1 shape on bitmap
Dest2AddrLo = $d6
Dest2AddrHi = Dest2Addr+1
YMod8 = $d8

In Multicolor mode the shape is drawn blocky.



Back to top


Copyright © Plus/4 World Team, 2001-2024