File: constants.lua

package info (click to toggle)
lua-ljsyscall 0.12-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,732 kB
  • sloc: ansic: 434; sh: 59; makefile: 3
file content (29 lines) | stat: -rw-r--r-- 441 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
-- x86 specific code

local arch = {}

-- x86 register names
arch.REG = {
  GS         = 0,
  FS         = 1,
  ES         = 2,
  DS         = 3,
  EDI        = 4,
  ESI        = 5,
  EBP        = 6,
  ESP        = 7,
  EBX        = 8,
  EDX        = 9,
  ECX        = 10,
  EAX        = 11,
  TRAPNO     = 12,
  ERR        = 13,
  EIP        = 14,
  CS         = 15,
  EFL        = 16,
  UESP       = 17,
  SS         = 18,
}

return arch