here is a short program that demonstrates the use of MOV instruction: ORG 100h ; this directive required for a simple 1 segment .com program. MOV AX, 0B800h ; set AX to hexadecimal value of B800h. MOV DS, AX ; copy value of AX to DS. MOV CL, 'A' ; set CL to ASCII code of 'A', it is 41h. MOV CH, 1101_1111b; set CH to binary value. MOV BX, 15Eh ; set BX to 15Eh. MOV [BX], CX ; copy contents of CX to memory at B800:015E RET ; returns to operating system.
i use emu 8086
سؤالي هو لماذا
(the instrucion pointer ) IP ..
احيانا يزيد 2 على قيمته
واحيانا يزيد 3
كيف لي ان اعرف
MOV [BX], CX ; copy contents of CX to memory at B800:015E
وهنا لماذا استعملنا
DS