Skip to navigation

Elite on the BBC Micro and NES

Text: DTW5

[BBC Master version]

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 uses DTW5 * MESS uses DTW5 * MT15 uses DTW5 * MT17 uses DTW5 * TT26 uses 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