Your Announcements

First Assembly App – D-SIPL

D-SIPL

Moderator

Posts: 1345
From: Maesteg, Wales
Registered: 07-21-2001
Hey people. For our Assembly programming module at Uni we got set a peice of coursework that had to do the following.
quote:

You are required to write a program in Intel Architecture assembly language with the following specification. The user should run the program from the command prompt.
A user can enter a string of up to 40 characters. If greater than 40 characters are entered, the program should print an error message and terminate. After this check has been made, the string should be redisplayed to the screen along with:

The total number of characters in the string.
The total number of lowercase characters (a-z) in the string.
The total number of uppercase characters (A-Z) in the string.
The total number of digits (0-9) in the string.

All the above numbers should be displayed as hexadecimal numbers.


After a long coding session that finished at 4:20am, I completed my fully working program. Thank you so much to Klumsy who pointed me in the right direction and checked my code when I was getting stuck!

If your interested in seeing the source you can download it http://www.disciplex.co.uk/coursework.s

To compile in Linux type:

>as --gstabs -o coursework.o coursework.s
>gcc coursework coursework.o

Not sure how to do it in Windows, but you can download Cygwin which is a fantastic app.

--D-SIPL

------------------
"One World. One Web. One Program." -Microsoft promotional advertisement
"Ein Volk, ein Reich, ein Fuhrer!" -Adolf Hitler

buddboy

Member

Posts: 2220
From: New Albany, Indiana, U.S.
Registered: 10-08-2004
what's it coded in?

------------------
In the stock market, you must buy high and sell low...Wait! That's not right!
--------------
Yes, I can be intelligent at times!!

crazyishone

Member

Posts: 1685
From:
Registered: 08-25-2004
intel architecture asm.

The quote he posted told you that. and the thread title
------------------

globalrant http://globalrant.wastextgames.com
globalrant forums
http://crazyishone.proboards85.com/index.cgi

[This message has been edited by crazyishone (edited January 27, 2006).]

buddboy

Member

Posts: 2220
From: New Albany, Indiana, U.S.
Registered: 10-08-2004
oh lol... never heard of that... didn't know it was a language... lol!!

------------------
In the stock market, you must buy high and sell low...Wait! That's not right!
--------------
Yes, I can be intelligent at times!!

Goldrush13

Member

Posts: 107
From:
Registered: 02-27-2005
What's your course called?