YACASL2
Loading...
Searching...
No Matches
monitor.c File Reference
#include <stdio.h>
#include <readline/readline.h>
#include <readline/history.h>
#include "monitor.h"
#include "disassemble.h"
Include dependency graph for monitor.c:

Go to the source code of this file.

Functions

unsigned adrhash (WORD adr)
 アドレスのハッシュ値を返す
bool getbps (WORD adr)
 ブレークポイント表にアドレスがある場合はtrue、ない場合はfalseを返す
bool addbps (WORD adr)
 ブレークポイント表にアドレスを追加する
bool delbps (WORD adr)
 ブレークポイント表からアドレスを削除する
void listbps ()
void freebpslist (BPSLIST *head)
void freebps ()
 ブレークポイント表を解放する
MONARGSmonargstok (const char *str)
 文字列から、モニターの引数を取得する
MONCMDLINEmonlinetok (const char *line)
 行から、モニターの命令と引数を取得する
bool stracmp (char *str1, int str2c, char *str2v[])
void warn_ignore_arg (int argc, char *argv[])
 引数が無視されることを表示する
void mon_break (int argc, char *argv[])
void mon_dump (int argc, char *argv[])
MONCMDTYPE monitorcmd (char *cmd, MONARGS *args)
 モニターの命令を実行する
void free_moncmdline (MONCMDLINE *moncmdl)
int monquit ()
 モニター終了時の処理をする
void monitor ()
 COMET IIモニターを起動する

Variables

static BPSLISTbps [BPSTABSIZE]
 ブレークポイント表
static char * monitor_prompt = "(comet2 monitor) "
 comet2monitorのプロンプト

Function Documentation

◆ addbps()

bool addbps ( WORD adr)

ブレークポイント表にアドレスを追加する

Returns
追加した場合はtrue、追加しなかった場合はfalse
Parameters
*adrアドレス

Definition at line 41 of file monitor.c.

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

◆ adrhash()

unsigned adrhash ( WORD adr)

アドレスのハッシュ値を返す

Returns
ハッシュ値
Parameters
adrアドレス

Definition at line 17 of file monitor.c.

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

◆ delbps()

bool delbps ( WORD adr)

ブレークポイント表からアドレスを削除する

Returns
削除した場合はtrue、削除しなかった場合はfalse
Parameters
*adrアドレス

Definition at line 61 of file monitor.c.

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

◆ free_moncmdline()

void free_moncmdline ( MONCMDLINE * moncmdl)

Definition at line 365 of file monitor.c.

Here is the caller graph for this function:

◆ freebps()

void freebps ( )

ブレークポイント表を解放する

Definition at line 120 of file monitor.c.

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

◆ freebpslist()

void freebpslist ( BPSLIST * head)

Definition at line 110 of file monitor.c.

Here is the caller graph for this function:

◆ getbps()

bool getbps ( WORD adr)

ブレークポイント表にアドレスがある場合はtrue、ない場合はfalseを返す

Returns
trueまたはfalse
Parameters
*adrアドレス

Definition at line 29 of file monitor.c.

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

◆ listbps()

void listbps ( )

Definition at line 93 of file monitor.c.

Here is the caller graph for this function:

◆ mon_break()

void mon_break ( int argc,
char * argv[] )

Definition at line 213 of file monitor.c.

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

◆ mon_dump()

void mon_dump ( int argc,
char * argv[] )

Definition at line 260 of file monitor.c.

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

◆ monargstok()

MONARGS * monargstok ( const char * str)

文字列から、モニターの引数を取得する

Returns
モニターの引数
Parameters
*str文字列

Definition at line 128 of file monitor.c.

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

◆ monitor()

void monitor ( )

COMET IIモニターを起動する

Definition at line 397 of file monitor.c.

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

◆ monitorcmd()

MONCMDTYPE monitorcmd ( char * cmd,
MONARGS * args )

モニターの命令を実行する

Returns
モニター命令の種類
Parameters
*cmdモニター命令
*argsモニター命令の引数

Definition at line 290 of file monitor.c.

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

◆ monlinetok()

MONCMDLINE * monlinetok ( const char * line)

行から、モニターの命令と引数を取得する

Returns
モニターの命令と引数
Parameters
*line

Definition at line 150 of file monitor.c.

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

◆ monquit()

int monquit ( )

モニター終了時の処理をする

Definition at line 383 of file monitor.c.

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

◆ stracmp()

bool stracmp ( char * str1,
int str2c,
char * str2v[] )

Definition at line 186 of file monitor.c.

Here is the caller graph for this function:

◆ warn_ignore_arg()

void warn_ignore_arg ( int argc,
char * argv[] )

引数が無視されることを表示する

Parameters
argc引数の配列数
*argv引数配列

Definition at line 200 of file monitor.c.

Here is the caller graph for this function:

Variable Documentation

◆ bps

BPSLIST* bps[BPSTABSIZE]
static

ブレークポイント表

Definition at line 10 of file monitor.c.

◆ monitor_prompt

char* monitor_prompt = "(comet2 monitor) "
static

comet2monitorのプロンプト

Definition at line 15 of file monitor.c.