none
Program for 8086 assembly Language

    質問

  • Good Morning to all,

    i am completely stuck with my assignment question about writing program for 8086 assembly language in VC++ with proper comments which is as below -

    "Write a program in 8086 assembly Language (with proper comments) to find if a given sub-string is prefix of a given string. For example, the sub-string “Assembly” is the prefix in the string “Assembly Language Programming.” You may assume that the sub-string as well as the string is available in the memory. You may also assume that the end of the strings is the character „$‟. Make suitable assumptions, if any."

    Sir, in my life i had never done assembly language programming, and there's 03 question i have in my assignment which is completely over my head,

    kindly get me help for this, thanks 1000+ times in advance.


    Pl. Mark/Proposed as Answer if found your solution Vote as Helpful if related to your topic. Always Motivate others by performing this Action.

    2012年9月19日 3:22

回答

すべての返信

  • To define your strings, consider the DB directive. For getting the length, consider SCASB. For comparison, try CMPSB.

    Visual Studio allows you to put Assembler fragments in C++ program using __asm keyword, but your assignment is probably to write a separate .ASM program. Therefore you need a compiler. Which one is used in your studies?

    Try as well asking a help in forums more focused on Assembler.


    2012年9月19日 6:30
  • Sir,

    i don't know how to start this assembly programming and where to get the resources,

    please guide.


    Pl. Mark/Proposed as Answer if found your solution Vote as Helpful if related to your topic. Always Motivate others by performing this Action.

    2012年9月19日 6:48
  • your assignment is probably to write a separate .ASM program. Therefore you need a compiler. 

    Actually, an assembler. It's a fine point of traditional
    terminology - assembly level (2nd generation) languages are
    "assembled" using an "assembler". Higher (3rd generation)
    languages (e.g. - COBOL, C, C++, ALGOL, FORTRAN, etc.)
    are "compiled" using a "compiler".

    - Wayne

    2012年9月19日 8:10
  • i don't know how to start this assembly programming and where to get the resources,


    Then you're *way* over your head (as you noted) and out of
    your depth. Who gave you this "assignment"? You will never
    be able to complete it if you don't even know how to start
    or what tools to use. You won't learn how to program in
    ASM in a few hours or a few days.

    We don't do programming assignments for students here.
    If you can't do your own work - with some occasional
    guidance from others such as in these forums - then
    you need to inform your instructor and get some help
    from that source.

    If you're doing this as a test of your knowledge in an
    application for a position - accept the reality that
    assembly language is not in your area of competence.
    Resist the temptation to lie abut it on an application.
    or to get others to provide you with the solutions. If
    assembly language proficiency is expected, and you get
    the position, it won't be long before your inability
    is exposed.

    - Wayne

    2012年9月19日 8:12
  • You can consider MASM and its related help to start with assembly language programming but you need a good grasp of assembly language to do something productive. However if it is your study related stuff then I'll suggest you to pick a good Assembly language book and use VC++ with the keyword __asm as suggested by the Viorel. 8086 instruction set are not much you can find the data sheet on net.
    2012年9月19日 8:22
  • i don't know how to start this assembly programming and where to get the resources,

    please guide.

    Getting Started with MASM and Visual Studio 2010
    http://kipirvine.com/asm/gettingStartedVS2010/index.htm

    Assembly Language for x86 Processors, 6th edition
    http://kipirvine.com/asm/

    Microsoft Macro Assembler Reference
    Visual Studio 2010
    http://msdn.microsoft.com/en-us/library/afzk3475%28v=vs.100%29.aspx

    The PDF version of "The Art of Assembly Language Programming"
    http://flint.cs.yale.edu/cs422/doc/art-of-asm/pdf/

    Webster - The Place to Learn Assembly
    http://www.plantation-productions.com/Webster/

    A86/A386 assembler and D86/D386 debugger
    http://eji.com/a86/

    The MASM Forum
    http://www.masm32.com/board/index.php

    the flat assembler
    http://flatassembler.net/

    PC Assembly Language
    http://www.drpaulcarter.com/pcasm/

    NASM - The Netwide Assembler
    http://www.nasm.us/

    - Wayne

    • 回答としてマーク ArifMustafa 2012年9月19日 9:29
    2012年9月19日 8:43