diff options
| author | Andrew Guschin <saintruler@gmail.com> | 2020-12-19 04:11:30 +0400 |
|---|---|---|
| committer | Andrew Guschin <saintruler@gmail.com> | 2020-12-19 04:11:30 +0400 |
| commit | 8ad7cfa0da6f786e0af749461e1f6a0b4eb20a73 (patch) | |
| tree | 451f8731d44b78abec98feee7dadc7c4fff6fa97 | |
| parent | 3d010c53599db79f391a567ddf661c766c7412b6 (diff) | |
| -rw-r--r-- | sem3/task4/lab4_3.asm | 21 | ||||
| -rw-r--r-- | sem3/task5/lab5_1.asm | 12 | ||||
| -rw-r--r-- | sem3/task5/lab5_2.asm | 31 |
3 files changed, 64 insertions, 0 deletions
diff --git a/sem3/task4/lab4_3.asm b/sem3/task4/lab4_3.asm new file mode 100644 index 0000000..1507385 --- /dev/null +++ b/sem3/task4/lab4_3.asm @@ -0,0 +1,21 @@ +mov ah,01 +int 21 +cmp al,39 +jle 010a +sub al,7 +sub al,30 + +mov dl,al +mov cl,4 +shl dl,cl + +mov ah,01 +int 21 +cmp al,39 +jle 011c +sub al,7 +sub al,30 + +add al,dl +mov bl,al +int 20
\ No newline at end of file diff --git a/sem3/task5/lab5_1.asm b/sem3/task5/lab5_1.asm new file mode 100644 index 0000000..f75b039 --- /dev/null +++ b/sem3/task5/lab5_1.asm @@ -0,0 +1,12 @@ +200: +mov ah,02 +int 21 +inc dx +ret + +100: +mov dx,32 +mov cx,14 +call 200 +loop 106 +int 20
\ No newline at end of file diff --git a/sem3/task5/lab5_2.asm b/sem3/task5/lab5_2.asm new file mode 100644 index 0000000..d5d71de --- /dev/null +++ b/sem3/task5/lab5_2.asm @@ -0,0 +1,31 @@ +200: +mov ah,01 +int 21 +cmp al,39 +jle 020a +sub al,7 +sub al,30 +mov dl,al +mov cl,4 +shl dl,cl +mov ah,01 +int 21 +cmp al,39 +jle 021c +sub al,7 +sub al,30 +add al,dl +mov bl,al +ret + +100: +mov cx,a +push cx +call 200 +pop cx +mov bh,0 +push bx +mov ah,01 +int 21 +loop 103 +int 20
\ No newline at end of file |