X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=device%2Fexamples%2Fxa51%2Fhello.c;h=224327fccc8b6c264244ccd10cfb26a598719762;hb=7bd65e1fe4f20a1fbfd8efee29982849824704bd;hp=f908681d735d0ea2370f01f6b6c87ff1b8aec702;hpb=0f13c644cfaea92c44ee33764cce21da520676f1;p=fw%2Fsdcc diff --git a/device/examples/xa51/hello.c b/device/examples/xa51/hello.c index f908681d..224327fc 100755 --- a/device/examples/xa51/hello.c +++ b/device/examples/xa51/hello.c @@ -13,12 +13,17 @@ xdata at 0x1234 abs; extern xdata xee; void main(void) { - //xe=getchar(); - abs=1; - putchar('1'); - putchar('2'); - putchar('3'); - putchar('\n'); puts ("Hello world.\n\r"); + _asm ;johan _endasm; + if (d2==2) { + puts ("d2=2"); + } else { + puts ("d2!=2"); + } + if (d1!=3) { + puts ("d1!=3"); + } else { + puts ("d1==3"); + } exit_simulator(); }