summaryrefslogtreecommitdiffstats
path: root/Bachelor/Mikroprozessorsysteme1/Praktikum3/P3_2.BAK
diff options
context:
space:
mode:
Diffstat (limited to 'Bachelor/Mikroprozessorsysteme1/Praktikum3/P3_2.BAK')
-rw-r--r--Bachelor/Mikroprozessorsysteme1/Praktikum3/P3_2.BAK42
1 files changed, 42 insertions, 0 deletions
diff --git a/Bachelor/Mikroprozessorsysteme1/Praktikum3/P3_2.BAK b/Bachelor/Mikroprozessorsysteme1/Praktikum3/P3_2.BAK
new file mode 100644
index 0000000..347d609
--- /dev/null
+++ b/Bachelor/Mikroprozessorsysteme1/Praktikum3/P3_2.BAK
@@ -0,0 +1,42 @@
+;Sven Eisenhauer
+;MPS1 Versuch 3 Aufgabe 2
+;14.06.2005
+
+LSTOUT-
+$SFR80515.INC
+LSTOUT+
+
+ORG 0000h
+
+SETB P1.0
+MOV DPTR,#0F803h
+MOV A,#92h
+MOVX @DPTR,A
+MOV DPTR,#0F802h
+
+MOV A,#00h
+MOVX @DPTR,A
+MOV P5,#00h
+MOV R5,#00h
+
+WARTE: JNB P1.0,WARTE
+INC R5
+
+LCALL PORTS
+SJMP WARTE
+
+PORTS: MOV A,R5
+ CJNE A,#0FFh,CARRY
+CARRY: JC HIGHBYTE
+ MOV P5,R5
+ RET
+HIGHBYTE: MOV A,R5
+ MOVX @DPTR,A
+ RET
+
+SENDSE: MOV SBUF,A
+ CLR TI
+WARTE: JNB TI, WARTE
+ RET
+
+END