Advertisement
yugorin

wyjasnienie petli

Sep 16th, 2016
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. opoznienie:
  2.             ldx #$00    // laduje 00 do rejestru x
  3.  
  4. petla1:
  5.             ldy #$00 // laduje 00 do rejestru y
  6.  
  7. petla2:
  8.             iny         // y+1
  9.             cpy #$ff  // jest ff?
  10.             bne petla2  // nie - skocz do petla2
  11.             inx         // tak? x+1
  12.             cpx #$ff    // jest ff?
  13.             bne petla1  nie - skocz do petla1
  14.             rts // jest? wróć do linijki po jsr opoznienie
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement