]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/16_head.c
updated the copyleft wwww i am not deAD! i just been 2 busy last 6 monthes
[16.git] / src / lib / 16_head.c
index 1af195348864d51b8a1d690f5677cef1d102c7c8..b015902ad898188731bcf9ef2ee3b70c622dd553 100755 (executable)
@@ -1,5 +1,5 @@
 /* Project 16 Source Code~\r
- * Copyright (C) 2012-2017 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover\r
+ * Copyright (C) 2012-2018 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover\r
  *\r
  * This file is part of Project 16.\r
  *\r
 \r
 #include "src/lib/16_head.h"\r
 \r
+//cpu reg stuff for _AX, _BX, _CX, _DX\r
+#ifdef __WATCOMC__\r
+union regs CPURegs;\r
+#endif\r
+\r
 // big global status text buffer\r
 char global_temp_status_text[512];\r
 char global_temp_status_text2[512];\r
@@ -198,3 +203,15 @@ void print_mem(void const *vp, size_t n)
        putchar('\n');\r
        printf("\nstruct size is %zu bytes\n", n);\r
 };\r
+\r
+//from: https://groups.google.com/forum/#!topic/comp.lang.asm.x86/QtuVXl43nDo\r
+void hres (void)\r
+{\r
+       __asm {\r
+               mov     ax,3\r
+               int     10h\r
+               mov     ax,1112h\r
+               xor     bx,bx\r
+               int     10h\r
+       }\r
+}\r