On 2009-10-28, Petter Urkedal wrote:
>     ======  ======  ======  ==================
>     bop     moda    modb    final instructions
>     ======  ======  ======  ==================
>     and     not_x   not_y   and, andn, nor
>     nand    not_x   not_y   nand, orn, or
>     xor     [?]     not_y   xorn
>     add     [?]     neg_x   sub [1]
>     shift   s/u     neg_x   lsl, lsr, asl, asr [1]
>     mul     [?]     [?]     mul
>     min     s/u     not_xy  smin, smax, umin, umax [2]

Sorry, a got the modb for "add" and "shift" wrong.  The table should be

    ======  ======  ======  ==================
    bop     moda    modb    final instructions
    ======  ======  ======  ==================
    and     not_x   not_y   and, andn, nor
    nand    not_x   not_y   nand, orn, or
    xor     [?]     not_y   xorn
    add     [?]     neg_y   sub [1]
    shift   s/u     neg_y   lsl, lsr, asl, asr [1]
    mul     [?]     [?]     mul
    min     s/u     not_xy  smin, smax, umin, umax [2]

Also,

>     neg_x -- inversion of the x operand
    neg_y -- inversion of the x operand

On second though we may as well follow Yann's suggestion on min/max
distinction rather than negating the inputs to add/sub:

    min     s/u     min/max smin, smax, umin, umax [2]
_______________________________________________
Open-graphics mailing list
[email protected]
http://lists.duskglow.com/mailman/listinfo/open-graphics
List service provided by Duskglow Consulting, LLC (www.duskglow.com)

Reply via email to