Register

Type Alias Register 

Source
pub type Register = EReg<u64>;
Expand description

A register type used by contracts

Aliased Type§

pub enum Register {
Show 16 variants Zero = 0, Ra = 1, Sp = 2, Gp = 3, Tp = 4, T0 = 5, T1 = 6, T2 = 7, S0 = 8, S1 = 9, A0 = 10, A1 = 11, A2 = 12, A3 = 13, A4 = 14, A5 = 15,
}

Variants§

§

Zero = 0

Always zero: x0

§

Ra = 1

Return address: x1

§

Sp = 2

Stack pointer: x2

§

Gp = 3

Global pointer: x3

§

Tp = 4

Thread pointer: x4

§

T0 = 5

Temporary/alternate return address: x5

§

T1 = 6

Temporary: x6

§

T2 = 7

Temporary: x7

§

S0 = 8

Saved register/frame pointer: x8

§

S1 = 9

Saved register: x9

§

A0 = 10

Function argument/return value: x10

§

A1 = 11

Function argument/return value: x11

§

A2 = 12

Function argument: x12

§

A3 = 13

Function argument: x13

§

A4 = 14

Function argument: x14

§

A5 = 15

Function argument: x15