Results 1 to 3 of 3

Thread: Carry flag problem

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2007
    Posts
    3

    Exclamation Carry flag problem

    i need a code that uses addition and subtraction to set and clear a carry flag. it must then display the flags and the dumpregisters after each instruction.
    please help guys

  2. #2
    Interweb adm/o/distrator Paul M's Avatar
    Join Date
    Nov 2006
    Location
    Australia, Melbourne
    Posts
    2,306

    Re: Carry flag problem

    The clc instruction can clear the carry flag?

  3. #3
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: Carry flag problem

    Addition (subtraction is just adding a negative value) sets or clears the flags. Displaying flags and registers is just a display routing.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width