当前位置:网站首页>Assembly language addressing mode

Assembly language addressing mode

2022-07-06 17:02:00 My71

Link to the original text —— SevenOne’Blog

Immediate addressing

  1. Definition : The addressing method of the source operand immediate is called immediate addressing .

  2. example

    mov ax,5
    

Direct addressing

  1. Definition : From memory according to the address ( Memory ) Looking for data in .

  2. example

    mov ax,a
    

Register addressing

Go directly to the register to find data according to the register name .

Register indirection

  1. adopt lea Store the address in the register , Re pass [ register ] Find the data in the address , This method is called register indirection , Indirect addressing for short .
  2. Available registers include :BX、BP、SI、DI Only the above 4 individual , Nothing else .
原网站

版权声明
本文为[My71]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/187/202207060922438806.html