Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Other Programming > Assembly Language
| Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Assembly Language section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old November 13th, 2006, 10:12 AM
Registered User
 
Join Date: Nov 2006
Location: , , Australia.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to bravooo
Default CAN SOMEONE PLEASEEE HELP ASAP!

I have this question that i am unable to solve at all... can anyone please help urgently!!!

Draw a flow chart and write a single assembly language program that will meet the following requirements:

Requirement 1:
Allow the user to enter a string of up to 100 characters. You must echo each character to the screen and store it in memory as it is typed. The user will press Enter to terminate the input (INCH returns cr in this case). You must terminate the string in memory with a null character.

Requirement 2:
Once the user has terminated the string, you must loop through the string stored in memory and count the number of words that appear in the string. For the purposes of this count, a word is defined as any series of alphanumeric characters (a–z, A–Z and 0–9).
E.g. ‘Fred can, run!?!’ contains 3 words (‘Fred’, ‘can’ and ‘run’).
E.g. ‘What’s that’ also contains 3 words (‘What’, ‘s’ and ‘that’).
E.g. ‘$AU 123.466’ also contains 3 words (‘AU’, ‘123’ and ‘466’).

Requirement 3:
You are also required to keep the position of the first character of longest word in the string. In the case that multiple words are of the same length, you must keep the position of the first occurrence of a word of that length. E.g. ‘This is a short word’ must maintain a pointer to ‘short’. E.g. ‘A long sentence contains long words’ must maintain the first position of ‘sentence’.

Requirement 4:
Once the loop has been completed you must display both the number of words (in multidigit hexadecimal) and the longest word on the screen with an appropriate message, e.g. There were 3 words in the string.
The longest word was: fred

Requirement 5:
You are required to make use of subroutines and parameter passing for this assignment. At a minimum you must have subroutines to perform the following tasks:
· print a string of characters at a passed memory address (terminated with a null character)
· print an integer in multi-digit hexadecimal
· print a single character to the screen (OUTCH)
· retrieve a single character from the keyboard (INCH)
You must pass the parameters to the first two subroutines on the stack. You do not need to utilise the stack for the last two subroutines.


Thanks to who will help me and really appreciate it if you could please email me at jtmarcus@tpg.com.au thanks heaps agian.

  #2 (permalink)  
Old November 16th, 2006, 07:28 PM
Registered User
 
Join Date: Nov 2006
Location: , , Australia.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to bravooo
Default

Is there any out there that can help..... plzzzzzzzzzzzzzzzz!

  #3 (permalink)  
Old December 1st, 2006, 04:44 PM
Wrox Author
 
Join Date: Dec 2006
Location: kirkland, wa, USA.
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You dont provide enough info, and asking for help with your course homework isnt really a good use of the forum.

What processor does this need to run on, what environment (OS) does it run under, and what assembler are you using are three important questions you havent provided answers to.



Steve Wort
Co Author "Professional SQL Server 2005 Administration"


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help ASAP coding C# 1 June 6th, 2007 12:41 AM
NEED HELP ASAP surethg JSP Basics 1 January 21st, 2006 07:07 PM
Help ASAP Sheikha ADO.NET 1 September 14th, 2004 07:33 AM
HELP! HELP! Please ASAP iamucha Access 2 March 25th, 2004 11:42 AM
Help with Jscript and xsl!!!! pleaseee!!! besocam XSLT 1 December 12th, 2003 10:57 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.