From 8ad7cfa0da6f786e0af749461e1f6a0b4eb20a73 Mon Sep 17 00:00:00 2001 From: Andrew Guschin Date: Sat, 19 Dec 2020 04:11:30 +0400 Subject: =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20=D1=84?= =?UTF-8?q?=D0=B0=D0=B9=D0=BB=D1=8B=20=D1=80=D0=B5=D1=88=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F=20=D0=B7=D0=B0=D0=B4=D0=B0=D1=87=20=D0=B8=D0=B7=204=20?= =?UTF-8?q?=D0=B8=205=20=D0=BB=D0=B0=D0=B1=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sem3/task4/lab4_3.asm | 21 +++++++++++++++++++++ sem3/task5/lab5_1.asm | 12 ++++++++++++ sem3/task5/lab5_2.asm | 31 +++++++++++++++++++++++++++++++ 3 files changed, 64 insertions(+) create mode 100644 sem3/task4/lab4_3.asm create mode 100644 sem3/task5/lab5_1.asm create mode 100644 sem3/task5/lab5_2.asm (limited to 'sem3') 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 -- cgit v1.2.3