aboutsummaryrefslogtreecommitdiff
path: root/assets/blender/gleis/advtrains_dtrack_shared.xcf
diff options
context:
space:
mode:
authorAntonia <antonia@antonia.is>2022-03-02 23:56:59 +0100
committerGabriel PĂ©rez-Cerezo <gabriel@gpcf.eu>2022-03-03 00:12:43 +0100
commit744aee2cdd319bc19e83cc9efb52a07ae6adbb06 (patch)
tree88095d3e09fe8f2f8abdf5504ed305fbb91f0c1a /assets/blender/gleis/advtrains_dtrack_shared.xcf
parent8beacdc5085c0a88e0fe8a1983b5f7f9874183a0 (diff)
downloadadvtrains-744aee2cdd319bc19e83cc9efb52a07ae6adbb06.tar.gz
advtrains-744aee2cdd319bc19e83cc9efb52a07ae6adbb06.tar.bz2
advtrains-744aee2cdd319bc19e83cc9efb52a07ae6adbb06.zip
Minor change to README
45 degree platform design is not a sound
Diffstat (limited to 'assets/blender/gleis/advtrains_dtrack_shared.xcf')
0 files changed, 0 insertions, 0 deletions
id='n155' href='#n155'>155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268
/*
** $Id: lopcodes.h,v 1.125.1.1 2007/12/27 13:02:25 roberto Exp $
** Opcodes for Lua virtual machine
** See Copyright Notice in lua.h
*/

#ifndef lopcodes_h
#define lopcodes_h

#include "llimits.h"


/*===========================================================================
  We assume that instructions are unsigned numbers.
  All instructions have an opcode in the first 6 bits.
  Instructions can have the following fields:
	`A' : 8 bits
	`B' : 9 bits
	`C' : 9 bits
	`Bx' : 18 bits (`B' and `C' together)
	`sBx' : signed Bx

  A signed argument is represented in excess K; that is, the number
  value is the unsigned value minus K. K is exactly the maximum value
  for that argument (so that -max is represented by 0, and +max is
  represented by 2*max), which is half the maximum for the corresponding
  unsigned argument.
===========================================================================*/


enum OpMode {iABC, iABx, iAsBx};  /* basic instruction format */


/*
** size and position of opcode arguments.
*/
#define SIZE_C		9
#define SIZE_B		9
#define SIZE_Bx		(SIZE_C + SIZE_B)
#define SIZE_A		8

#define SIZE_OP		6

#define POS_OP		0
#define POS_A		(POS_OP + SIZE_OP)
#define POS_C		(POS_A + SIZE_A)
#define POS_B		(POS_C + SIZE_C)
#define POS_Bx		POS_C


/*
** limits for opcode arguments.
** we use (signed) int to manipulate most arguments,
** so they must fit in LUAI_BITSINT-1 bits (-1 for sign)
*/
#if SIZE_Bx < LUAI_BITSINT-1
#define MAXARG_Bx        ((1<<SIZE_Bx)-1)
#define MAXARG_sBx        (MAXARG_Bx>>1)         /* `sBx' is signed */
#else
#define MAXARG_Bx        MAX_INT
#define MAXARG_sBx        MAX_INT
#endif


#define MAXARG_A        ((1<<SIZE_A)-1)
#define MAXARG_B        ((1<<SIZE_B)-1)
#define MAXARG_C        ((1<<SIZE_C)-1)