Commits

Jasper Schulz committed fd3eab5

added hgignore

  • Participants
  • Parent commits bb537ef

Comments (0)

Files changed (2)

+
+syntax: glob
+
+*.L68
 *-----------------------------------------------------------
-* Program    :
-* Written by :
-* Date       :
-* Description:
+* Program    : Multiplizierer
+* Written by : Christian Müller, Jasper Schulz
+* Date       : 28.01.2010
+* Description: Abgabe der praktischen Übung 4 GdS
 *-----------------------------------------------------------
+
+
 START	ORG	$1000
 
 	MOVE.B	#9, D1
 	MOVE.B	#3, D2
+	
+	*Aufruf des Multiplizierers
 	JSR	MUL
 
+	*Ende des Programms
 	MOVE.B	#9,D0
 	TRAP	#15		; halt simulator
 
 
+
+*Multiplizier-Routine
+*D1, D2 -> D0
 MUL	CLR	D0 *Initialisiere Summenspeicher
-
+	
 LOOP	LSR	#1, D2 *letzte Stelle von D2 extrahieren
-	BCC	CH_RTS *war D2 leer?
+	BCC	CHECK *war 0?
 	ADD	D1, D0 *zur Summe hinzufuegen
-
-SHIFT	LSL 	#1, D1 *D1*=2
+	BRA	SHIFTD1
+CHECK	BNE	SHIFTD1
+	RTS
+	
+SHIFTD1	LSL 	#1, D1 *D1*=2
 	BRA	LOOP
-	
-CH_RTS	RTS
-	BNE SHIFT
-	RTS
 
 	END	START
+
+
+*~Font name~Courier New~
+*~Font size~10~
+*~Tab type~1~
+*~Tab size~8~