Assembler programming DOSBox simulation environment configuration

# Assembler programming DOSBox simulation environment configuration

##### recent study of assembly language design and compiler software on the Internet to find the assembler. Pays off, finally found the software I need, thankfully.
##### About configuration methods and steps, the following details.
---

  1. First of all, we need an environment that is called: DOSBox environment, which is a simulator environment, real DOS emulation environment, you can re-create the MS-DOS compatible environment (including sound, input, graphics and even basic network). Then we design assembly language in this environment below. There are those who can be directly downloaded from the Internet real DOS environment to run from the physical machine and prepared debugging assembler.

    DOSBox download link is: ----> This is the download link <-----
    Of course, if you do not mind, I can also go to the Baidu cloud disk Download: -----> This is my Baidu network disk link <-----
    (extraction code: TLOW)
    ---

  • After downloading, the following is installed. Habit installed in the D drive, so I set became D: \ Program .....
  • As shown below:
    photo1

photo2

photo3

After a series of efforts, finally you with a good environment, Terrific (1 • ㅂ •) و✧

  • Then, we first in D drive to create a new folder called "MASM"

    why?

    It will be because you want to use, fool (╯ □ ╰)

    > Oh ~ (● ∀ ●)

  • Next, we masm configuration, first, you have to find a few programs

    1. edit.exe, edit.com (editing software)
    2. Debug.exe (a computer program for testing and debugging MS-DOS executable)
    3. masm.exe (a use x86 assembly language programs and tools to generate corresponding binary file)
    4. link.exe (object files and libraries will be linked together to create a tool executable file or dynamic link library file)
  • Of course, there are my Baidu cloud disk, if you have the ability, you can look for yourself ..... ** ----> This is my Baidu cloud disk link < (7 'ᵕ') 7 * ଘ-- ---- **
    (extraction code: qvs9)
    ---
  • When you download, when finished, it is estimated that you spent a lot of time. And then, after downloading, it is a compressed package, this compressed inside the file to extract just the D drive to create MASM directory (to know why just want you to create this file, right ~) and then you complete the basic configuration
    photo4


  • Open DOSBox software, then it is this:

photo5

Then you enter

mount c d:\MASM (打一个换行符)
c : ( 再打一个换行符 )
然后你就完成了配置
  • mount cd: \ MASM What this means is: the original virtual folders to replace ( "c" as a virtual C drive. "d: dos" you want the virtual folder location every time I am not sure whether the time of entry You need to enter, because I have not tried, I order to be able to use, each time coming when they are involuntarily entered this sentence)
    format is: mount c (this is your disk): (just unzip the file in the file folder)
  • c: This means that the switching to the virtual disk the directory c

Through the above configuration, congratulations, finished masm DOSBox configuration and configuration, and then you can edit files


This is the step edit:

1. Switch to masm directory, and then replaced by a virtual c drive, enter edit hello.asm, and then edit the file, after you write is complete, you can save and exit
photo6

2. After returning to dos, enter masm hello.asm, compiled
photo7

3. After compilation, the input link hello.asm, link
photo8

4. After a successful link, enter hello.exe, carriage return, output character Hello World, a success
photo9


The following attach hello.asm code (although I do not understand .....)

;80x86汇编语言<入门程序>
;YPP.20170928
;文件名Hello.asm

DSEG    SEGMENT
MESS    DB   'Hello,World!' ,0DH,0AH,24H
DSEG    ENDS

SSEG    SEGMENT PARA STACK 
        DW  256 DUP(?)
SSEG    ENDS

CSEG    SEGMENT
        ASSUME  CS:CSEG,DS:DSEG
BEGIN:  MOV AX,DSEG
        MOV DS,AX
        MOV DX,OFFSET MESS
        MOV AH,9

        INT 21H
        MOV AH,4CH
        INT 21H
CSEG    ENDS
        END  BEGIN

Please indicate there is an error, thank you <(¯)¯) ↗ [GO!]


Guess you like

Origin www.cnblogs.com/Yunrui-blogs/p/11493920.html