hello大家好,从指定内存地址读取数据到cmos,读取内存数据的语法应该怎么修改?求帮助阿
本帖最后由 y363585404 于 2013-12-16 14:16:25 编辑 .model small
.386
data segment
temp db ?
data ends
code segment
assume cs:code,ds:data
start:
mov edx,0f80f802ch
mov al,[edx]
mov temp,al
mov al,41h
out 70h,al
jmp $+2
mov al,temp
out 71h,al
mov ah,4ch
int 21h
code ends
end start
[解决办法]
没有给 ds 赋值吧:
start::
mov ax, data ;*+
mov ds, ax ;*+
mov edx, 0f80f802ch