hai.,. I'm struggling now to solve this problem., I could not able to save the string inputed by the user., the emulator responces error:
INT 21h, AH=09h -
address: 07140
byte 24h not found after 2000 bytes.
; correct example of INT 21h/9h:
mov dx, offset msg
mov ah, 9
int 21h
ret
msg db "Hello$
I only have 1 hr left to solver this., I really need help.,
Assembly is realy different from Java and vb which i also used..but now in string manipulation just takes me overnight and still does'nt work
; You may customize this and other start-up templates;
; The location of this template is c:\emu8086\inc\0_com_template.txt
name "Lab_exercise"
org 100h
; add your code here
.model small
;filename db 30,?, 30 dup(' ')
name db $,<' '>
.stack 200
.data
msg1 db " Enter your name: " , "$"
msg2 db " Enter your address: ","$"
msg3 db " Enter your school: " ,"$"
thename db 20 DUP <' '>
para_list LABEL BYTE
.code
Main PROC
HouseKeeping:
mov ax,@data
mov ds,ax
Prompt:
;prompt the user to input name
lea dx,msg1
mov ah,9
int 21h
mov ah, 06h
mov al,00h
int 10h
GetWord:
;user input text
mov ah,0ah
lea dx,para_list
int 21h
mov thename,al
;set cursor position for input address
;mov dh,1
;mov dl,0
; mov ah,02
;int 10h
; lea dx,msg1
;mov ah,9
;int 21h
;user input text
;mov ah,0ah
;int 21h
lea dx,thename
mov ah,9
int 21h
;mov ah,00h
;int 16h
;mov ah, 0eh
;int 10h
;wait for any key
mov ah,0
int 16h
end
ret