YACASL2
Enumerations | Functions | Variables
struct.c File Reference
#include "struct.h"
#include "exec.h"
Include dependency graph for struct.c:

Go to the source code of this file.

Enumerations

enum  { CMDTABSIZE = 39 }
 

Functions

unsigned hash_cmdtype (const char *cmd, CMDTYPE type)
 
bool create_cmdtype_code ()
 
WORD getcmdcode (const char *cmd, CMDTYPE type)
 
void free_cmdtype_code ()
 
unsigned hash_code (WORD code)
 
bool create_code_cmdtype ()
 
const void * getcmdptr (WORD code)
 
CMDTYPE getcmdtype (WORD code)
 
char * getcmdname (WORD code)
 
void free_code_cmdtype ()
 
void reset (int memsize, int clocks)
 
void shutdown ()
 

Variables

SYSTEMsys
 COMET IIの仮想実行マシンシステム More...
 
EXECPTRexecptr
 
static COMET2CMD comet2cmd []
 
static int comet2cmdsize = ARRAYSIZE(comet2cmd)
 
static CMDTABcmdtype_code [CMDTABSIZE]
 
static CMDTABcode_cmdtype [CMDTABSIZE]
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

ハッシュ表のサイズ

Enumerator
CMDTABSIZE 

Definition at line 66 of file struct.c.

Function Documentation

◆ create_cmdtype_code()

bool create_cmdtype_code ( )

名前とタイプがキーの命令ハッシュ表を作成する

Definition at line 103 of file struct.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ create_code_cmdtype()

bool create_code_cmdtype ( )

コードがキーの命令ハッシュ表を作成する

Definition at line 174 of file struct.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ free_cmdtype_code()

void free_cmdtype_code ( )

名前とタイプがキーの命令ハッシュ表を解放する

Definition at line 141 of file struct.c.

Here is the caller graph for this function:

◆ free_code_cmdtype()

void free_code_cmdtype ( )

コードがキーの命令ハッシュ表を解放する

Definition at line 244 of file struct.c.

Here is the caller graph for this function:

◆ getcmdcode()

WORD getcmdcode ( const char *  cmd,
CMDTYPE  type 
)

命令の名前とタイプから、命令コードを返す
無効な場合は0xFFFFを返す

Definition at line 123 of file struct.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getcmdname()

char* getcmdname ( WORD  code)

命令コードから命令の名前を返す

Definition at line 227 of file struct.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getcmdptr()

const void* getcmdptr ( WORD  code)

命令コードから命令の関数ポインタを返す

Definition at line 193 of file struct.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getcmdtype()

CMDTYPE getcmdtype ( WORD  code)

命令コードから命令のタイプを返す

Definition at line 210 of file struct.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hash_cmdtype()

unsigned hash_cmdtype ( const char *  cmd,
CMDTYPE  type 
)

命令の名前とタイプからハッシュ値を生成する

Definition at line 78 of file struct.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hash_code()

unsigned hash_code ( WORD  code)

命令コードからハッシュ値を生成する

Definition at line 157 of file struct.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ reset()

void reset ( int  memsize,
int  clocks 
)

COMET II仮想マシンのリセット

Definition at line 259 of file struct.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ shutdown()

void shutdown ( )

COMET II仮想マシンのシャットダウン

Definition at line 286 of file struct.c.

Here is the caller graph for this function:

Variable Documentation

◆ cmdtype_code

CMDTAB* cmdtype_code[CMDTABSIZE]
static

ハッシュ表

Definition at line 73 of file struct.c.

◆ code_cmdtype

CMDTAB * code_cmdtype[CMDTABSIZE]
static

Definition at line 73 of file struct.c.

◆ comet2cmd

COMET2CMD comet2cmd[]
static

システムCOMET IIの命令表

Definition at line 17 of file struct.c.

◆ comet2cmdsize

int comet2cmdsize = ARRAYSIZE(comet2cmd)
static

命令表のサイズ

Definition at line 61 of file struct.c.

◆ execptr

EXECPTR* execptr

プログラム実行時の開始と終了のアドレス

Definition at line 12 of file struct.c.

◆ sys

SYSTEM* sys

COMET IIの仮想実行マシンシステム

COMET IIの仮想実行マシンシステム

Definition at line 7 of file struct.c.