add dual example

This commit is contained in:
soypat
2023-05-24 20:03:35 -03:00
parent 4634276950
commit 41e514150d
7 changed files with 151 additions and 37 deletions
+6 -1
View File
@@ -97,9 +97,14 @@ var __reg_map = map[regstr]string{
77: __reg_name[507:514],
}
func (i regstr) valid() bool {
_, ok := __reg_map[i]
return ok
}
func (i regstr) String() string {
if str, ok := __reg_map[i]; ok {
return str
}
return "_reg(" + strconv.FormatInt(int64(i), 10) + ")"
return "regstr(" + strconv.FormatInt(int64(i), 10) + ")"
}