Don't like ads? PRO users don't see any ads ;-)
Guest

Per Annachiara - Il Main

By: a guest on Jul 5th, 2012  |  syntax: ASM (NASM)  |  size: 0.36 KB  |  hits: 21  |  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. main:
  2.     call    Init
  3.     ;== Ecco l'aggiunta, ci spostiamo sul primo banco, avviamo la conversione
  4.     ;== e resettiamo il bit ADIF
  5.     banksel PIR1
  6.     bsf     ADCON0, 1   ; Go/Done
  7.     bcf     PIR1 , ADIF
  8.     ;====================================
  9.     movf    _cur, W
  10.     subwf   _new
  11.     btfsc   STATUS, Z
  12.     call    Calc_And_Send
  13.     goto    $-4