bisanabi@vrdxhq.UUCP (Paul Paloski) (11/06/87)
I just received my version of Turbo Pascal 4.0, and am disappointed that they still require inline assembly code to be HEX values. Is there a major reason for not allowing the use of assembler mneumonics ? Either of the following would be much more preferable to the current way: 1) INLINE ( 2) XOR AX, AX ASM XOR AX, AX MOV AH, 05H ASM MOV AH, 05H ); I have seen the second method in use, but the first is also a viable option. Assuming they allow reference to actual variable names, this would be much easier than doing the actual assembly and linking (or copying the assembled code back into the pascal program). Eg. (* A nonsense example. *) VAR temp : BYTE; BEGIN read ( temp ); ASM MOV AH, temp . . . END; I finally tracked down a PD program to do the inline stuff, but dislike the idea of such a two/three-step process. Since the code for this program isn't very large, it would seem that including this capability within the compiler would not be that difficult, nor cause the compiler size to grow much. Are there subtleties that I am missing ?? -- -- Paul :