Loading ...
Sorry, an error occurred while loading the content.
 

Re: Does WAIT Work?

Expand Messages
  • toml_12953
    That s what I get for trusting the manuals! Thanks, Mike. Tom L
    Message 1 of 3 , Jul 17, 2013
      That's what I get for trusting the manuals! Thanks, Mike.

      Tom L

      --- In altaircomputerclub@yahoogroups.com, "deramp5113" <deramp5113@...> wrote:
      >
      > The wait statement needs to be:
      >
      > WAIT 6,1,1
      >
      > This is because the new character available bit is negative logic (0=true). The third argument is XOR'd with input data before AND'ing with the 2nd argument. This converts the negative logic to positive logic.
      >
      > Mike
      >
      >
      > --- In altaircomputerclub@yahoogroups.com, "toml_12953" <tlake@> wrote:
      > >
      > >
      > > In the Altair BASIC manual it says WAIT 6,1 will wait until data comes
      > > in from the ACR. When I run the following code, I get nothing:
      > >
      > > 10 WAIT 6,1:A=INP(7):PRINT A:GOTO 10
      > >
      > > If I take the WAIT out, I do get data but it shows up as multiples since
      > > port 7 is read too fast for the incoming data. I could try to use a
      > > timing loop to delay the INP but WAIT is a much cleaner way to do it (if
      > > I can get it to work!) What am I doing wrong?
      > >
      > >  
      > >
      > > Tom Lake
      > >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.