WHAT IS ASSEMBLY LANGUAGE?

I know this isn't really related to java.
What is assembly language? I've heard of it but I'm not sure what it is.

Simply, it is a language that depends on the particular machine you program.
High level languages like Java,Pascal, etc ... don't depend from the particualr machine where you program ... you have to run the java program .. or re-compile the Pascal program .... to obtain portability on a particular platform ....
an assembly (asm) program is not portable ... (since the born of emulators)

Similar Messages

  • Using C functions from IA-32 assembly language

    Is it possible to use 32-bit assembly language to call C functions in 64-bit linux?
    Background: I'm learning 32-bit AT&T syntax Linux assembly language programming. The only reason for 32-bit is that's what's covered in the book I have. Some simple examples assemble, link, and execute in Arch 64 using GNU either gcc or as + ld -- with no changes either to code or command line flags.
    The problem: I'm having trouble with C function calls. Even after replacing register names (e.g., edi -> rdi) and mnemonics (e.g., movl -> movq), I find that a program which calls printf and exit never prints anything, and never returns. Hence the question.
    I can post code if needed (it's on my other machine), but this is really more of a general question -- is it possible to call C functions in Arch 64 using 32-bit AT&T syntax, and if so, how.
    Thanks!

    Not even a typo, just confusion. The CPU is an Intel Core 2 Duo -- so it's actually x86-64.
    I realize that NASM is not GAS, but checking the NASM manual helped me figure out a few things about calling 64-bit C functions:
        http://www.nasm.us/doc/nasmdo11.html
    It took a while to figure out how to correctly call printf. The missing clue was here:
        http://www.mit.edu/~6.035/handouts-2007 … convention
    printf reads the number of variable arguments from %rax. In this example, printf is called with no variable arguments:
    # c_functions.s - Calls 64-bit C functions putchar, printf, and exit
    .section .data
    a:
    .byte 'a'
    newline:
    .byte '\n'
    hello:
    .asciz "hello, world\n"
    .section .text
    .globl main
    main:
    movq a, %rdi # used as argument for putchar
    call putchar
    movq newline, %rdi # used as argument for putchar
    call putchar
    movq $hello, %rdi # first argument for printf (i.e., the format string)
    movq $0, %rax # number of variable arguments for printf
    call printf
    movq $0, %rdi
    call exit
    For simplicity, I compiled and linked with gcc (in other words, I let gcc figure out how to properly call as and ld):
        gcc c_functions.s
    If I can figure out how to pass variable arguments to printf, I'll post that. Based on the MIT reference linked above, it sounds like those arguments would be passed in SSE registers.

  • Assembly language on Mac OS X

    I just purchased two books. The first is called "Write Great Code -- Volume 1: Understanding the Machine". It is not about assembly language in specific, just about understanding how computers work on a low level. The other is called "Assembly Language: Step-by-Step" by Jeff Duntemann. I've only read the introduction. It teaches assembly language for Intel-based computers (that's me!), but it also says that it's for DOS and Linux. However, I believe that the reason it says this is because it teaches using the NASM assembler, which, at the time this second edition of the book was published, was only available for DOS and Linux. However, they now have a Mac OS X version of NASM, and I've download it. So, here are my questions:
    1.) Given the information I just gave about this book, I want to make sure that the information and code in it will apply to Mac OS X. It certainly sounds like it will, and I understand that there may be minor differences, but I just want to make sure that I'm in the right ballpark here by using this book.
    2.) Since it teaches NASM, I'm assuming that NASM was the right assembler for me to download. I also just wanted to check and see if there's any other tools I should be downloading. The book mentions a NASM-IDE, but says that it's for DOS only. Is there anything else like this (or anything else at all) that I should obtain?
    3.) Does NASM need to be installed? I went to the NASM website and downloaded the newest version (2.08rc1) for Mac OS X, and it unzipped in my Downloads folder. I've opened the folder and it's a bunch of files that I can't recognize (no install or app files in other words -- just files like rdf2bin, rdf2com, idrdf, and so forth). Is there anything else I need to do? Should I move this folder somewhere? What else do I need to do to get started here? Where would I write my code? How would I run the code? As of right now I have no idea where to go from here, and as you can tell I know nothing about how all this works. Maybe the book will tell me more when I get to the first code sample in the book, but it doesn't look like it, so I just wanted to ask for any information that anyone has time to give about anything relating to getting starting with assembly language and NASM on Mac OS X.
    Thanks in advance for any help. I'd love to hear any input or recommendations on this subject, since it's something I really know nothing about, but you gotta start somewhere!

    Okay, so I found a site to guide me through the installation of NASM on Mac OS X, and it said that 2.08rc1 is a "release candidate" (thus the "rc" part -- yeah, I'm not too sharp), and that I should have downloaded the newest version that didn't have "rc" in it, so I went back and downloaded 2.07. Unlike with 2.08rc1, there wasn't a folder on the website for a Mac OS X version, just DOS and Linux and Win32 and whatnot, but the site that was guiding me said to download the file called nasm-2.07.tar.bz2 (or something like that), so that's what I did. It then gave me instructions for configuring and installing NASM via the terminal, and it worked great! I've compiled and installed NASM, so I've gotten that far, but the rest of my questions in the previous post still apply. For example, I still want to make sure the book I bought will be applicable to assembly language on Mac OS X. Also, I'd like to know if there is anything else (like the NASM-IDE I mentioned in the above post) that I should download. And, finally, I still don't know where to go from here to get started with coding assembly language (I mean, for example, I think I read in my book that you write the code in a text editor -- is that right? How's that work?). Any further input on any of this or anything from the previous post above would be greatly appreciated. Thanks!

  • Assembly Language in Xcode

    I am currently taking a Java course in college and it runs great in Xcode.
    I just found out today that I will have to take an assembly language course sometime next year. I talked to the genius at my local apple store and he said that assembly language will work in Xcode, but will be different for PPC and intel macs.
    However, he did not tell me how to start in assembly language in xcode. If anyone knows how please tell me and, if possible, supply some sample code for an intel mac so I can test it out.
    iBook G4 14 1.2GHz, 1.25GB, iMac Core Duo 17" 1.83GHz 1GB   Mac OS X (10.4.8)  

    There is "gas", the GNU Assembler. As a student, you can buy Borland's Turbo Assembler for $130. The more common Turbo C++, Turbo Delphi(s), and Turbo C# are now free.
    A MBP with Parallels will pretty much handle anything that will run on a PC. It would be an excellent choice for any programmer.
    Still, tele_player is correct. There is no way to tell what platform your assembly class may be using. Few people use assembly anymore and those that do are a little bonkers or just stubborn. You may find yourself learning assembly for the Z80, 68000, or IBM System/360. On the bright side, there are probably emulators for all of those that run on a modern Mac. On the downside, you may still have to submit your assignments on the lab machine.
    It is definitely an excellent course to take. There are not enough programmers who know assembly. You will really learn a lot about how a computer runs software and how to write software.

  • ASSEMBLY LANGUAGE FILE TO .CLASS --- URGENT!!!!

    Can someone please tell me how to convert a MIPS assembly language file to a .class so I can run it in a JVM? It's URGENT (there's a bus about to hit me and the driver will only stop if I can tell him how to do this).

    Looking for real boobs? I have the best for you. Look
    at www.realandnatural.info you will find the largest
    archive on the net. Enjoy! =)You can't have read many of the posts here. We have quite a set of them ourselves.

  • Is it possible to use assembly language..?

    is it possible to use assembly language code with the packager for iphone?

    I hope we can write assembly language in XCode and not in packager for iphone. it supports flash and the script of flash AS3.0

  • Assembly Language Help

    I know this proably not the right place to post this topic but I couldn't find anywhere else.
    Basically I am developing a program for high school kids learning assembly language. I am developing it in Java but it has been over 10 years since I have ever done any assembly. I am working through good books and tutorials to refresh my mind. I have come to the example below and got stuck. can anyone spare 5 mins to explain ech line of the following to me in real simple terms. Duke dollars available.
    Load R1,R8
    add R1,16
    Loadind R2,R1
    add R1,8
    loadind R3,R1
    add R3,R2
    sub R1,4
    storeind R3,R1
    Many thanks

    It looks like an addition of operands on the heap of a 32bit processor.
    R8 is a pointer to a heap which has the following format:   +-------+-------+-------+-------+-------+-------+-------+
       |       |       |       |       |   A   |   C   |   B   |
       +-------+-------+-------+-------+-------+-------+-------+
       R8    R8+4    R8+8    R8+12   R8+16   R8+20   R8+24What we want is to execute C=A+B.
    Load R1,R8We are going to have R1 pointing on the place in the heap we are interested in. R8 is probably a register reserved for the heap, which should not be changed, so we copy it into R1.
    add R1,16Move R1 pointer so that it points 16 bytes higher, where A is.
    Loadind R2,R1Load the content of A (pointed by R1) into R2. Note that we are not interested here in the value of R1, but in the value pointed by R1, thus the "ind" for "indirect".
    add R1,8Move the R1 pointer to point 8 bytes higher, where B is.
    loadind R3,R1Load the content of B (pointed bt R1) into R3.
    add R3,R2Add R2 to R3 (the result is stored into R3).
    sub R1,4Move the R1 pointer to point 4 bytes lower, where C is.
    storeind R3,R1Store the result into C.
    Jerome.

  • Assembly language in X-Code

    I am currently taking assembly language for my undergrad. i have Xcode installed in my computer but i have no idea how to use the xcode for the assembly language. can anyone help me with that.

    Which assembly language are you referring to?
    The documentation from apple can be found here: http://developer.apple.com/library/mac/documentation/DeveloperTools/Reference/As sembler/Assembler.pdf.

  • What is the language used in Flash Builder?

    Hi everyone - total noob here.
    I'm really interested in learning how to code ( I'm a designer, and want to add coding to my skill set).
    What would be the best way to get up to speed? What language should i learn?
    Flash Builder & Cataylst look amazing.
    cheers

    Thank you all for such a swift response. I wouldn't expect anything less
    from an Adobe forum.
    -markerlin - I guess we're in the same boat, eh? You shed some more light
    on the subject for me
    *-David - *Thank you for your clarification. It sounds like, there are three
    "languages" I should be looking at: actionscript, fxg & mxml, correct? if I
    want to be involved in both the design and the back-end aspect of a project?
    Is mxml anything like xml?
    - John - *Thank you for your brief yet concise answer. I'm just trying to
    get a clear picture of where i should be focusing my attention.
    I'm basically a designer, who wants to make the leap to designing business
    solutions to companies who want to (or need to be convinced to) take
    advantage of the amazing technology that's out there. After watching this
    Adobe eSeminar yesterday, *"Extend your brand and deliver compelling
    customer experiences"*, and viewing this (cool) graph,
    http://www.npr.org/templates/story/story.php?storyId=121875404, you'll
    notice that "computer systems design and related services", as well
    as "*management,
    scientific and technical consulting services*" have the biggest % leap of
    all industries. I'd like to position myself somewhere in there in the next
    decade.
    Essentially, i'd like to be a designer that can explain what the
    programming/coding needs to be and actually *know *what i'm talking about...
    That's my long answer, anyway.
    Oh, and thank you for this site!
    If you want to learn FB go to this Adobe website for training:
    http://www.adobe.com/devnet/flex/videotraining/flex4beta/index.html this
    looks great, & i'll probably work my way through it.
    cheers
    Stuart
    http://stuartroholt.com
    http://www.twitter.com/stuartroholt
    http://www.soundcloud.com/stubaby

  • Where is detailed description of what data binding language can do?

    Where in the documentation does it clearly spell out exactly what you can do with
    the data binding language (the stuff between "{...}")? I'm trying to understand
    what is happening in the SamplesApp, in the "repeaterTag" module, in XMLString.jsp
    and repeaterTagController.jpf.
    In particular, in XMLString.jsp, it references an expression like this:
    <netui-data:repeater dataSource="{pageContext.xml.employee}">
    I can't figure out how this is working. I can see that the "callPageFlow" tag
    just before this is putting the result of "getXMLStr()" into the "xml" variable.
    This string looks like this:
    <employees>
    <employee title=\"CEO\"><first>Mary</first><last>Smith</last></employee>
    <employee title=\"President\"><first>Mark</first><last>Jones</last></employee>
    <employee title=\"Vice President\"><first>Matt</first><last>Nelson</last></employee>
    <employee title=\"Salesperson\"><first>John</first><last>Doe</last></employee>
    <employee title=\"Office Manager\"><first>Jane</first><last>Doe</last></employee>
    </employees>
    This usage of the data binding language is a little unusual, but I would assume
    it's documented somewhere, right?

    I had already read that description. It has just about one sentence that covers
    the ability to reference elements of an XML string, but without giving any usable
    details. I was already convinced that this and direct variable references were
    worth avoiding, I just wanted to understand the extent of the available features
    first. I guess the lack of any documentation on referencing elements in XML strings
    will make it easier to deprecate :) .
    Eddie O'Neil <[email protected]> wrote:
    David--
    A general data binding description is here:
    http://edocs.bea.com/workshop/docs81/doc/en/workshop/guide/netui/guide/conDatabindingXScript.html
    This help topic describes the NetUI data binding contexts and how
    properties / objects are
    accessed using them. As far as property binding, a question that came
    up in the group earlier,
    public properties always win over JavaBean properties, so if you expose
    data on any Java object
    (page flow, global app, form bean, repeated data item) like this:
    ::::: Controller.jpf
    public String foo = "foo";
    private String anotherFoo = "another foo";
    public String getFoo()
    return anotherFoo;
    and bind to this in a JSP:
    <netui:label value="{pageFlow.foo}"/>
    the value "foo" will display in your page because it is a public property.
    The specific example that you mention below is a sample of using the
    XScript capabilities in the
    8.1 NetUI data binding language to bind directly to parts of an XML document
    without having turned
    the document itself into a JavaBean.
    Frankly, I'd encourage you to use a JavaBean centric approach as we
    will likely deprecate this
    feature in the future in favor of a more XMLBean / JavaBean centric binding
    model. The JavaBean
    property binding model is also much more in-line with the JSP 2.0 expression
    language.
    In the same vein, I'd also suggest following the best practice of
    exposing JavaBean properties on
    your objects instead of using direct binding to fields.
    If you have additional specific questions, feel free to post them
    here and we can address them as
    they come up.
    Hope that helps...
    Eddie
    David Karr wrote:
    Where in the documentation does it clearly spell out exactly what youcan do with
    the data binding language (the stuff between "{...}")? I'm tryingto understand
    what is happening in the SamplesApp, in the "repeaterTag" module,in XMLString.jsp
    and repeaterTagController.jpf.
    In particular, in XMLString.jsp, it references an expression like this:
    <netui-data:repeater dataSource="{pageContext.xml.employee}">
    I can't figure out how this is working. I can see that the "callPageFlow"tag
    just before this is putting the result of "getXMLStr()" into the "xml"variable.
    This string looks like this:
    <employees>
    <employee title=\"CEO\"><first>Mary</first><last>Smith</last></employee>
    <employee title=\"President\"><first>Mark</first><last>Jones</last></employee>
    <employee title=\"Vice President\"><first>Matt</first><last>Nelson</last></employee>
    <employee title=\"Salesperson\"><first>John</first><last>Doe</last></employee>
    <employee title=\"Office Manager\"><first>Jane</first><last>Doe</last></employee>
    </employees>
    This usage of the data binding language is a little unusual, but Iwould assume
    it's documented somewhere, right?

  • FormatDate, what decides the language?

    Hi,
    Im developing a site with JSTL in my jsp-pages and have done the formatting of a date the way I want. The month is shown with three letters, jan, feb, mar, apr....
    This is the code for the outprint:
    <fmt:formatDate value="${ad.date}" pattern="MMM.dd, kk:mm"/>
    My problem now is that I want this to be printed in portuguese and I have tryed every possible variant to achive this.
    I have tryed setting a <fmt:timeZone value="GMT-3:00"> arount my formatDate. I have tryed setting the locale variable in a servletfilter Locale.setDefault(new Locale("pt_BR"));, I have set the response header accept-language to "pt". I have added a context-variable in my web.xml file (javax.servlet.jsp.jstl.fmt.fallbackLocale) with value "pt", I have also tryed changing the timezone in my OS which is winXP.
    Nothing of the above help and I wonder what magic trick will help me get an outprint of the month in another language, in this case brazilian portuguese, pt_BR.
    All suggestions are welcome.
    thanks
    /Mike

    http://download-west.oracle.com/otn_hosted_doc/jdeveloper/905/working_with_html_pages/f1_html_xsql_jsp/f1_jspfmtformatdate.html
    The fmt;formatDate has a locale attribute. Try setting that to the correct value.

  • What are supported languages

    I was wondering what languages I can use on an apple server.
    Some of the ones I would require for my site would be:
         -PHP (need at least 5.5, but would prefer 5.6)
         -SQL(via MySQL)
         -Java
         -Perl
    Some languages which I would like to use:
         -Python
         -C/C++
         -ASP &/or ASP.NET (I really want one of these)
         -Erlang (would be cool, to play with)
    This is what it would take for me to switch from Linux (I need to know this before I buy).

    You will probably feel most at home by installing MacPorts:
         https://www.macports.org/
    , which is a package manager that will enable to install pretty much every piece of open source software (apps, tools, libraries) that you'll find on Linux.
    C.

  • What programming/script languages do you know?

    Hey, give us a list of what you know of programming/script languages. Here is mine:
    C/C++, SQL (yes SELECT 1+1 works, so you can do programming in it), LUA, PHP, Python, Javascript some D (a good merge of C++ and Python), Makefile/autoconfig ,
    some C# and maybe some stuff I don't seem to remember.
    How about you?
    Regards,
    Cole
    web design company

    This is not the board you are looking at. If you want to ask these questions in this forum go to Breakpoint otherwise go Here. But the last won't suit for you as I don't see "LabVIEW" in such a big list.
    The best solution is the one you find it by yourself

  • What about on language settings?

    come si cambia la lingua ad adobe? what about language settings?

    And what exactly are you asking? what language settings are you referring to in which program? You need to be more specific and also include system info and similar.
    Mylenium

  • What is the "Language Reference" difference between AS, Flash, and FLEX?

    I'm fairly new to the world of Flash9 / Flex2 / ActionScript3
    development environment.
    As I was reading through tutorial for FLEX/AS, I was
    introduced to Language Reference for FLEX 2.0.
    At the same time, I noticed in FLASH9 / AS3 there is also
    Language Reference page. For a moment, I thought these 2 Language
    Reference shared the same API / Language components.
    As I have found out, when I was looking up Language Reference
    for "Button" class for FLE2.0, it provided
    - mx.controls.Button
    But for Language Reference for "Button" class for FLASH9 /
    AS3, it provided different package
    - fl.controls.Butoon
    Why are there 2 sets of packages for the class Button?
    Shouldn't there just be one package for class Button?
    thanks,
    Ming

    Hello,
    The names can be confusing, especially since IE identifies Flash Player as Shockwave Flash Object in 'Manage Add-ons'.  They are, in fact, two different programs, as noted in your Programs and Features screenshot. Flash Player plays web content created using Flash Professional, Flex, or Flash Builder (ActionScript programming language).  Adobe Shockwave Player plays web content that has been created using Adobe Director.  They are not interchageable.  Web content created using ActionScript requires Flash Player and web content created with Adobe Director requires Shockwave Player.
    More info:
    Adobe Director
    Adobe Shockwave Player
    Flash Player | Adobe Flash Player | Overview
    HTH.
    Maria

Maybe you are looking for

  • IPhone 3G isn't recognized by iTunes - help!

    I have an iPhone 3G with a sim card. I had my phone unlocked, and new sim put in. I tried to update the iOS and now iTunes won't recognize my phone. How can I fix this? I don't care about it being updated now; I just want a phone I can use!

  • Pending Service PO report

    Dear All, please tell me report for Pending Service PO report. Because in me2m,me2l,me2n To be del qty is zero though thers is pending qty in PO. Thanks in advance. Regadrs, Gietsh

  • Java database component

    Hi! Is there any GUI component in Java such as the TDBGrid in the Delphi? I mean, is there any way to manipulate data in a database through a graphic component what is NOT a JTable? Thanks!

  • FF67: How to delete Manual Bank Statement

    Hi Experts, Can somebody tell me, how to delete Manual Bank Statement which has not been posted. Thanks in advance, Krsnveni

  • Regarding Communication Channels

    Hi When i run the scenario for simple FILE to FILE for the first time it worked properly the source file is picking and the target file is creating in the specified directory,after that in ID i made my Adapter status as:INACTIVE for both sende CC and