/header.html HyperNews Home
Using HyperNews (Instructions)

Next-in-Thread Next Message

Re:Assembly language question 

Keywords: vax assembly language instructions questions
Forum: Computer Languages and Operating Systems Forums
Re: Question: Beginner Assembly Language Questions
Date: 1998, Mar 24
From: <Anonymous>

Well, good news and bad news (I guess). First, great luck with the class - hopefully it won't go too in depth into assembly in order for you to make it through the class. Look for a book on the web called "The Art of Assembly Language", The full text (or pdf) is available, and it is a great resource.

As for your specific questions:

MOV x,y - Moves value of y into x (replaces x with y)

MPY x,y,z - I find no reference to this as an assembly instruction (however, I am by no means a "guru") Also, I deal in 80x86 asm as well......sooooooo....

ADD x,y,z - Add is used for 2 operands at a time, so would need to use form such as J: = x+y+z. In assembly ,this could be coded as
  mov    ax, X ;(move value of x to accumulator register (ax)
  add    ax, Y ;Add value Y to ax - now is X+Y)
  add    ax, Z ;Add value Z to ax - now ax=X+Y+Z)
  mov    J, ax ; moves sum of X+Y+Z to value J)

Sorry if this is so basic, but I am learning assembly as well, and like other languages, there are many ways to accomplish the same task. Hope this helped nonetheless.

Again, search the web for the Art of Assembly Language. This book is approx 1500 pages and it is REALLY terrific.

Good luck - and if I can help, lemm know. david@phc.net

Next-in-Thread Next Message
Inline: 1 All Outline: 1 2 All

Add to: "Re:Assembly language question"

Members Subscribe Admin Mode
Show Frames Help


Forum Catagories:
Entertainment and Recreation
  • Sports
  • Music

  • Humanities (Graphics, Images, Photography, Art, Philosophy and Literature)
    Science
    Computers and the WWW
  • Languages/Operating Systems (Java, HTML, Windows)
  • WWW

  • Government and Politics
    Business, Finance, and Economics
    Education
    Society and Culture

    Earn money with Scour!
    Google
     
    Web www.HyperNews.org
    Earn money with Scour!