home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.asm.x86      Ahh, the lost art of x86 assembly      4,675 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 3,389 of 4,675   
   Rod Pemberton to hirakhan1445@gmail.com   
   Re: Can anyone help me with assembly lan   
   03 May 18 17:40:58   
   
   From: NoEmail@nospicedham.trraxvfeqa.prg   
      
   On Thu, 3 May 2018 08:56:13 -0700 (PDT)   
   hirakhan1445@gmail.com wrote:   
      
   > On Tuesday, March 2, 2010 at 11:09:42 PM UTC+5, Atomicpolymorhism   
   > wrote:   
      
   > > I am having trouble following assembly language can someone answer   
   > > these questions?   
   > >   
   > >   1. Write a program that clears the screen, locates the cursor near   
   > > the middle of the screen, prompts the user for two integers, adds   
   > > the integers, and displays their sum. You will need to use the   
   > > ClrScr, Gotoxy, WriteString, Crlf, and ReadInt procedures from the   
   > > Irvine32 library.   
   > >   
   > >    2. Using the ArrayScan program in Section 6.3.4.2 as a model,   
   > > implement the search using the LOOPZ instruction.   
   >   
   > where the answerof this question   
      
   If you've been keeping up with your class, this is probably a simple   
   fifteen minute assignment, maybe an hour, if you're uncertain.  If   
   you're behind and thoroughly overwhelmed, this could be a large task to   
   solve by yourself, e.g., a few days.   
      
   If you decide to solve this problem with others, as a group, to simply   
   get a good grade, you'll "cheat" yourself by denying the opportunity to   
   learn.  This is because you'll never go back and re-learn or re-solve   
   the problem later on your own.  The time demands of life are too great   
   for you to do so.  Invest the time and effort to learn it the first   
   time.   
      
   The general rule on Usenet programming groups is to _NOT_ do homework   
   for people (or solve textbook examples).  You simply don't learn   
   anything that way.  Learning something is the real goal of the   
   assignment.  The goal is not to get a good grade.  That's the reward   
   for learning and solving the problem correctly.  I.e., you may need to   
   correct your behavior going forward, or you may continue to struggle.   
      
   I.e., you won't learn programming and you won't learn time management   
   and you won't learn what "work" means if you "cheat".  Even if you fail   
   at the task, you will have learned something simply by attempting to do   
   this yourself.  E.g., perhaps, programming is or isn't for you, or if   
   you're overwhelmed, you should've allocated much more time to solve   
   this, e.g., bad time management, or maybe a change of majors is in   
   order since you didn't care to do it in a timely manner, etc.   
      
      
   For 1),   
      
   a) start by familiarizing yourself with what each of ClrScr, Gotoxy,   
   WriteString, Crlf, and ReadInt procedures do.  (It's obvious to us.)   
      
   b) create an outline - just like for an English paper - on paper or in a   
   text editor of the code sequences you believe are required.  Break   
   down the problem into smaller problems, i.e., the listed steps: i)   
   locate the cursor near the middle of the screen ii) prompt the user for   
   two integers iii) add the integers and iv) display the sum.  Fill in   
   the outline for each of the steps.   
      
   c) convert the outline into code.  Then, execute the code.  Does it   
   work?  If not, track down why and fix it.  Use print statements for   
   now to see what is happening, as using a debugger may be beyond your   
   current skill set.   
      
      
   For 2),   
      
   a) study the program mentioned   
      
   b) replace the search routine with assembly code using the LOOPZ   
   instruction   
      
   c) You'll need to locate and read the Intel or AMD instruction manuals   
   to learn about the LOOP instruction and it's modifiers, e.g., Z in   
   this case.  GIYF.  You'll also need to learn the assembly language or   
   assembly syntax supported by the "Irvine32 library".  Again, break the   
   task down into a bunch of smaller tasks to look up or learn.   
      
      
   Rod Pemberton   
   --   
   I believe in the right to life.  That's why I oppose gun control.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca