RSS Forums RSS
Please support our Assembly advertiser: Programming Forums
Views: 558 | Replies: 3 | Thread Tools  Display Modes
Reply
Join Date: Jan 2008
Posts: 4
Reputation: matiman is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
matiman matiman is offline Offline
Newbie Poster

ASM bulletin board

  #1  
Jan 17th, 2008
Hi ppl...i'm having problems in my assignment....
what i need to do is create a bulletin-board program on ASM that does the following:
I "some string" - inputs string into bulletin board
D number - deletes the specific string from the board
V - prints out all the string that are stored insided

thank you for your help
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2005
Posts: 4,229
Reputation: Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of 
Rep Power: 26
Solved Threads: 495
Colleague
Salem's Avatar
Salem Salem is offline Offline
Industrious Poster

Re: ASM bulletin board

  #2  
Jan 17th, 2008
You've given us a list of your requirements, not a list of your problems.

An example.
Here is my code. It adds and prints just fine. But it always deletes the entry after the one I requested to be deleted (deleting 2 ends up deleting 3 for example).

http://www.daniweb.com/forums/announcement125-2.html
http://www.daniweb.com/forums/announcement125-3.html

So post your own code and a question or two about it.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
Reply With Quote  
Join Date: Jan 2008
Posts: 4
Reputation: matiman is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
matiman matiman is offline Offline
Newbie Poster

Re: ASM bulletin board

  #3  
Jan 19th, 2008
Yep,sorry about that, since this is my first post i am un aware of the points youve made so.....
anyhow, i've managed to make my code insert strings and view them , by pushing char by char into the stack, following that i push a variable holding the length of the string.
then when i view them i start with the BP already on the string length part of the stack, subtract it, etc....
i am really stuck when it comes to deleting strings the i've pushed already into the stack, is there any way of doing this?
btw:this is not embedded code.
Reply With Quote  
Join Date: Dec 2005
Posts: 4,229
Reputation: Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of 
Rep Power: 26
Solved Threads: 495
Colleague
Salem's Avatar
Salem Salem is offline Offline
Industrious Poster

Re: ASM bulletin board

  #4  
Jan 20th, 2008
You're using the main program stack to store all the strings?
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.



Similar Threads
Other Threads in the Assembly Forum
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 12:02 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC