X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_head.c;h=25be7dab7d387519ee252e031a5deefef6506c93;hb=5af1604f7af6c1d1ab94299bfe6a4195b203a323;hp=1af195348864d51b8a1d690f5677cef1d102c7c8;hpb=7f33f5e74cc6486faa7182f3a12f214180e118fd;p=16.git diff --git a/src/lib/16_head.c b/src/lib/16_head.c index 1af19534..25be7dab 100755 --- a/src/lib/16_head.c +++ b/src/lib/16_head.c @@ -22,6 +22,11 @@ #include "src/lib/16_head.h" +//cpu reg stuff for _AX, _BX, _CX, _DX +#ifdef __WATCOMC__ +union regs CPURegs; +#endif + // big global status text buffer char global_temp_status_text[512]; char global_temp_status_text2[512]; @@ -198,3 +203,15 @@ void print_mem(void const *vp, size_t n) putchar('\n'); printf("\nstruct size is %zu bytes\n", n); }; + +//from: https://groups.google.com/forum/#!topic/comp.lang.asm.x86/QtuVXl43nDo +void hres (void) +{ + __asm { + mov ax,3 + int 10h + mov ax,1112h + xor bx,bx + int 10h + } +}