Re: A89: TIOS functions disobey register conventions!


[Prev][Next][Index][Thread]

Re: A89: TIOS functions disobey register conventions!




In a message dated 12/21/2000 11:43:29 PM Eastern Standard Time, 
pad@OCF.Berkeley.EDU writes:

<< #define SAVE_SCREEN
 
 #include <nostub.h>
 #include <all.h>
 
 int _ti89;
 
 register long x asm("d4");
 
 void _main(void) {
     clrscr();
 
     x = 123456789;
 
     printf("%ld\n", x);
 
     OSContrastUp();
 
     printf("%ld\n", x);
 
     while (!(kbhit()));
 }
  >>
  Wouldn't the "while (!(kbhit()))" crash, since there isn't anything for it 
to perform in the while loop.
--just a thought