.module script_input_6

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

.globl _fade_frames_per_step, _camera_settings, ___bank_scene_4, _scene_4

.area _CODE_255

.LOCAL_ACTOR = -4

___bank_script_input_6 = 255
.globl ___bank_script_input_6

_script_input_6::
        VM_RESERVE              4

GBVM$script_input_6$9ffc3716_9d92_4dbb_99e1_d89dcbc8cfd8$80bdf4ec_1fcb_48d8_9633_5d55cbbd72b7$scene$80bdf4ec_1fcb_48d8_9633_5d55cbbd72b7$script = .
.globl GBVM$script_input_6$9ffc3716_9d92_4dbb_99e1_d89dcbc8cfd8$80bdf4ec_1fcb_48d8_9633_5d55cbbd72b7$scene$80bdf4ec_1fcb_48d8_9633_5d55cbbd72b7$script
        ; Load Scene
        VM_SET_CONST_INT8       _fade_frames_per_step, 3
        VM_FADE_OUT             1
        ; -- Calculate coordinate values
        VM_RPN
            .R_INT16    1792
            .R_REF_SET  ^/(.LOCAL_ACTOR + 1)/
            .R_INT16    1024
            .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_LEFT
        VM_SET_CONST_INT8       _camera_settings, .CAMERA_LOCK
        VM_RAISE                EXCEPTION_CHANGE_SCENE, 3
            IMPORT_FAR_PTR_DATA _scene_4

        ; Stop Script
        VM_STOP
