summaryrefslogtreecommitdiff
path: root/sem2/lab5/resident.asm
diff options
context:
space:
mode:
authorAndrew <saintruler@gmail.com>2020-10-22 21:03:24 +0400
committerAndrew <saintruler@gmail.com>2020-10-22 21:03:24 +0400
commit143f34d941f32e0808fc9344d4c4126ff530d64a (patch)
treec79fcf309ad00e52100c0da544d96d3cc6ab6617 /sem2/lab5/resident.asm
Добавил решения второго семестра
Diffstat (limited to 'sem2/lab5/resident.asm')
-rw-r--r--sem2/lab5/resident.asm30
1 files changed, 30 insertions, 0 deletions
diff --git a/sem2/lab5/resident.asm b/sem2/lab5/resident.asm
new file mode 100644
index 0000000..4c7914c
--- /dev/null
+++ b/sem2/lab5/resident.asm
@@ -0,0 +1,30 @@
+.model tiny
+.code
+.startup
+
+jmp Init
+
+Msg db 'Resident module installed!',10,13,'$'
+Old_09h dw 0,0
+
+New09h:
+mov ah, 02h
+mov dl, 'A'
+int 21h
+jmp dword ptr cs:Old_09h
+
+Init:
+mov ah, 09h
+mov dx, offset Msg
+int 21h
+mov ax, 3509h
+int 21h
+mov Old_09h, bx
+mov Old_09h+2, es
+mov ax, 2509h
+lea dx, New09h
+int 21h
+lea dx, Init
+int 27h
+
+end \ No newline at end of file