Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo Basic - <b>$segment declare new code segment</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
$SEGMENT                 Declare New Code Segment

 $SEGMENT

    Causes Turbo Basic to compile all subsequent instructions in a new
    code segment.

   --------------------------------------------------------------------------

      Notes:    $SEGMENT is designed to be used when a program exceeds 64K
                and the compiler returns Error 409 (Segment Overflow).

                Intersegment jumps produce slightly more code and take
                slightly longer to execute than intrasegment jumps.
                Therefore, it's advisable to place $SEGMENT at natural
                execution boundaries.

                $SEGMENT may not appear within FOR/NEXT, DO/LOOP,
                WHILE/WEND or IF/ENDIF constructs.

                A program may consist of up to sixteen code segments.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson