Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.asm.x86    |    Ahh, the lost art of x86 assembly    |    4,675 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 3,417 of 4,675    |
|    wolfgang kern to All    |
|    Re: indexing sp in 8086    |
|    26 May 18 13:39:49    |
      From: nowhere@never.at              luserdroog wrote:                     ...       #define LEA(to,m,r,r_m) to+0x8d,MRM(m,r,r_m)       #define MOV(to,m,r,r_m) to+0x8b,MRM(m,r,r_m)       #define ADD(to,m,r,r_m) to+0x03,MRM(m,r,r_m)       #define SUB(to,m,r,r_m) to+0x2b,MRM(m,r,r_m)       #define F -2       #define MRM(m,r,r_m) 0##m##r##r_m       #define Z 0       #define B 1       #define W 2       #define R 3       #define AX 0       #define CX 1       #define DX 2       #define BX 3       #define SP 4       #define BP 5       #define SI 6       #define DI 7       #define BX_SI 0       #define BX_DI 1       #define BP_SI 2       #define BP_DI 3       #define SI_ 4       #define DI_ 5       #define BP_ 6       #define BX_ 7       ...                     Mempointers with mode 00: addressing type rm_6 mean [MEM16].       [BP+xx] work for modes 01 and 10 only while rm_6 means       register SI in mode 11.              Not sure if I understood why you do it that complicated :)       wouldn't any old cross-assembler save you a lot of work ?       __       wolfgang              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca