List of known syscalls - AtomCrafty/MajiroTools GitHub Wiki
List of known syscalls
NEW INFORMATION: System calls are hashed just like everything else, and use the group name @MAJIRO_INTER
.
i.e. $abs@MAJIRO_INTER
-> $959B0A16
List of call hashes and known signatures used with the syscall and syscallp opcodes. These are internal functions within the engine, and they are the only type of hashed name that's still a mystery.
Ongoing syscall documentation is being done in this Google Sheet to make the process easier. Information may at best irregularly be added to this wiki page.
Note: void return type is listed with signature until a non-void syscall
opcode is found using it. Function arguments are determined based off encountered uses.
Possible Syscalls
Hash | Signature | Notes |
---|---|---|
$10DB0A43 | void $load_library(_name$) |
Seen repeatedly in a huge list going through most script names (no ext). |
Named syscalls
Hash | Signature | Notes |
---|---|---|
$1295BBDA | void $event_hook_after(_str$, _func) |
|
$078A756E | void $event_hook(_str$, _func) |
|
$266A3C79 | func $strupr$(_str$) |
|
$DF644F85 | void $dialog_error_ok(_1, ...) |
variadic |
$83D81F59 | func $page_create(_w, _h, [_color = 1]) |
_color: 1 -> 32 bpp, 0 -> 8 bpp |
$F94B3586 | func $page_create_withalfa(_w, _h, [_color = 1]) |
_color: 1 -> 32 bpp, 0 -> 8 bpp |
$DAD96289 | func $page_create_file(_str$) |
|
$57EFA275 | func $page_create_file_withalfa(_str$) |
|
$C50DFD06 | void $page_release(_page) |
|
$6E83677A | func $get_variable(_str$) |
|
$CD290AEF | $set_variable |
TODO |
$76EE6C90 | void $do_event(_str$) |
|
$F3679C34 | void $debugout(_1, ...) |
variadic |
$A62AA5EB | func $is_fast_mode() |
|
$C21F8B49 | func $is_auto_mode() |
|
$619DE833 | func $is_report_no_pic() |
|
$4B5AC64B | func $is_log_no_pic() |
|
$6E6C641A | func $is_testplay() |
|
$5B87A41D | func $console_is_on() |
|
$B5A1E3C9 | void $console_cls() |
|
$F1097A07 | func $voice_stat() |
|
$D1F672C7 | void $voice_wait() |
|
$EE154520 | func $get_autospeed() |
|
$CF35F0E3 | void $wait(_int) |
|
$661AFB43 | void $sprite_rotate(_spr, _int2) |
|
$E119D5BA | void $sprite_move(_spr, _int2, _int3) |
|
$4A02D664 | void $sprite_priority_high(_spr) |
|
$FF7C52E6 | void $sprite_alfa_set(_spr, _int) |
|
$EF4581DC | func $sprite_create(_1) |
|
$6584F13E | func $timer() |
|
$E06200C4 | func $client_width() |
|
$109CA5DB | func $atoi(_str$) |
|
$8AEF9167 | func $strmid$(_str$, _start, _length) |
|
$06906970 | func $strleft$(_str$, _length) |
|
$25401A1F | func $strright$(_str$, _start) |
|
$E5C70196 | func $get_mojispeed() |
|
$C5270429 | func $get_font_name$() |
|
$708B0256 | void $sound2(_fileName$, [_flags = 0]) |
|
$892E9B20 | func $mk_read() |
|
$EE6B328D | func $timer_progress(_start, _duration, _factor) |
_factor * min(_duration, now - _start) / _duration |
$30FA2A29 | void $console_setzerotime() |
|
$924EE3EB | func $rgb(_r, _g, _b) |
|
$265E07D7 | func $sprite_get_page(_spr) |
|
$56BBBA3A | void $grp_copy(_srcpage, _x, _y, _xl, _yl, _dstpage, [_i7, _i8]) |
_x2, _y2? |
$30636D6E | void $grp_extcopy(_page, _x, _y, _xl, _yl, _page2, _int7, _int8) |
|
$D01BE374 | void $grp_boxfill(_page, _x, _y, _w, _h, _color) |
|
$FDDF6C40 | void $grp_extboxfill(_page, _x, _y, _w, _h, _color, _transparency) |
_transparency: 1 -> fully opaque, 256 -> no effect |
$61BAE53C | void $grp_mulboxfill(_page, _x, _y, _w, _h, _color) |
|
$FD128A61 | void $grp_sepia(_page, _x, _y, _xl, _yl, _low, _high, [_int8]) |
|
$70612DB5 | func $get_alfapage(_page) |
|
$06B3C8AC | void $console_font(_name$, _yl, _xl, _ystep, _isproportional) |
|
$D4066E31 | void $histbuff_disable() |
|
$403960F8 | void $console_set(_int1, _x, _y, _xl, _yl) |
|
$5FDCCCEE | void $console_color(_int1, _int2) |
_fg, _bg? |
$F1F8A206 | void $console_locate_force(_x, _y) |
|
$4133D7A9 | void $histbuff_enable() |
|
$111BD910 | func $get_effectspeed() |
|
$6ED38886 | void $set_autospeed(_spd) |
|
$6501CC30 | void $set_mojispeed(_spd) |
|
$0C93FCB4 | void $set_effectspeed(_spd) |
|
$44B5C4ED | void $save_menu_disable() |
|
$81CE0485 | func $fast_mode_disable() |
returns previous state |
$60085FA4 | func $mouse_disable() |
returns previous state |
$4D849AA6 | void $save_menu_enable() |
|
$8C7F4C1E | void $fast_mode_enable() |
|
$44BC7555 | void $mouse_enable() |
|
$1204D7E8 | void $mk_unwait() |
|
$65F2E980 | func $page_len_y(_page) |
|
$F8FD08F6 | func $page_len_x(_page) |
|
$F80BC9B6 | void $sprite_alfa_define(_spr, _i2, _i3, _i4, _i5, _i6, _i7) |
variadic? |
$D7771B72 | void $sprite_alfa_wait(_spr) |
|
$F6A05538 | func $sprite_create_ext(_page) |
|
$58B31737 | void $sprite_release(_spr) |
|
$01B4517C | void $sprite_xmodify_define(_spr, _flt2%, _int2, ...) |
variadic flt int pairs? |
$6F384A3D | void $sprite_ymodify_define(_spr, _flt2%, _int2, ...) |
variadic flt int pairs? |
$F2F9DAA8 | func $thread_begin(_func) |
func defines ctor/dtor |
$CF2B1E50 | void $invalidate_disable() |
|
$979D1F16 | void $console_off(_int1, _int2) |
(1, 1) bools? |
$A2743878 | void $console_on(_int1, _int2) |
(1, 1) bools? |
$6DE6CDFC | void $invalidate_enable() |
|
$307F28BC | void $console_redraw(_int) |
(-1) time? instant? |
$69DB4512 | func $strstr(_str$, _find$) |
index of string in _str or -1 |
$B0C8F550 | func $strlen(_str$) |
|
$05EA6E4D | func $get_last_msg$() |
|
$F8004993 | void $save_point(_saveinfo$) |
_saveinfo$ is text displayed save menus, such as current message, time of save creation, etc. |
$FAC4F361 | void $set_auto_mode() |
|
$818A4B92 | void $reset_fast_mode() |
|
$4E1EB9D0 | void $areaevent_reset() |
|
$A7C6E918 | void $areaevent_setdefault($_lclick, $_rclick, $_mclick, $_mroll) |
setup mouse events, and pass callback functions |
$F8D18340 | void $areaevent_set(_id, _x, _y, _xl, _yl, $_on, $_off, $_click) |
|
$0E42730D | func $console_curpos_x() |
|
$934D927B | func $console_curpos_y() |
|
$C29B30E3 | void $sprite_animate_define(_spr, _frm, _spd, ...) |
(_frm, _spd) variadic |
$3A3BFB29 | void $areaevent_check() |
|
$ED84E320 | void $sound3(_name$) |
|
$008ACBC0 | func $mk_wait() |
|
$3704C919 | void $exit() |
|
$3A3CA0F1 | void $do_load(_num) |
_num=9999 used for quick load |
$89018DD1 | void $do_save(_num) |
_num=9999 used for quick save |
$4FFAB7C4 | func $is_save_menu_disable() |
|
$35A89417 | void $fontout(_name$, [_xl, _yl]) |
|
$57F6310D | void $fontout_locate(_page, _xl, _yl) |
|
$90816C6E | void $fontout_color(_fg, _bg) |
|
$E186D19A | void $fontout_font(_name$, _yl, _xl, _isproportional) |
|
$959B0A16 | func $abs(_int) |
|
$8C283F7F | func $client_height() |
|
$D3C06820 | func $pic_is_exist(_name$) |
|
$DFD5599E | void $invalidate_rect(_page, _x, _y, _xl, _yl) |
|
$C2C3C4F4 | func $sprite_create_file(_name$, [_int1, _int2, _int3, _int4]) |
|
$F9705332 | void $page_set_antidata(_int1, _int2) |
|
$5548EF5E | void $sprite_priority_high_single(_spr1, _spr2) |
|
$539B07BC | func $pic_len_x(_name$) |
|
$CE94E6CA | func $pic_len_y(_name$) |
|
$546F69C3 | void $sound2_stop() |
|
$9EF1DDC3 | void $set_fast_mode() |
|
$DFDBA8E4 | void $sprite_animate_add(_spr, _frm, _spd) |
variadic? |