Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

What are lopcodes/opcodes and where do I learn about them?
Started by vlade.lind Apr 01 2019 11:24 PM

- - - - -
2 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

vlade.lind

[GLOBAL: userInfoPane.html]
vlade.lind
  • Observer

  • 1 posts
  • Corona SDK

I have recently learnt practically everything I could in rlua (ROBLOX’s modified version of lua), and want to learn about opcodes.
I got asked this question once: "how many bits does a lua 5.1 enum take up within its int32 construct?", so I decided to learn everything I could to understand the whole entirety of that question.
Anyone mind helping me out on where to start?
I am not aware of stacks by the way, as I couldn’t understand them.

[TOPIC: post.html]
#2

thomas6

[GLOBAL: userInfoPane.html]
thomas6
  • Contributor

  • 936 posts
  • Corona SDK

Wow, that's hardcore low-level stuff! There won't be too many people on this forum who will be able to help you out with that - I sure can't but I hope someone will be able to help you. Good luck!



[TOPIC: post.html]
#3

StarCrunch

[GLOBAL: userInfoPane.html]
StarCrunch
  • Contributor

  • 791 posts
  • Corona SDK

Kein-Hong Man wrote up A No-Frills Introduction to Lua 5.1 VM Instructions long ago and it still gets brought up each time a new Lua version comes out (with others trying to maintain it), so I'd definitely start there.

 

While searching for the link I also see that MetaLua (a "metacompiler", that lets you write Lua in Lua) has an opcodes module, which makes sense: lopcodes.lua It looks like he goes into the details of several of them.




[topic_controls]
[/topic_controls]