Mit Animation (PDF) - Digitaltechnik
Mit Animation (PDF) - Digitaltechnik
Mit Animation (PDF) - Digitaltechnik
Sie wollen auch ein ePaper? Erhöhen Sie die Reichweite Ihrer Titel.
YUMPU macht aus Druck-PDFs automatisch weboptimierte ePaper, die Google liebt.
Beispiel Sprungbefehle<br />
5<br />
s t a r t sub esi , e s i ; Arrayindex<br />
mov edx , [BYTE Intmax+e s i ] ; Minimum<br />
mov ecx , [BYTE Top+e s i ] ; Oberster Index<br />
sub ebx , ebx ; Zaehler<br />
L mov eax , ebx<br />
sub eax , ecx<br />
jae end ; Zaehler>=Top?<br />
10 mov esi , ebx<br />
mov edi , [BYTE Array+e s i ] ; e d i := array [ ebx ]<br />
mov eax , edi<br />
sub eax , edx<br />
15 jge s k i p ; array [ ebx]>=Minimum?<br />
mov edx , edi ; Minimum:= array [ ebx ]<br />
s k i p sub esi , e s i<br />
20 mov eax , [BYTE Four+e s i ]<br />
add ebx , eax ; Zaehler+=4<br />
25 end hlt<br />
jmp near L<br />
<strong>Digitaltechnik</strong> – Kapitel 7: Ein einfacher CISC-Prozessor 71