.model small
.stack 64
.data
select db"Enter the your desired option$"
msg1 db "[1]display box and your name$"
msg2 db "[2]enter your name$"
msg3 db "[3]display d to l$"
msg4 db "[4]exit$"
msg5 db "JOSEPHINE P.VINAS$"
.code
mov ax,@data
mov ds,ax
mov ax,0003h
int 10h
mov ah,02
mov dh,0
mov dl,25
int 10h
mov ah, 09h
lea dx, select
int 21h
mov ah,02
mov dh,3
mov dl,5
int 10h
mov ah, 09h
lea dx, msg1
int 21h
mov ah,02
mov dh,4
mov dl,5
int 10h
mov ah, 09h
lea dx, msg2
int 21h
mov ah,02
mov dh,5
mov dl,5
int 10h
mov ah, 09h
lea dx, msg3
int 21h
mov ah,02
mov dh,6
mov dl,5
int 10h
mov ah, 09h
lea dx, msg4
int 21h
mov ah,02
mov dh,1
mov dl,40
int 10h
mov ah,0ah
int 21h
cmp al,'1'
je boxandyourname
cmp al,'2'
je enteryourname
cmp al,'3'
je displayDtoL
jmp exit
;--------------box code------------------------------------…
boxandyourname:
mov ah,02h
mov dh,12
mov dl,30
int 10h
mov ah,09h
mov al,'_'
mov bl,1eh
mov cx,10
int 10h
mov ah,02h
mov dh,17
mov dl,30
int 10h
mov ah,09h
mov al,'_'
mov bl,1eh
mov cx,10
int 10h
mov ah,02h
mov dh,13
mov dl,30
int 10h
mov ah,09h
mov al,'|'
mov bl,1eh
mov cx,1
int 10h
mov ah,02h
mov dh,14
mov dl,30
int 10h
mov ah,09h
mov al,'|'
mov bl,1eh
mov cx,1
int 10h
mov ah,02h
mov dh,15
mov dl,30
int 10h
mov ah,09h
mov al,'|'
mov bl,1eh
mov cx,1
int 10h
mov ah,02h
mov dh,16
mov dl,30
int 10h
mov ah,09h
mov al,'|'
mov bl,1eh
mov cx,1
int 10h
mov ah,02h
mov dh,17
mov dl,30
int 10h
mov ah,09h
mov al,'|'
mov bl,1eh
mov cx,1
int 10h
mov ah,02h
mov dh,13
mov dl,39
int 10h
mov ah,09h
mov al,'|'
mov bl,1eh
mov cx,1
int 10h
mov ah,02h
mov dh,14
mov dl,39
int 10h
mov ah,09h
mov al,'|'
mov bl,1eh
mov cx,1
int 10h
mov ah,02h
mov dh,15
mov dl,39
int 10h
mov ah,09h
mov al,'|'
mov bl,1eh
mov cx,1
int 10h
mov ah,02h
mov dh,16
mov dl,39
int 10h
mov ah,09h
mov al,'|'
mov bl,1eh
mov cx,1
int 10h
mov ah,02h
mov dh,17
mov dl,39
int 10h
mov ah,09h
mov al,'|'
mov bl,1eh
mov cx,1
int 10h
;-------------------name under box-------------------------------------…
mov ah,02
mov dh,20
mov dl,27
int 10h
mov ah, 09h
lea dx, msg5
int 21h
jmp exit
;--------------------enter your name------------------------------------…
enteryourname:
mov ah,02
mov dh,15
mov dl,30
int 10h
mov ah,0ah
int 21h
jmp exit
;----------display d to L----------------------------------
displayDtoL:
mov ah,02
mov dh,10
mov dl,30
int 10h
mov ah,02h
mov cx,9
mov dl,'D'
X:
int 21h
inc dl
loop X
exit:
mov ah, 4ch
int 21h ;end of program
end
why I cannot out put this code it says "relative jump out of range"