projects
/
YACASL2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
comet2monitorの追加と、モニター機能作成
[YACASL2.git]
/
src
/
struct.c
diff --git
a/src/struct.c
b/src/struct.c
index
c1a1542
..
12caf87
100644
(file)
--- a/
src/struct.c
+++ b/
src/struct.c
@@
-238,6
+238,18
@@
char *getcmdname(WORD code)
return cmd;
}
return cmd;
}
+/**
+ * 汎用レジスタの番号からレジスタを表す文字列を返す
+ */
+
+char *grstr(WORD word)
+{
+ assert(word <= 7);
+ char *str = malloc_chk(3 + 1, "grstr.str");
+ sprintf(str, "GR%d", word);
+ return str;
+}
+
/**
* コードがキーの命令ハッシュ表を解放する
*/
/**
* コードがキーの命令ハッシュ表を解放する
*/