By Craig Allsop I figured I might as well give everyone the macros from my source that display the copper bars. (They were written for Tasm, Ideal mode - but are easily converted) - I reveal all! macro waithorz ; DX = 3DAh! local a,b a: in al,dx rcr al,1 jc a b: in al,dx rcr al,1 jnc b endm macro waitvert local a,b a: in al,dx test al,8 jnz a b: in al,dx test al,8 jz b endm macro copper ; SI = Colour table, CX = # of Colours local a ; BL = Palette to change mov ah,0c9h mov dl,3 a: mov dl,0c8h mov al,bl out dx,al ; Select palette inc dl outsb outsb ; Send first 2 values lodsb ; Get next one ready mov bh,al ; and hang onto it mov dl,0dah waithorz ; Wait for the horz. retrace mov dl,ah mov al,bh out dx,al ; Send last value (Causes static!) dec cx jnz a ; Continue... endm To use them, requires a 'waitvert' before using 'copper' to execute it, and 'waitvert' requires dx = 3dah. Simple really. Eg: mov si,
mov cx,