Go4Expert (http://www.go4expert.com/)
-   Assembly Language Programming (ALP) Forum (http://www.go4expert.com/forums/assembly-language-programming-forum/)
-   -   help needed wid 8085 alp! (http://www.go4expert.com/forums/help-wid-8085-alp-t5995/)

12341234 23Aug2007 14:10

help needed wid 8085 alp!
i want solution for these!
i m beginner in alp.

1. A program in 8085 assembly language to store EFH in following registers
Registers: B,C,D,H,L
(using only MOV & MVI instructions)

DaWei 23Aug2007 16:53

Re: help needed wid 8085 alp!
Before you make a query...

duynguyenvan 28Aug2007 14:52

Re: help needed wid 8085 alp!
Could you pls help me answer this question:
- Please take a look at my small Assembly program that reads a tring from keyboard, then displays all the characters that are not uper-case letters in reverse order:

.model small
.stack 100
        tb1 db 'Pls enter a string, enter to finish $'
        tb2 db 10,13,'The characters that are not uper-case : $'
        xau db 80 dup(?)
Main proc
        mov ax,@data
        mov ds, ax
        mov es, ax
        mov ah,9
        lea dx,tb1
        int 21h
        xor cx,cx
        lea di,xau
nhap:        mov ah,1
        int 21h
        cmp al,13
        je thoi
        cmp al,'A'
        jb dung
        cmp al,'Z'
        ja dung
        jmp nhap
dung:        stosb
        inc cx
        jmp nhap
thoi:        mov ah,9
        lea dx,tb2
        int 21h
        dec di
        mov si,di
        mov ah,2
quay:        lodsb       
        mov dl,al
        int 21h
        loop quay
        mov ah,4ch
        int 21h
Main endp
        End main

The code above runs very well, even though i did not use the Clear Direction Flag (cld) instruction after the instruction in red (lea di,xau)
The string processing is still in forward direction.
The question is that: Why?

I appreciate your help.


Duy V. Nguyen
ODWME/Bluebird Project Leader- GPSG - IBM
Summers, NY 10589-3216
United States

shabbir 28Aug2007 15:28

Re: help needed wid 8085 alp!
duynguyenvan you already have a thread - I need help !!!!!!!!!!!!!!!!!!!!!!!!!! for your query.

All times are GMT +5.5. The time now is 04:12.