Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C/C++ User's Guide - labels can be used in in-line assembly code. here is an example. http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Labels can be used in in-line assembly code.  Here is an example.

Example:

     extern void _disable_video( unsigned );
     #pragma aux _disable_video =    \
      "again: in al,dx"              \
             "test al,8"             \
             "jz again"              \
             "mov dx,03c0h"          \
             "mov al,11h"            \
             "out dx,al"             \
             "mov al,0"              \
             "out dx,al"             \
             parm [dx]               \
             modify [al dx];

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson