home *** CD-ROM | disk | FTP | other *** search
- # this function writes a coloured pixel into the chunky buffer
-
- # use this function with care, it doesn't check for bounds or if chunky array is correct
-
- # PutPixelFast(chunky:r3:PTR TO chunky,x:r4:LONG,y:r5:LONG,colour:r6:LONG)
-
- .text
- .global _PutPixelFast
-
- _PutPixelFast:
- lwz r0,0(r3)
- mullw r5,r5,r0
- add r4,r5,r4 # r4 now contains position in buffer
- lwz r3,8(r3) # r3 now contains pointer to chunky buffer
- stbx r6,r3,r4
- blr
-
- .type _PutPixelFast,@function
- .size _PutPixelFast,$-_PutPixelFast
-