!!!!!!!!!!help me please!!!!!!!!!!!! 
Author Message
 !!!!!!!!!!help me please!!!!!!!!!!!!

Please help me to solve these four question !!!!  Thanks a lot!!!!!!!
I appreciated for this!!!!!!!!!!!1
1.  Given the intruction MUL CL with CL containing 6 decimal , write a
series of instructions that produce the same result without using the
MUL instruction

2.  The AX register contains the number 7 Write an instruction that
sets the sign bit in AX and clears to zero bits  one and two.

3.  The JMP instruction begins at OFFSET location 0624H. Determine the
transfer address based on the following object code for the JMP
operand.
                     JMP  label
                     MOV  AX,06H
                     LEA   SI, label
            label  NOP

4. Write as program that reads in a string ,less than 80 char in
length and determine the number of vowel char , "a" ,"e" ,"i" ,"o"
,"u" either upper or lower case. Display the result ,a number , on the
display screen.Write all necessary  code ready for assembly .



Wed, 25 Aug 1999 03:00:00 GMT  
 !!!!!!!!!!help me please!!!!!!!!!!!!

You can't even read the name of the group and you want to be a programmer?
Programming requires a certain degree of literacy.

Jonathan



Quote:
> Please help me to solve these four question !!!!  Thanks a lot!!!!!!!
> I appreciated for this!!!!!!!!!!!1
> 1.  Given the intruction MUL CL with CL containing 6 decimal , write a
> series of instructions that produce the same result without using the
> MUL instruction

> 2.  The AX register contains the number 7 Write an instruction that
> sets the sign bit in AX and clears to zero bits  one and two.

> 3.  The JMP instruction begins at OFFSET location 0624H. Determine the
> transfer address based on the following object code for the JMP
> operand.
>                      JMP  label
>                      MOV  AX,06H
>                      LEA   SI, label
>             label  NOP

> 4. Write as program that reads in a string ,less than 80 char in
> length and determine the number of vowel char , "a" ,"e" ,"i" ,"o"
> ,"u" either upper or lower case. Display the result ,a number , on the
> display screen.Write all necessary  code ready for assembly .



Sun, 29 Aug 1999 03:00:00 GMT  
 !!!!!!!!!!help me please!!!!!!!!!!!!

Quote:

> Please help me to solve these four question !!!!  Thanks a lot!!!!!!!
> I appreciated for this!!!!!!!!!!!1
> 1.  Given the intruction MUL CL with CL containing 6 decimal , write a

Boy, are you in the wrong newsgroup!  You'll have to look elsewhere for
someone to do your homework for you.


Sun, 29 Aug 1999 03:00:00 GMT  
 !!!!!!!!!!help me please!!!!!!!!!!!!


says...

Quote:

>Please help me to solve these four question !!!!  Thanks a lot!!!!!!!
>I appreciated for this!!!!!!!!!!!1
>1.  Given the intruction MUL CL with CL containing 6 decimal , write a
>series of instructions that produce the same result without using the
>MUL instruction

>2.  The AX register contains the number 7 Write an instruction that
>sets the sign bit in AX and clears to zero bits  one and two.

>3.  The JMP instruction begins at OFFSET location 0624H. Determine the
>transfer address based on the following object code for the JMP
>operand.
>                     JMP  label
>                     MOV  AX,06H
>                     LEA   SI, label
>            label  NOP

>4. Write as program that reads in a string ,less than 80 char in
>length and determine the number of vowel char , "a" ,"e" ,"i" ,"o"
>,"u" either upper or lower case. Display the result ,a number , on the
>display screen.Write all necessary  code ready for assembly .

This is an excellent example of Degree vs. Experience.  I have worked with
newly graduated, Degree-toting programmers many times in the past and this is
usually their approach when they face a new problem ... turn to the person in
the next cubicle and ask for the solution.  At least this person has
attempted to find a higher level of help than the nearest available person.  
Too bad they can't discern the difference between Intel assembler and 370
assembler.

--
Regards,
Jay Moseley, CCP
----------------



Mon, 30 Aug 1999 03:00:00 GMT  
 !!!!!!!!!!help me please!!!!!!!!!!!!


:>Please help me to solve these four question !!!!  Thanks a lot!!!!!!!
:>I appreciated for this!!!!!!!!!!!1

I will give you the answers in 370 assembler.

:>1.  Given the intruction MUL CL with CL containing 6 decimal , write a
:>series of instructions that produce the same result without using the
:>MUL instruction

                SR     DX,DX
      LOOP      LA     BX,1
                OR     BX,CL
                BZ     *+4+2
                AR     DX,AL
                SLL    AX,1
                SRA    CL,1
                BNZ    LOOP                          

:>2.  The AX register contains the number 7 Write an instruction that
:>sets the sign bit in AX and clears to zero bits  one and two.

I need two instructions.
                    O       AX,=X'80000000'
                    N       AX,=X'9FFFFFFF'

:>3.  The JMP instruction begins at OFFSET location 0624H. Determine the
:>transfer address based on the following object code for the JMP
:>operand.
:>                     JMP  label
:>                     MOV  AX,06H
:>                     LEA   SI, label
:>            label  NOP

Sorry. Can't port the above to S/370.

