Advertisement
Mysoft

Untitled

Sep 6th, 2016
655
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. xor ah,ah                    ; clear ah, since i will be using AX
  2. mov al,[si+8]                ; pixel 8 from 256 color source
  3. shl ax,5                     ; ax = pIN[X] shl 5
  4. add bp,ax                    ; +PY (dither row position)
  5. mov dx,[bp+ColorPat]         ; pixels pattern for line 1/2 (dither column 0-1, row 0-1)
  6. sub bp, ax                   ; keep BP with just dither row position (PY)
  7. mov [es:di+2], dl            ; - 8 bit (first unroll the write)
  8. ; instruction
  9. ; instruction (+/- 3 instruction latency time between video writes...)
  10. ; instruction
  11. mov [es:di+82], dh           ; - 8 bit (first unroll the write)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement