摘要:
assume cs:code code segment ; db 1h,2h,3h,4h; arr[] in cs ip=[0,1,2,3] dw 1200h,1300h; arr[] in cs ip=[0,2,4] 读出来是反的1200变0012,很烦这个我一般都是试一下就知道了不记 ;会读成代 阅读全文
摘要:
assume cs:code code segment mov cx,0ffh ;循环ff次,到00就停止loop mov bx,0 ;初始化bx,这个是偏移地址 s: mov ax,0h mov ds,ax ;确定ds段地址为0 mov al,ds:[bx] ;两位两位读数据 add bx,200 阅读全文
摘要:
assume cs:codesg codesg segment mov ax,1000h mov ds,ax mov ax,[5];this [5] can not symbol [5] in debug ;or mov ax,ds:[5] ; mov bx,5 ; mov ax,[bx] ; mo 阅读全文
摘要:
assume cs:codesg codesg segment mov ax,12h mov ax,4c00h int 21h ;return to cmd -p codesg ends end assume cs:codesg //确定cs段地址,就是代码段地址,取个别名叫codesg codes 阅读全文