Hello David,
#define SET_WORD(addr, v) do {\ _AX = (v); \ asm les bx,zmp;\ asm add bx,addr;\ asm xchg al,ah;\ asm mov es:[bx],ax; } while (0) This will allow `v' to be pretty much any arbitrary C expression. It uses the magic _AX variable which is specific to Turbo C (it works on Turbo C 2.01, and should work on 3.00 too).This approach worked splendidly. Thanks!
:-) -- https://github.com/tkchia _______________________________________________ Freedos-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freedos-devel
