(no subject)

Peter Tung Sing Lee (peterts@interchange.ubc.ca) Mon, 2 Oct 2000 23:52:28 -0700 (PDT)


Date: Mon, 2 Oct 2000 23:52:28 -0700 (PDT)
From: Peter Tung Sing Lee <peterts@interchange.ubc.ca>

Can anyone explain the following paragraph from Lab 2? "The value read from an input port corresponds to the logic levels on the data port's input signals. If the input and output signals not connected, then the value read will not necessarily be the value on the output port. This is unlike a normal memory location." Also, can someone please explain how the spoke/speek functions work? There's an example from the lab handout to verify if the 'E' key has been pressed: spoke ( 0xd0, 0x4) ; if ( speek ( 0xd0 ) & 0x8) { } Doesn't this set the value of memory location 0xd0 to 0x4? If so, what's the point of comparing the value of 0xd0 & 0x8? Thanks, Peter Lee