'Set A to 8
ICONST 8
GSTORE A

'Set B to 10
ICONST 10
GSTORE B

'load A and B onto the stack
GLOAD A
GLOAD B

'Test if A > B
ISGT

'Jump to label 22 if A > B
JT 22

'Else

'Load B
GLOAD B

'Set C to B
GSTORE C
'Load C onto the stack
GLOAD C

'Print C
PRINT_I
HALT

'Address 22

'Load A
GLOAD A

'Set C to A
GSTORE C

'Load C onto the stack
GLOAD C

'Print the value of C
PRINT_I
HALT