:>4. Write as program that reads in a string ,less than 80 char in
:>length and determine the number of vowel char , "a" ,"e" ,"i" ,"o"
:>,"u" either upper or lower case. Display the result ,a number , on the
:>display screen.Write all necessary  code ready for assembly .

                   XC    STRING,STRING
                   TGET  STRING,L'STRING,EDIT,WAIT
                   LA    DX,STRING-1(R1)  Point to last characher entered
                   LA    AX,STRING
        LOOP       LR    BX,DX
                   SR    BX,AX         Remaining length
                   BM    DONE        
                   EX    BX,TRT
                   BZ    DONE
                   AP    COUNT,=P'1'
                   LA    AX,1(,R1)
                   B     LOOP
        DONE       UNPK  NUMBER,COUNT
                   OI    NUMBER+L'NUMBER-1,C'0'
                   TPUT  NUMBER,L'NUMBER,EDIT,WAIT
                   .
                   .
                   .
        TRT        TRT   0(*-*,AX),VOWELTAB
        VOWELTAB   DC    256X'00'
                   ORG   VOWELTAB+C'a'
                   DC    X'04'
                   ORG   VOWELTAB+C'e'
                   DC    X'04'
                   ORG   VOWELTAB+C'i'
                   DC    X'04'
                   ORG   VOWELTAB+C'o'
                   DC    X'04'
                   ORG   VOWELTAB+C'u'
                   DC    X'04'
                   ORG   VOWELTAB+C'A'
                   DC    X'04'
                   ORG   VOWELTAB+C'E'
                   DC    X'04'
                   ORG   VOWELTAB+C'I'
                   DC    X'04'
                   ORG   VOWELTAB+C'O'
                   DC    X'04'
                   ORG   VOWELTAB+C'U'
                   DC    X'04'
       STRING      DS    CL80
       COUNT       DC    PL2'0'
       NUMBER      DS    ZL3

Now that was fun.  

--


Director, Dissen Software, Bar & Grill - Israel



Mon, 30 Aug 1999 03:00:00 GMT  
 !!!!!!!!!!help me please!!!!!!!!!!!!

Quote:


> :>Please help me to solve these four question !!!!  Thanks a lot!!!!!!!
> :>I appreciated for this!!!!!!!!!!!1

> I will give you the answers in 370 assembler.

> :>1.  Given the intruction MUL CL with CL containing 6 decimal , write a
> :>series of instructions that produce the same result without using the
> :>MUL instruction

>                 SR     DX,DX
>       LOOP      LA     BX,1
>                 OR     BX,CL
>                 BZ     *+4+2
>                 AR     DX,AL
>                 SLL    AX,1
>                 SRA    CL,1
>                 BNZ    LOOP

> :>2.  The AX register contains the number 7 Write an instruction that
> :>sets the sign bit in AX and clears to zero bits  one and two.

> I need two instructions.
>                     O       AX,=X'80000000'
>                     N       AX,=X'9FFFFFFF'

> :>3.  The JMP instruction begins at OFFSET location 0624H. Determine the
> :>transfer address based on the following object code for the JMP
> :>operand.
> :>                     JMP  label
> :>                     MOV  AX,06H
> :>                     LEA   SI, label
> :>            label  NOP

> Sorry. Can't port the above to S/370.

> :>4. Write as program that reads in a string ,less than 80 char in
> :>length and determine the number of vowel char , "a" ,"e" ,"i" ,"o"
> :>,"u" either upper or lower case. Display the result ,a number , on the
> :>display screen.Write all necessary  code ready for assembly .

>                    XC    STRING,STRING
>                    TGET  STRING,L'STRING,EDIT,WAIT
>                    LA    DX,STRING-1(R1)  Point to last characher entered
>                    LA    AX,STRING
>         LOOP       LR    BX,DX
>                    SR    BX,AX         Remaining length
>                    BM    DONE
>                    EX    BX,TRT
>                    BZ    DONE
>                    AP    COUNT,=P'1'
>                    LA    AX,1(,R1)
>                    B     LOOP
>         DONE       UNPK  NUMBER,COUNT
>                    OI    NUMBER+L'NUMBER-1,C'0'
>                    TPUT  NUMBER,L'NUMBER,EDIT,WAIT
>                    .
>                    .
>                    .
>         TRT        TRT   0(*-*,AX),VOWELTAB
>         VOWELTAB   DC    256X'00'
>                    ORG   VOWELTAB+C'a'
>                    DC    X'04'
>                    ORG   VOWELTAB+C'e'
>                    DC    X'04'
>                    ORG   VOWELTAB+C'i'
>                    DC    X'04'
>                    ORG   VOWELTAB+C'o'
>                    DC    X'04'
>                    ORG   VOWELTAB+C'u'
>                    DC    X'04'
>                    ORG   VOWELTAB+C'A'
>                    DC    X'04'
>                    ORG   VOWELTAB+C'E'
>                    DC    X'04'
>                    ORG   VOWELTAB+C'I'
>                    DC    X'04'
>                    ORG   VOWELTAB+C'O'
>                    DC    X'04'
>                    ORG   VOWELTAB+C'U'
>                    DC    X'04'
>        STRING      DS    CL80
>        COUNT       DC    PL2'0'
>        NUMBER      DS    ZL3

> Now that was fun.

> --


> Director, Dissen Software, Bar & Grill - Israel

Don't you want an "  ORG  ,  " right before "STRING   DS  80"?

I especially liked the part about "bits one and two".

BR



Mon, 30 Aug 1999 03:00:00 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. VSE 3.1 Repository Problem: Please help (please please?)

2. help please-----please help about array in DLL

3. ***HELP***HELP***HELP***Please.

4. HELP HELP HELP PLEASE Ordinal Function

5. Help Help Help Please

6. regex help please please !

7. Help me please, please!!

8. Printing large text fields in cw1.5 help help please

9. i need help to modify my cobol program can someone help soon please

10. COBOL HELP NEEDED, PLEASE HELP ME!

11. HELP HELP Please .Problems with freewrap

12. Web Services help needed please

 

 
Powered by phpBB® Forum Software