diff options
Diffstat (limited to 'sem3/task5')
| -rw-r--r-- | sem3/task5/lab5_1.asm | 12 | ||||
| -rw-r--r-- | sem3/task5/lab5_2.asm | 31 |
2 files changed, 43 insertions, 0 deletions
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 |