Skip to navigation

Elite on the BBC Micro

Tube: read_0346 [Elite-A, Parasite]

Name: read_0346 [Show more] Type: Subroutine Category: Tube Summary: Get the value of LASCT by sending a read_0346 command to the I/O processor
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * DEATH calls read_0346 * Main flight loop (Part 16 of 16) calls read_0346 * Main flight loop (Part 3 of 16) calls read_0346
.read_0346 LDA #&98 \ Send command &98 to the I/O processor: JSR tube_write \ \ =read_0346() \ \ which will ask the I/O processor to send the value of \ its copy of LASCT JSR tube_read \ Set A to the response from the I/O processor, which \ will be the value of LASCT that's stored in the I/O \ processor STA LASCT \ Update LASCT to the value received from the I/O \ processor RTS \ Return from the subroutine