Logo 
Search:

Assembly Language Forum

Ask Question   UnAnswered
Home » Forum » Assembly Language       RSS Feeds

Write assembly language - enter string, display, convert from upper to lower case

  Asked By: Fara    Date: Dec 07    Category: Assembly Language    Views: 2354
  

Hi All,

I'm stuck on how to write a proper code to enter string, display entered string, convert entered string in upper case to lower case and removed non-alphabetic characters and character counts (in binary).

I have to use emu8086.inc library common function but Im not sure how to convert the code below to accept string instead of number/integer. Anybody willing to guide further on this matter? Thank you in advance.


Code (as below):

include 'emu8086.inc'

ORG 100h

LEA SI, msg1
CALL print_string
CALL scan_num

MOV AX, CX

; print the following string:
CALL pthis
DB 13, 10, 'You have entered: ', 0

CALL print_num

RET

msg1 DB 'Enter the number: ', 0

DEFINE_SCAN_NUM
DEFINE_PRINT_STRING
DEFINE_PRINT_NUM
DEFINE_PRINT_NUM_UNS
DEFINE_PTHIS
END

Share: 

 

No Answers Found. Be the First, To Post Answer.

 




Tagged: