projects
/
YACASL2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dumpwordコマンドで10進数/16進数を表す文字列が引数になるよう仕様変更
[YACASL2.git]
/
src
/
dump.c
diff --git
a/src/dump.c
b/src/dump.c
index
5362de4
..
09fe4dd
100644
(file)
--- a/
src/dump.c
+++ b/
src/dump.c
@@
-1,19
+1,5
@@
#include "casl2.h"
#include "casl2.h"
-/* WORD値を2進数表記に変換 */
-char *word2bit(const WORD word)
-{
- WORD mask = 0x8000;
- char *bit, *p;
- bit = malloc(16 + 1);
- p = bit;
- do {
- *p++ = (word & mask) ? '1' : '0';
- } while((mask >>= 1) > 0);
- *p = '\0';
- return bit;
-}
-
/* COMET IIのメモリを表示 */
void dumpmemory()
{
/* COMET IIのメモリを表示 */
void dumpmemory()
{