View Single Post
Old 10 February 2017, 16:51   #6
matthey
Banned
 
Join Date: Jan 2010
Location: Kansas
Posts: 1,284
Quote:
Originally Posted by Don_Adan View Post
Code:
CreatePalette    lea    Palette,a0
        move.w    #256,(a0)+            ;Number of colours to load
        clr.w    (a0)+                ;Register number to start from
                moveq  #-1,D6
                move.l   #$01010101,D7
.colsloop
        not.l    d6
        move.l    d6,(a0)+
        move.l    d6,(a0)+
        move.l    d6,(a0)+
                not.l d6
                sub.l D7,D6
        bcc.b .colsloop
        clr.l    (a0)                ;Close Structure
        rts
Maybe it can works, but I dont checked this.
Something similar to your code may work (poor mans SIMD). It would be nice to get rid of the original dependencies for superscalar operation but my intention was to fix obvious (to me at least) flaws.

Last edited by prowler; 28 February 2017 at 22:28. Reason: Cleanup.
matthey is offline  
 
Page generated in 0.04554 seconds with 9 queries