SHARE
TWEET

counter.z80

a guest Jan 14th, 2020 126 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; programa 2
  2. ; counter
  3.  
  4.         .org    00h     ; vetor de reset
  5.  
  6.         ld  A, 00h      ; carrega 00h no acumulador    
  7.  
  8. loop:   adc A, 01h      ; soma 1 ao registrador A       (inc A ;incrementa o registrador A em 1)       
  9.         jnc cont        ; se não tiver o carry continua
  10.         ld  A, 00h
  11.  
  12. cont:   out (0FFh),A    ; envia o valor A para a saida
  13.    
  14.         jr  loop
  15.  
  16.         .end            ; termina o programa
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top