Wang Shuang "assembly" Detection 9.1 (1) | To make jmp instruction program execution after, CS: IP points to the first instruction of the program, in which data in the data segment should be defined?

; Monitoring point 9.1 (. 1) 
the ASSUME CS: code 
Data segment 
    DB . 8 DUP ( 0 ) 
Data ends 

code segment 
    Start: 
    MOV AX, Data; this section must fill
     MOV DS, AX 
    
    MOV BX, 0 
    JMP Word PTR [BX] 
    
    mov AX, 4c00h
     int 21H 
code ends 
End Start

 Beginning not understanding the question here '' [bx + 1] " , what it meant, and then he still should be considered by a" [bx] "( later learned here are the same, they are all written 0 Road 8 it does not matter ), and then his own superiors experiment is confused, very grateful "good day" master, turned out to be their own "mov ax, data" without knocking, crying stupid, embarrassing to the explosion.

Guess you like

Origin www.cnblogs.com/chrysanthemum/p/11577711.html