#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2011
    Posts
    2
    Rep Power
    0

    Task in assembler 8086


    I need help how to solve this task, I don't know how to solve first part which is for memory location. If someone know please help me. It is very important..

    ENTRY RESULTS entrance examination: In memory location X is placed in an entrance exam results in the form:

    Indeks - 2 bytes
    points - 1 byte

    Create a program in 8086, so that the screen will read the number of students placed in memory and then the location PRIEMEN will print the screen line by line

    <INDEKS1>, <POINTS1>
    <INDEKS2>, <POINTS2>
    <INDEKS3>, <POINTS3>
    <INDEKS4>, <POINTS4>
    ...

    For printing use the macro.
    example:
    If the memory is written: 2 5 10 0 64 100 ... you need to print:
    2 * 256 5 = 517, 2 * 0 64 = 64

    517, 10
    64, 100
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    May 2007
    Posts
    765
    Rep Power
    928
    What have you tried / where are you stuck? Post your current code here (surround it with [code][/code] tags to make it legible) as well as any error messages (or if it runs but the output is wrong: what you expected to happen vs. what did happen). As the sticky at the top of the forum says, no one here is going to do your homework for you. But if show your efforts we can help point you in the right direction.

    If you need some pointers on starting, this page may be helpful So, You Need to Write a Program but Don't Know How to Start
    sub{*{$::{$_}}{CODE}==$_[0]&& print for(%:: )}->(\&Meh);
  4. #3
  5. Commie Mutant Traitor
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Jun 2004
    Location
    Norcross, GA (again)
    Posts
    1,804
    Rep Power
    1569
    Cross-posted to Daniweb
    Also Warrior Forums

    BTW, you also don't mention which assembler you are using, which could be a critical issue as each of the major x86 assemblers - MASM, NASM, GAS, YASM, FastASM, etc. - has its own variant syntax. Most people here will assume either Macro Assembler or Netwide Assembler, but if you are using, for example, Turbo Assembler, you might not get a usable answer.

    Similarly, if you need to allocate memory, it is a system-dependent operation; we need to know whether this is for Windows, Linux, Mac, or an old 16-bit DOS platform. Each of those systems has a different way of handling memory allocation (or lack thereof in the case of 16-bit DOS), and knowing the particular operating system (and assembler) is crucial.

    Since you mention that it is for 8086, I am going to guess that it is Turbo Assembler running under DOS emulation mode in Windows. But that's just a guess; you need to tell us if we're to give you a useful answer.

    On a related note, the project specification states that you should use a specific macro for printing. Since we are not mind readers, and probably don't have access to the specific macro library even if we were, no one here is likely to know what this macro is or how to use it.

    Oh, and in English, the word is usually spelled 'index', not 'indeks'; while it is certainly possible to use the word as it appears in your native tongue for code identifiers, it might help you to use the English word when explaining the project to others on English-language fora. Just a minor quibble, nothing to worry about too much, but something to be aware of for the future.
    Last edited by Schol-R-LEA; June 6th, 2012 at 07:34 PM.
    Rev First Speaker Schol-R-LEA;2 JAM LCF ELF KoR KCO BiWM TGIF
    #define KINSEY (rand() % 7) λ Scheme is the Red Pill
    Scheme in Short Understanding the C/C++ Preprocessor
    Taming Python A Highly Opinionated Review of Programming Languages for the Novice, v1.1

    FOR SALE: One ShapeSystem 2300 CMD, extensively modified for human use. Includes s/w for anthro, transgender, sex-appeal enhance, & Gillian Anderson and Jason D. Poit clone forms. Some wear. $4500 obo. tverres@et.ins.gov

IMN logo majestic logo threadwatch logo seochat tools logo