summaryrefslogtreecommitdiff
path: root/sem2/lab5/jee.asm
blob: 233abc64c5fb5e7f3719007fe3d501562c8d32e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
.model tiny
.code
.startup

jmp Init

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

end