/*#include "bml16.lib"int main(void) { LV_T lv1, lv2, lv3; lv1 = 0x000A; printf("lv1: 0000 0000 0000 1010b = %5d\n", lv1); lv2 = 0x8000; printf("lv2: 1000 0000 0000 0000b = %5d\n", lv2); lv3 = 0xFFFF; printf("lv3: 1111 1111 1111 1111b = %5d\n", lv3); return 0;}*/
/*#include "bml16.lib"int main(void) { LV_T lv1 = 0x000A, lv2 = 0x8000, lv3 = 0xFFFF; double tv1, tv2, tv3; tv1 = lvtotv(lv1); printf("tv1: 0.0000 0000 0000 1010b = %18.16f\n", tv1); tv2 = lvtotv(lv2); printf("tv2: 0.1000 0000 0000 0000b = %18.16f\n", tv2); tv3 = lvtotv(lv3); printf("tv3: 0.1111 1111 1111 1111b = %18.16f\n", tv3); return 0;}*/
/*#include "bml16.lib"int main(void) { LV_T lv1, lv2, lv3; double tv1 = 0.000152587890625, tv2 = 0.5, tv3 = 0.9999847412109375; lv1 = tvtolv(tv1); printf("lv1: 0.000152587890625 = %5d/65536\n", lv1); lv2 = tvtolv(tv2); printf("lv2: 0.5 = %5d/65536\n", lv2); lv3 = tvtolv(tv3); printf("lv3: 0.9999847412109375 = %5d/65536\n", lv3); return 0;}*/
/*#include "bml16.lib"int main(void) { LV_T lv; double frac, tv; frac = 0.333333; printf("frac: %f\n", frac); lv = tvtolv(frac); printf("lv : %d\n", lv); tv = lvtotv(lv); printf("tv : %18.16f\n", tv); return 0;}*/
/*#include "bml16.lib"int main(void) { LV_T lv1, lv2, lv3; lv1 = 0xFF00; printf("lv1 : 1111 1111 0000 0000b = %5d\n", lv1); lv2 = 0x0F0F; printf("lv2 : 0000 1111 0000 1111b = %5d\n", lv2); lv3 = not(lv1); printf("not lv1 : 0000 0000 1111 1111b = %5d\n", lv3); lv3 = and(lv1, lv2); printf("lv1 and lv2: 0000 1111 0000 0000b = %5d\n", lv3); lv3 = ior(lv1, lv2); printf("lv1 ior lv2: 1111 1111 0000 1111b = %5d\n", lv3); lv3 = xor(lv1, lv2); printf("lv1 xor lv2: 1111 0000 0000 1111b = %5d\n", lv3); lv3 = imp(lv1, lv2); printf("lv1 imp lv2: 0000 1111 1111 1111b = %5d\n", lv3); lv3 = eqv(lv1, lv2); printf("lv1 eqv lv2: 0000 1111 1111 0000b = %5d\n", lv3); return 0;}*/
/*#include "bml16.lib"int main(void) { LV_T lv1, lv2, lv3; double tv; lv1 = 0x000F; printf("lv1 : 0000 0000 0000 1111b = %5d\n", lv1); lv2 = 0x9999; printf("lv2 : 1001 1001 1001 1001b = %5d\n", lv2); lv3 = and(lv1, lv2); printf("lv1 and lv2 : 0000 0000 0000 1001b = %5d\n", lv3); tv = cond(lv1, lv2); printf("lv2 cond by lv1: %18.16f\n", tv); return 0;}*/
/*#include "bml16.lib"int main(void) { LV_T cake = 0x4441, eat = 0x8181, happy = 0x9385; char str[MAXLEN]; strcpy(str, "cake"); prtlv(str, cake); strcpy(str, "eat"); prtlv(str, eat); strcpy(str, "happy"); prtlv(str, happy); return 0;}*/
/*#include "bml16.lib"int main(void) { LV_T lv1, lv2, lv3; char atomfile[] = "ATOMS.DAT"; prtatoms(atomfile); return 0;}*/
/*#include "bml16.lib"int main(void) { char atomfile[] = "ATOMS.DAT", form[] = "cond(cake,happy)"; evalform(atomfile, form, ON); return 0;}*/
/*#include "bml16.lib"int main(void) { char atomfile[] = "ATOMS.DAT", knowfile[] = "KNOWS.DAT"; evalgap(atomfile, knowfile, ON); return 0;}*/
/*#include "bml16.lib"int main(void) { char atomfile[] = "ATOMS.DAT", knowfile[] = "KNOWS.DAT"; optatoms(atomfile, knowfile, 10, OFF); return 0;}*/
/*#include "bml16.lib"int main(void) { demo_bird1(); return 0; }*/
/*#include "bml16.lib"int main(void) { demo_bird2(); return 0; }*/
/*#include "bml16.lib"int main(void) { demo_bird3(); return 0; }*/
/*#include "bml16.lib"int main(void) { demo_cake1(); return 0; }*/
/*#include "bml16.lib"int main(void) { demo_cake2(); return 0; }*/