Seite 4
Prof. J. WALTER   Kurstitel  Stand: Januar 2000
Abbildung Tabelle-Programm
·ABFRAGE:
·mov A,P1 ;Liest Port 0 ein
·anl A,#00000110B ;Blendet die ;vorderen Bits aus
·rr A ;shiftet nach rechts
·cpl ACC.0 ;invertiert 0-tes Bit
·cpl ACC.1 ;invertiert 1-tes Bit
·inc A ;Um 1 erhöhen
·djnz ACC,NFALL0 ;Dekremtiert und springt ;bei A ungleich 0