.module script_input

.include "vm.i"
.include "data/game_globals.i"
.include "macro.i"

.globl _fade_frames_per_step, _camera_settings, ___bank_scene_15, _scene_15

.area _CODE_255

.LOCAL_ACTOR = -4

___bank_script_input = 255
.globl ___bank_script_input

_script_input::
        VM_RESERVE              4

GBVM$script_input$7521920b_846a_479e_a0d2_a3465986ec11$aae81f2f_404d_41db_a9fd_32c62d07c37e$scene$aae81f2f_404d_41db_a9fd_32c62d07c37e$script = .
.globl GBVM$script_input$7521920b_846a_479e_a0d2_a3465986ec11$aae81f2f_404d_41db_a9fd_32c62d07c37e$scene$aae81f2f_404d_41db_a9fd_32c62d07c37e$script
        ; Push Scene State
        VM_SCENE_PUSH

GBVM$script_input$0b41a76f_f0b9_4aeb_b340_75b55cf96f27$aae81f2f_404d_41db_a9fd_32c62d07c37e$scene$aae81f2f_404d_41db_a9fd_32c62d07c37e$script = .
.globl GBVM$script_input$0b41a76f_f0b9_4aeb_b340_75b55cf96f27$aae81f2f_404d_41db_a9fd_32c62d07c37e$scene$aae81f2f_404d_41db_a9fd_32c62d07c37e$script
        ; Load Scene
        VM_SET_CONST_INT8       _fade_frames_per_step, 1
        VM_FADE_OUT             1
        ; -- Calculate coordinate values
        VM_RPN
            .R_INT16    0
            .R_REF_SET  ^/(.LOCAL_ACTOR + 1)/
            .R_INT16    0
            .R_REF_SET  ^/(.LOCAL_ACTOR + 2)/
            .R_STOP
        VM_SET_CONST            .LOCAL_ACTOR, 0
        VM_ACTOR_SET_POS        .LOCAL_ACTOR
        VM_ACTOR_SET_DIR        .LOCAL_ACTOR, .DIR_DOWN
        VM_SET_CONST_INT8       _camera_settings, .CAMERA_LOCK
        VM_RAISE                EXCEPTION_CHANGE_SCENE, 3
            IMPORT_FAR_PTR_DATA _scene_15

        ; Stop Script
        VM_STOP
