Re: pilne tlumaczenie z angielskiego (programistyczne)
: 08 cze 2005, 14:22
Witam. Potrzebuje pilnie tlumaczenie ponizszego tekstu z angielskiego na polski. Dodam ze jest to komentarz programu napisanego w assemblerze. Wszelka pomoc przyjmuje na maila lcd@BEZTEGO.interia.pl (napis BEZTEGO. oczywiscie usunac). Oczywiscie teksty w stylu "jumb to start output" mozna pominac, angielski troche znam, ale potrzebuje kontekstu calosci: "o co chodzi" i co to robi. Z gory dziekuje za tlumaczenie
Tekst do przetlumaczenia:
; put input count to ax
mov cx,1 ; assuming output of one hex char
cmp ax,4 ; compare input count to 4
jg Check1 ; jump if more than 4 char entered
shl bx,12 ; since only 4 entered, shift out other 12
jmp Ready ; jump to start output
Check1: mov cx,2 ; assuming output of two hex char
cmp ax,8 ; compare input count to 8
jg Check2 ; jump if more that 8 char entered
shl bx,8 ; since only 8 char entered, shift out 8
jmp Ready ; jump to start output
Check2: mov cx,3 ; assuming output of three hex char
cmp ax,12 ; compare input count to 12
jg Check3 ; jump if more than 12 char entered
shl bx,4 ; shift out the remaining 4
jmp Ready ; jump to start output
Check3: mov cx,4 ; this means input count > 12
Repeat1: mov dl,bh ; Get the High 4 Bits
shr dl,4 ; Low 4 Bits of DL are shifted out
cmp dl,9
jg Letter1 ; If DL>9, it is a letter
or dl,30h ; else get ASCII code of Digit
jmp Print1 ; jump to print the char
Tekst do przetlumaczenia:
; put input count to ax
mov cx,1 ; assuming output of one hex char
cmp ax,4 ; compare input count to 4
jg Check1 ; jump if more than 4 char entered
shl bx,12 ; since only 4 entered, shift out other 12
jmp Ready ; jump to start output
Check1: mov cx,2 ; assuming output of two hex char
cmp ax,8 ; compare input count to 8
jg Check2 ; jump if more that 8 char entered
shl bx,8 ; since only 8 char entered, shift out 8
jmp Ready ; jump to start output
Check2: mov cx,3 ; assuming output of three hex char
cmp ax,12 ; compare input count to 12
jg Check3 ; jump if more than 12 char entered
shl bx,4 ; shift out the remaining 4
jmp Ready ; jump to start output
Check3: mov cx,4 ; this means input count > 12
Repeat1: mov dl,bh ; Get the High 4 Bits
shr dl,4 ; Low 4 Bits of DL are shifted out
cmp dl,9
jg Letter1 ; If DL>9, it is a letter
or dl,30h ; else get ASCII code of Digit
jmp Print1 ; jump to print the char