x86 Assembly

Moderators: None (Apply to moderate this forum)
Number of threads: 4556
Number of posts: 16011

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
proper sentences Posted by NgukatLung on 6 Oct 2005 at 10:09 AM
Helo, how are you all? I was given a title, which i need to write a assembly program which convert the sentences in the file to the proper sentences, but it is not spelling checking... So I really need somebody help me....Please help me.....
I only have a concept which convert the every capital after fullstop and enter to the big capital....but i fail to do it.
About my idea, firstly, i would like change the 1st capital of the file to the big capital, then i will start scan it until it reach fullstop or enter then it jump into procedure "convert" to convert it to the big capital, then i will rewrite it and save it.....then back to the place where i meet the intterupt and continue scan.
But i don't know how to write it in asm program....
So please help me....
Report
Re: proper sentences Posted by AsmGuru62 on 6 Oct 2005 at 4:17 PM
What is a fullstop?
What is enter?

If enter is a new line symbol, then your sentence:

The bad
dog.

Will become:

The bad
Dog.

I think it is not a proper sentence.


: Helo, how are you all? I was given a title, which i need to write a assembly program which convert the sentences in the file to the proper sentences, but it is not spelling checking... So I really need somebody help me....Please help me.....
: I only have a concept which convert the every capital after fullstop and enter to the big capital....but i fail to do it.
: About my idea, firstly, i would like change the 1st capital of the file to the big capital, then i will start scan it until it reach fullstop or enter then it jump into procedure "convert" to convert it to the big capital, then i will rewrite it and save it.....then back to the place where i meet the intterupt and continue scan.
: But i don't know how to write it in asm program....
: So please help me....
:

Report
Re: proper sentences Posted by NgukatLung on 6 Oct 2005 at 6:32 PM
What i mean is after the fullstop, if have space or enter then, it should be in big capital.....but if don't have then, it should not be big capital.
As a example::
programmersheaven.com but c no need in big capital....

Report
Re: proper sentences Posted by IDK on 11 Oct 2005 at 11:47 AM
: What i mean is after the fullstop, if have space or enter then, it should be in big capital.....but if don't have then, it should not be big capital.
: As a example::
: programmersheaven.com but c no need in big capital....
:
:
This is how to do it in high psuedo:
foreach byte in inputfile
    if bbbyte = . and bbyte = space and byte < A
        byte += 32
    
    write byte to outputfile
    bbbyte = bbyte
    bbyte = byte


This is almost C++
Convert it to asm and your done.

The thing you'll need to know is how to read a file, wich I don't know how.

The one and only Niklas Ulvinge aka IDK

Report
Re: proper sentences Posted by AsmGuru62 on 12 Oct 2005 at 4:30 AM
: : What i mean is after the fullstop, if have space or enter then, it should be in big capital.....but if don't have then, it should not be big capital.
: : As a example::
: : programmersheaven.com but c no need in big capital....
: :
: :
: This is how to do it in high psuedo:
:
: foreach byte in inputfile
:     if bbbyte = . and bbyte = space and byte < A
:         byte += 32
:     
:     write byte to outputfile
:     bbbyte = bbyte
:     bbyte = byte
: 

:
: This is almost C++
: Convert it to asm and your done.
:
: The thing you'll need to know is how to read a file, wich I don't know how.
:
: The one and only Niklas Ulvinge aka IDK
:
:

Check here:

http://www.ctyme.com/intr/int-21.htm

It is for DOS programming.




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.