Name:NwS1[View in context] Type:Subroutine Category:Universe Summary:Flip the sign and double an INWK byte
Flip the sign of the INWK byte at offset X, and increment X by 2. This is
used by the space station creation routine at NWSPS.
Arguments:XThe offset of the INWK byte to be flipped Returns:XX is incremented by 2
.NwS1LDAINWK,X\ Load the X-th byte of INWK into A and flip bit 7,EOR#%10000000\ storing the result back in the X-th byte of INWKSTAINWK,XINX\ Add 2 to XINXRTS\ Return from the subroutine