8086-8086微处理器中的数组声明后的汇编,mov操作

时间:2018-11-24 14:39:12

标签: assembly x86-16 emu8086

array db 4, 2, 3   ; declaring an array

mov al, array[0]   ; moving the first element of the array to the ax register

emu8086 中执行此代码后,al的最终值为2

1 个答案:

答案 0 :(得分:0)

确保将数组的空间放在此数据部分中。照原样,CPU尝试将array的内容作为代码执行,导致毫无意义的结果。