Skip to content

scroll macro


Perfoms a scroll text


scroll [Direction],firstline, last_line_to_scroll

Example 1

    .include ""
    ; Scroll all lines from bottom to the first line : it erases the first line with the second and so open0
    scroll up, 0, 26
    scroll down, 0, 26

Example 2

the first line to scroll is computed and is in X register

    .include ""
    .include "../orix-sdk/macros/SDK_display.mac"

    ; The second arg is empty because we notice to the macro that it's provided by X register
    ldx #3
    scroll up,, 26

This only work with X register

Call XSCROB routine or XSCROH

Last update: 2024-02-15