HBlank
Previous  Next

Description: Used for setting the scanline for which the horizontal blank occurs.

     Syntax:
     
HBlank <ScanLine>

Part
Description
<ScanLine>
Required. Sets the scanline count in which the horizontal blank will occur. Valid range is 0 to 222 will be counted before execution + 1. If <ScanLine> is set to 0, the horizontal interrupt will execute on each line. This value isn't recommended as the vertical interrupt will never occur.

Example:

        HBlank 45
        On HBlank GoSub MyRoutine
        Enable HBlank
        End

MyRoutine:
        Return