Skip to navigation

Elite on the BBC Micro

Text: DTW5 [Elite-A, Parasite]

Name: DTW5 [Show more] Type: Variable Category: Text Summary: The size of the justified text buffer at BUF Deep dive: Extended text tokens
Context: See this variable in context in the source code References: This variable is used as follows: * HME2 calls DTW5 * MT15 calls DTW5 * MT17 calls DTW5 * TT26 calls DTW5

When justified text is enabled by jump token 14, {justify}, during printing of extended text tokens, text is fed into a buffer at BUF instead of being printed straight away, so it can be padded out with spaces to justify the text. DTW5 contains the size of the buffer, so BUF + DTW5 points to the first free byte after the end of the buffer.
.DTW5 EQUB 0