[Assembly] Build 8086 processor environment in win10, intel i7 environment

The 8086 simulator assembly IDE  can first download the simulation software of the 8086 processor here. For the current x86 and 64-bit systems for register bit extensions, this software shields them

The same environment and command system as 8086/8088 can be used in the software

By creating a new .asm file, you can click the compile button to compile, this picture.... I forgot to adjust the display pixels, this can be adjusted

, It’s more clear to see, the last use of ret is return, program exit

Click compile to compile and display:

Sure enough, the clarity can be adjusted...

 

Compile passed, click to run

You can run the programs one by one or execute them sequentially. You can view the contents of the register on the left, and you can view the contents of the stack or flag register below.

A test program is attached below, which performs addition operations on two units in memory

 


; You may customize this and other start-up templates;
; The location of this template is c:\emu8086\inc\0_com_template.txt

org 100h

MOV SI, 1000H
MOV DI, 2000H
MOV AX,102AH
MOV BX,3210H
MOV [SI],AX
MOV [DI],BX
MOV CX, 2
CLC
LOOP1:MOV AL,[SI]
ADC AL,[DI]
DAA
MOV [DI],AL
INC SI
INC DI
DEC CX
JNZ LOOP1
MOV DI,2000H
MOV AL,[DI]
INC DI
MOV AH,[DI]
ret

 

 

Guess you like

Origin blog.csdn.net/mid_Faker/article/details/112187916