Pointers and Indexes in Intel 8086 Assembly
问题 I have a pointer to an array, DI. Is it possible to go to the value pointed to by both DI and another pointer? e.g: mov bl,1 mov bh,10 inc [di+bl] inc [di+bh] And, on a related note, is there a single line opcode to swap the values of two registers? (In my case, BX and BP?) 回答1: For 16-bit programs, the only supported addressing forms are: [BX+SI] [BX+DI] [BP+SI] [BP+DI] [SI] [DI] [BP] [BX] Each of these may include either an 8- or 16-bit constant displacement. (Source: Intel Developer's