/
antim
/
LuaPlayer-by-YuliaTeam
Обзор
Документация
Войти
/
antim
/
LuaPlayer-by-YuliaTeam
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
lua/src/lopcodes.c
152 строки
9 KB
r3trob0y
Initial commit
18 окт 2025, 02:50
18 окт 2025, 02:50
14d430e
Код
Авторство
О чём код?
/*----------------------------------------------------------------------------------------------------------------------# #-----------------------------------------------------------------------------------------------------------------------# #------ This File is Part Of : ----------------------------------------------------------------------------------------# #------- _ ------------------- ______ _ --------------------------------------------------------------------------# #------ | | ------------------- (_____ \ | | --------------------------------------------------------------------------# #------ | | --- _ _ ____ _____) )| | ____ _ _ ____ ____ ----------------------------------------------# #------ | | --- | | | | / _ | | ____/ | | / _ || | | | / _ ) / ___) ----------------------------------------------# #------ | |_____| |_| |( ( | | | | | |( ( | || |_| |( (/ / | | --------------------------------------------------# #------ |_______)\____| \_||_| |_| |_| \_||_| \__ | \____)|_| --------------------------------------------------# #------------------------------------------------- (____/ -------------------------------------------------------------# #------------------------ ______ _ -------------------------------------------------------------------------------# #------------------------ (_____ \ | | -------------------------------------------------------------------------------# #------------------------ _____) )| | _ _ ___ ------------------------------------------------------------------# #------------------------ | ____/ | || | | | /___) ------------------------------------------------------------------# #------------------------ | | | || |_| ||___ | ------------------------------------------------------------------# #------------------------ |_| |_| \____|(___/ ------------------------------------------------------------------# #-----------------------------------------------------------------------------------------------------------------------# #-----------------------------------------------------------------------------------------------------------------------# #- Licensed under the GPL License --------------------------------------------------------------------------------------# #-----------------------------------------------------------------------------------------------------------------------# #- Copyright (c) Nanni <cusunanni@hotmail.it> --------------------------------------------------------------------------# #- Copyright (c) Rinnegatamante <rinnegatamante@eternalongju2.com> -----------------------------------------------------# #-----------------------------------------------------------------------------------------------------------------------# #- Official Forum : http://rinnegatamante.eu/luaplayerplus/forum.php ---------------------------------------------------# #- For help using LuaPlayerPlus, coding help, and other please visit : http://rinnegatamante.eu/luaplayerplus/forum.php # #-----------------------------------------------------------------------------------------------------------------------# #- Credits : -----------------------------------------------------------------------------------------------------------# #-----------------------------------------------------------------------------------------------------------------------# #- Homemister for LPHM sourcecode --------------------------------------------------------------------------------------# #- Zack & Shine for LP Euphoria sourcecode -----------------------------------------------------------------------------# #- ab5000 for support on psp-ita.com -----------------------------------------------------------------------------------# #- valantin for sceIoMvdir and sceIoCpdir improved functions------------------------------------------------------------# #- Dark_AleX for usbdevice ---------------------------------------------------------------------------------------------# #- VirtuosFlame & ColdBird for iso drivers and kuBridge ----------------------------------------------------------------# #- sakya for Media Engine and OslibMod ---------------------------------------------------------------------------------# #- Booster & silverspring for EEPROM write/read functions --------------------------------------------------------------# #- Akind for RemoteJoyLite ---------------------------------------------------------------------------------------------# #- cooleyes for mpeg4 lib ----------------------------------------------------------------------------------------------# #- Arshia001 for PSPAALib ----------------------------------------------------------------------------------------------# #- InsertWittyName & MK2k for PGE sourcecode ---------------------------------------------------------------------------# #- Youresam for LUA BMPLib ---------------------------------------------------------------------------------------------# #- Raphael for vram manager code ---------------------------------------------------------------------------------------# #- Dynodzzo for LSD concepts -------------------------------------------------------------------------------------------# #- ab_portugal for Image.negative function -----------------------------------------------------------------------------# #- JiC� for drawCircle function ----------------------------------------------------------------------------------------# #- Rapper_skull & DarkGiovy for testing LuaPlayer Plus and coming up with some neat ideas for it. ----------------------# #-----------------------------------------------------------------------------------------------------------------------# #-----------------------------------------------------------------------------------------------------------------------# #-----------------------------------------------------------------------------------------------------------------------# #-----------------------------------------------------------------------------------------------------------------------*/ /* ** $Id: lopcodes.c,v 1.37.1.1 2007/12/27 13:02:25 roberto Exp $ ** See Copyright Notice in lua.h */ #define lopcodes_c #define LUA_CORE #include "lopcodes.h" /* ORDER OP */ const char *const luaP_opnames[NUM_OPCODES+1] = { "MOVE", "LOADK", "LOADBOOL", "LOADNIL", "GETUPVAL", "GETGLOBAL", "GETTABLE", "SETGLOBAL", "SETUPVAL", "SETTABLE", "NEWTABLE", "SELF", "ADD", "SUB", "MUL", "DIV", "MOD", "POW", "UNM", "NOT", "LEN", "CONCAT", "JMP", "EQ", "LT", "LE", "TEST", "TESTSET", "CALL", "TAILCALL", "RETURN", "FORLOOP", "FORPREP", "TFORLOOP", "SETLIST", "CLOSE", "CLOSURE", "VARARG", NULL }; #define opmode(t,a,b,c,m) (((t)<<7) | ((a)<<6) | ((b)<<4) | ((c)<<2) | (m)) const lu_byte luaP_opmodes[NUM_OPCODES] = { /* T A B C mode opcode */ opmode(0, 1, OpArgR, OpArgN, iABC) /* OP_MOVE */ ,opmode(0, 1, OpArgK, OpArgN, iABx) /* OP_LOADK */ ,opmode(0, 1, OpArgU, OpArgU, iABC) /* OP_LOADBOOL */ ,opmode(0, 1, OpArgR, OpArgN, iABC) /* OP_LOADNIL */ ,opmode(0, 1, OpArgU, OpArgN, iABC) /* OP_GETUPVAL */ ,opmode(0, 1, OpArgK, OpArgN, iABx) /* OP_GETGLOBAL */ ,opmode(0, 1, OpArgR, OpArgK, iABC) /* OP_GETTABLE */ ,opmode(0, 0, OpArgK, OpArgN, iABx) /* OP_SETGLOBAL */ ,opmode(0, 0, OpArgU, OpArgN, iABC) /* OP_SETUPVAL */ ,opmode(0, 0, OpArgK, OpArgK, iABC) /* OP_SETTABLE */ ,opmode(0, 1, OpArgU, OpArgU, iABC) /* OP_NEWTABLE */ ,opmode(0, 1, OpArgR, OpArgK, iABC) /* OP_SELF */ ,opmode(0, 1, OpArgK, OpArgK, iABC) /* OP_ADD */ ,opmode(0, 1, OpArgK, OpArgK, iABC) /* OP_SUB */ ,opmode(0, 1, OpArgK, OpArgK, iABC) /* OP_MUL */ ,opmode(0, 1, OpArgK, OpArgK, iABC) /* OP_DIV */ ,opmode(0, 1, OpArgK, OpArgK, iABC) /* OP_MOD */ ,opmode(0, 1, OpArgK, OpArgK, iABC) /* OP_POW */ ,opmode(0, 1, OpArgR, OpArgN, iABC) /* OP_UNM */ ,opmode(0, 1, OpArgR, OpArgN, iABC) /* OP_NOT */ ,opmode(0, 1, OpArgR, OpArgN, iABC) /* OP_LEN */ ,opmode(0, 1, OpArgR, OpArgR, iABC) /* OP_CONCAT */ ,opmode(0, 0, OpArgR, OpArgN, iAsBx) /* OP_JMP */ ,opmode(1, 0, OpArgK, OpArgK, iABC) /* OP_EQ */ ,opmode(1, 0, OpArgK, OpArgK, iABC) /* OP_LT */ ,opmode(1, 0, OpArgK, OpArgK, iABC) /* OP_LE */ ,opmode(1, 1, OpArgR, OpArgU, iABC) /* OP_TEST */ ,opmode(1, 1, OpArgR, OpArgU, iABC) /* OP_TESTSET */ ,opmode(0, 1, OpArgU, OpArgU, iABC) /* OP_CALL */ ,opmode(0, 1, OpArgU, OpArgU, iABC) /* OP_TAILCALL */ ,opmode(0, 0, OpArgU, OpArgN, iABC) /* OP_RETURN */ ,opmode(0, 1, OpArgR, OpArgN, iAsBx) /* OP_FORLOOP */ ,opmode(0, 1, OpArgR, OpArgN, iAsBx) /* OP_FORPREP */ ,opmode(1, 0, OpArgN, OpArgU, iABC) /* OP_TFORLOOP */ ,opmode(0, 0, OpArgU, OpArgU, iABC) /* OP_SETLIST */ ,opmode(0, 0, OpArgN, OpArgN, iABC) /* OP_CLOSE */ ,opmode(0, 1, OpArgU, OpArgN, iABx) /* OP_CLOSURE */ ,opmode(0, 1, OpArgU, OpArgN, iABC) /* OP_VARARG */ };