Results 1 to 3 of 3

Thread: Assembly selection

Threaded View

  1. #1

    Thread Starter
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418

    Assembly selection

    Is there a way that the program can be structured without jumping to a label? Or is assembly normally coded in this manner?
    I always thought the use of GOTO's lead to bad programming structure, or does that only apply to higher level languages?
    Code:
    cmp bl,'Y' 		; is al=Y?
    je Prompt_Again 	; if yes then display it again
    cmp bl,'y' 		; is al=y?
    je Prompt_Again 	; if yes then display it again
    Somthing like...
    Code:
      if(bl == 'y'){
        // execute code
        // instead of jumping to a label or calling a method
      }
    Thanks for the help!

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