Skip to navigation

Elite on the BBC Micro and NES

Tube: write_0346

[Elite-A, I/O processor]

Name: write_0346 [Show more] Type: Subroutine Category: Tube Summary: Implement the write_0346 command (update LASCT)
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * tube_table calls write_0346

This routine is run when the parasite sends a write_0346 command. It updates the I/O processor's value of LASCT to the value sent by the parasite.
.write_0346 JSR tube_get \ Get the parameter from the parasite for the command: \ \ write_0346(value) \ \ and store it as follows: \ \ * A = the new value of LASCT STA LASCT \ Update the value in LASCT to the value we just \ received from the parasite RTS \ Return from the subroutine