X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_head.c;h=b015902ad898188731bcf9ef2ee3b70c622dd553;hb=6021fc3f27b895d382fbd30488ead35657e39196;hp=9862dd73a4e85bf222f5d1afc84a2ae81b40d995;hpb=842f607d99529d04abd59cadfeb3706a612adc6f;p=16.git diff --git a/src/lib/16_head.c b/src/lib/16_head.c index 9862dd73..b015902a 100755 --- a/src/lib/16_head.c +++ b/src/lib/16_head.c @@ -1,5 +1,5 @@ /* Project 16 Source Code~ - * Copyright (C) 2012-2017 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover + * Copyright (C) 2012-2018 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover * * This file is part of Project 16. * @@ -22,6 +22,12 @@ #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]; @@ -197,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 + } +}