User Tools

Site Tools


draw

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
draw [2013/01/10 23:44] 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 122: Line 124:
          ret          ret
                    
-dole     inc     ;in other words this is downhl+dole     inc  h
          ld   a,h          ld   a,h
          and  7          and  7
Line 138: Line 140:
          ret          ret
                    
-gore     dec     ;and this is uphl+gore     dec  h
          ld   a,h          ld   a,h
          cpl          cpl
Line 156: Line 158:
 </code> </code>
  
-Navigation: [[general]] . [[math]] . [[graphic]] . [[sound]] . [[system]] . [[other]] . back to [[start]]+---- 
 + 
 +**Navigation: [[general]] . [[math]] . [[graphic]] . [[sound]] . [[system]] . [[other]] . back to [[start]]**
draw.1357857852.txt.gz · Last modified: 2013/01/10 23:44 by darkbyte