Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Feb 23rd, 2010  |  syntax: ASM (NASM)  |  size: 0.41 KB  |  hits: 157  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. .INCLUDE "m16def.inc"
  2. .CSEG
  3. .ORG 0000
  4. RJMP RESET
  5. RJMP TRYCK
  6. RETI
  7. RETI
  8. RETI
  9. RETI
  10. RETI
  11. RETI
  12. RETI
  13. RETI
  14. RETI
  15. RETI
  16. RETI
  17. RETI
  18. RJMP KLAR
  19.  
  20. RESET;
  21. LDI R16,LOW(RAMEND)
  22. OUT SPL,R16
  23. LDI R16,HIGH(RAMEND)
  24. OUT SPH,R16
  25. LDI R16,0b10001011
  26. OUT ADCSRA,R16
  27. LDI R16,0b11100000
  28. OUT ADMUX,R16
  29. LDI R16, 0b0100000
  30. OUT MCUCR,R16
  31. SEI
  32. RETI
  33.  
  34. TRYCK:
  35. SBI ADCSRA,6
  36. RETI
  37.  
  38. KLAR:
  39. IN R16,ADCH
  40. OUt PORTB,R16
  41. RETI