User Tools

Site Tools


draw

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
draw [2013/01/10 23:36] – created darkbytedraw [2017/02/16 13:37] (current) darkbyte
Line 1: Line 1:
-==== draw ====+====Draw routines==== 
 + 
 +----
  
 <code z80> <code z80>
Line 33: Line 35:
          xor  a          xor  a
 lab      set  0,a lab      set  0,a
-         ex   af,af'+         ex   af,af
          ld   a,l          ld   a,l
          xor  b          xor  b
Line 55: Line 57:
          inc  c          inc  c
 n2       ld   e,a n2       ld   e,a
-         ex   af,af'+         ex   af,af
          push af          push af
          or   (hl)          or   (hl)
          ld   (hl),a          ld   (hl),a
          pop  af          pop  af
-         ex   af,af'+         ex   af,af
          or   d          or   d
          ret  z          ret  z
Line 80: Line 82:
 n3       srl  c n3       srl  c
          ld   hx,d          ld   hx,d
-         ex   af,af'+         ex   af,af
          ld   b,a          ld   b,a
          pop  hl          pop  hl
Line 97: Line 99:
          jr   nz,loop          jr   nz,loop
          ret          ret
 +         
 pox      ld   hl,levo pox      ld   hl,levo
          bit  0,c          bit  0,c
Line 115: Line 118:
          inc  hl          inc  hl
          ret          ret
 +         
 levo     rlc  b levo     rlc  b
          ret  nc          ret  nc
          dec  hl          dec  hl
          ret          ret
 +         
 dole     inc  h dole     inc  h
          ld   a,h          ld   a,h
Line 134: Line 139:
          ld   h,a          ld   h,a
          ret          ret
 +         
 gore     dec  h gore     dec  h
          ld   a,h          ld   a,h
Line 152: Line 158:
 </code> </code>
  
 +----
 +
 +**Navigation: [[general]] . [[math]] . [[graphic]] . [[sound]] . [[system]] . [[other]] . back to [[start]]**
draw.1357857373.txt.gz · Last modified: 2013/01/10 23:36 by darkbyte