From ac3eacbf7405f7e20fa41a3e200d7702240b27d4 Mon Sep 17 00:00:00 2001 From: lash Date: Mon, 3 Apr 2023 09:14:45 +0100 Subject: [PATCH] Improve clarity for menu batch codes --- go/vm/interpreter.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/go/vm/interpreter.go b/go/vm/interpreter.go index ffe8f15..90fbb43 100644 --- a/go/vm/interpreter.go +++ b/go/vm/interpreter.go @@ -7,10 +7,12 @@ import ( type BatchCode uint16 const ( - MENU_DOWN = 256 - MENU_UP = 257 - MENU_NEXT = 258 - MENU_PREVIOUS = 259 + _MENU_OFFSET = 256 + MENU_DOWN = _MENU_OFFSET + MENU_UP = _MENU_OFFSET + 1 + MENU_NEXT = _MENU_OFFSET + 2 + MENU_PREVIOUS = _MENU_OFFSET + 3 + //MENU_BROWSE = _MENU_OFFSET + 4 ) var ( @@ -19,6 +21,7 @@ var ( "UP": MENU_UP, "NEXT": MENU_NEXT, "PREVIOUS": MENU_PREVIOUS, + //"BROWSE": MENU_BROWSE, } )