beautypg.com

Echelon Neuron User Manual

Page 126

background image

Instruction

Hexadecimal

Opcode

Instruction

Size (Bytes)

CPU Cycles

Required

Affect on

Carry Flag

SBR *+10

29

1

1

None

SBR *+11

2A

1

1

None

SBR *+12

2B

1

1

None

SBR *+13

2C

1

1

None

SBR *+14

2D

1

1

None

SBR *+15

2E

1

1

None

SBR *+16

2F

1

1

None


Example:
The following example shows two functions that share a common set of code. The

SBR instruction branches unconditionally from the end of one function to the

Common label to run the common code. This example assumes that the code at

label Sub_A requires fewer than 16 bytes.

Sub_B ... ; subroutine B

sbr Common

Sub_A ... ; subroutine A

Common ... ; common code

ret ; return to caller

116

Neuron Assembly Language Instruction Statements