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
en:examples:timer:software_delay [2010/04/13 07:17] raivo.sellen:examples:timer:software_delay [2020/07/20 09:00] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +<pagebreak>
 ====== Software delay ====== ====== Software delay ======
  
Line 30: Line 31:
  
 <code asm> <code asm>
-80 e0     ldi  r24, 0x00   ; r24 loading number 0 to the index +80 e0     ldi  r24, 0x00 ; r24 loading number 0 to the index 
-00 00     nop              ; Empty operation +00 00     nop            ; Empty operation 
-8f 5f     subi r24, 0xFF   ; subtracting 255 form the r24 index, that means adding +1 +8f 5f     subi r24, 0xFF ; subtracting 255 form the r24 index, that means adding +1 
-84 36     cpi  r24, 0x64   ; comparing r24 index with number 100 +84 36     cpi  r24, 0x64 ; comparing r24 index with number 100 
-e1 f7     brne .-8         ; If the comparison was wrong, then transfer 8-baits back+e1 f7     brne .-8       ; If the comparison was wrong, then transfer 8-baits back
 </code> </code>
  
en/examples/timer/software_delay.1271143034.txt.gz · Last modified: 2020/07/20 09:00 (external edit)
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0