Category : Assembly Language Source Code
Archive   : TASMSWAN.ZIP
Filename : CFLAGS.C

 
Output of file : CFLAGS.C contained in archive : TASMSWAN.ZIP
/******************************************************************
cflags.c
displays flags
NOTE: you must use the TCC comand-line compiler for this.
See book.
********/

#pragma inline
#include

void showflags();

main()
{
showflags();
}

void showflags()
{
unsigned int theflags;

printf("- - - - O D I T S Z - A - P - C\n");
asm pushf
asm pop [theflags]
asm mov cx,16
Again:
asm rol [Word ptr theflags],1
asm push cx
printf("%d ", (theflags & 1));
asm pop cx
asm loop Again
printf("\n");
}


  3 Responses to “Category : Assembly Language Source Code
Archive   : TASMSWAN.ZIP
Filename : CFLAGS.C

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/