#include <stdbool.h>
#include <stdio.h>
#include <assert.h>
#include <time.h>
#include "struct.h"
#include "word.h"
#include "cmem.h"
#include "cerr.h"
Go to the source code of this file.
|
| CLOCK | clock_str2clock (const char *str) |
| | クロック周波数を表す数値文字列を、正の整数値であるCLOCK型の数値に変換。変換できない場合は、エラーを表示して0を返す
|
| void | addcerrlist_exec () |
| | 実行エラーをエラーリストに追加する
|
| void | exec () |
| | COMET II仮想マシンを実行する
|
| void | nop () |
| | NOP命令。語長1(OPのみ)
|
| void | ld_r_adr_x () |
| | LD命令 - オペランドr,adr,x。語長2.
|
| void | ld_r1_r2 () |
| | LD命令 - オペランドr1,r2。語長1.
|
| void | st () |
| | ST命令。語長2.
|
| void | lad () |
| | LAD命令。語長2.
|
| void | adda_r_adr_x () |
| | ADDA命令 - オペランドr,adr,x。語長2.
|
| void | adda_r1_r2 () |
| | ADDA命令 - オペランドr1,r2。語長1.
|
| void | suba_r_adr_x () |
| | SUBA命令 - オペランドr,adr,x。語長2.
|
| void | suba_r1_r2 () |
| | SUBA命令 - オペランドr1,r2。語長1.
|
| void | addl_r_adr_x () |
| | ADDL命令 - オペランドr,adr,x。語長2.
|
| void | addl_r1_r2 () |
| | ADDL命令 - オペランドr1,r2。語長1.
|
| void | subl_r_adr_x () |
| | SUBL命令 - オペランドr,adr,x。語長2.
|
| void | subl_r1_r2 () |
| | SUBL命令 - オペランドr1,r2。語長1.
|
| void | and_r_adr_x () |
| | AND命令 - オペランドr,adr,x。語長2.
|
| void | and_r1_r2 () |
| | AND命令 - オペランドr1,r2。語長1.
|
| void | or_r_adr_x () |
| | OR命令 - オペランドr,adr,x。語長2.
|
| void | or_r1_r2 () |
| | OR命令 - オペランドr1,r2。語長1.
|
| void | xor_r_adr_x () |
| | XOR命令 - オペランドr,adr,x。語長2.
|
| void | xor_r1_r2 () |
| | XOR命令 - オペランドr1,r2。語長1.
|
| void | cpa_r_adr_x () |
| | CPA命令 - オペランドr,adr,x。語長2.
|
| void | cpa_r1_r2 () |
| | CPA命令 - オペランドr1,r2。語長1.
|
| void | cpl_r_adr_x () |
| | CPL命令 - オペランドr,adr,x。語長2.
|
| void | cpl_r1_r2 () |
| | CPL命令 - オペランドr1,r2。語長1.
|
| void | sla () |
| | SLA命令 - オペランドr,adr,x。語長2.
|
| void | sra () |
| | SRA命令 - オペランドr,adr,x。語長2.
|
| void | sll () |
| | SLL命令 - オペランドr,adr,x。語長2.
|
| void | srl () |
| | SRL命令 - オペランドr,adr,x。語長2.
|
| void | jpl () |
| | JPL命令。語長2.
|
| void | jmi () |
| | JMI命令。語長2.
|
| void | jnz () |
| | JNZ命令。語長2.
|
| void | jze () |
| | JZE命令。語長2.
|
| void | jov () |
| | JOV命令。語長2.
|
| void | jump () |
| | JUMP命令。語長2.
|
| void | push () |
| | PUSH命令。語長2.
|
| void | pop () |
| | POP命令。語長1.
|
| void | call () |
| | CALL命令。語長2.
|
| void | ret () |
| | RET命令。語長1(OPのみ)
|
| void | svc () |
| | SVC命令。語長2.
|
| void | dumpmemory (WORD start, WORD end) |
| | COMET IIのメモリを表示する
|
| void | dspregister () |
| | COMET IIのレジスタを表示する
|
| void | dsp_trace_dump () |
| | COMET IIのレジスタとメモリを実行状況と設定に応じて表示する
|
◆ anonymous enum
| Enumerator |
|---|
| INSIZE | IN命令の、入力領域
|
Definition at line 13 of file exec.h.
◆ adda_r1_r2()
ADDA命令 - オペランドr1,r2。語長1.
Definition at line 285 of file exec.c.
◆ adda_r_adr_x()
ADDA命令 - オペランドr,adr,x。語長2.
Definition at line 278 of file exec.c.
◆ addcerrlist_exec()
| void addcerrlist_exec |
( |
| ) |
|
実行エラーをエラーリストに追加する
Definition at line 221 of file exec.c.
◆ addl_r1_r2()
ADDL命令 - オペランドr1,r2。語長1.
Definition at line 345 of file exec.c.
◆ addl_r_adr_x()
ADDL命令 - オペランドr,adr,x。語長2.
Definition at line 338 of file exec.c.
◆ and_r1_r2()
AND命令 - オペランドr1,r2。語長1.
Definition at line 373 of file exec.c.
◆ and_r_adr_x()
AND命令 - オペランドr,adr,x。語長2.
Definition at line 366 of file exec.c.
◆ call()
CALL命令。語長2.
Definition at line 648 of file exec.c.
◆ clock_str2clock()
| CLOCK clock_str2clock |
( |
const char * | str | ) |
|
クロック周波数を表す数値文字列を、正の整数値であるCLOCK型の数値に変換。変換できない場合は、エラーを表示して0を返す
- Returns
- クロック周波数を表すCLOCK型の正の整数値。エラー時は0
- Parameters
-
Definition at line 92 of file exec.c.
◆ cpa_r1_r2()
CPA命令 - オペランドr1,r2。語長1.
Definition at line 425 of file exec.c.
◆ cpa_r_adr_x()
CPA命令 - オペランドr,adr,x。語長2.
Definition at line 418 of file exec.c.
◆ cpl_r1_r2()
CPL命令 - オペランドr1,r2。語長1.
Definition at line 449 of file exec.c.
◆ cpl_r_adr_x()
CPL命令 - オペランドr,adr,x。語長2.
Definition at line 442 of file exec.c.
◆ dsp_trace_dump()
COMET IIのレジスタとメモリを実行状況と設定に応じて表示する
Definition at line 61 of file dump.c.
◆ dspregister()
COMET IIのレジスタを表示する
Definition at line 40 of file dump.c.
◆ dumpmemory()
| void dumpmemory |
( |
WORD | start, |
|
|
WORD | end ) |
COMET IIのメモリを表示する
- Parameters
-
| start | 表示の開始アドレス |
| end | 表示の終了アドレス |
Definition at line 6 of file dump.c.
◆ exec()
COMET II仮想マシンを実行する
Definition at line 684 of file exec.c.
◆ jmi()
JMI命令。語長2.
Definition at line 569 of file exec.c.
◆ jnz()
JNZ命令。語長2.
Definition at line 579 of file exec.c.
◆ jov()
JOV命令。語長2.
Definition at line 615 of file exec.c.
◆ jpl()
JPL命令。語長2.
Definition at line 605 of file exec.c.
◆ jump()
JUMP命令。語長2.
Definition at line 599 of file exec.c.
◆ jze()
JZE命令。語長2.
Definition at line 589 of file exec.c.
◆ lad()
LAD命令。語長2.
Definition at line 252 of file exec.c.
◆ ld_r1_r2()
LD命令 - オペランドr1,r2。語長1.
Definition at line 238 of file exec.c.
◆ ld_r_adr_x()
LD命令 - オペランドr,adr,x。語長2.
Definition at line 231 of file exec.c.
◆ nop()
NOP命令。語長1(OPのみ)
Definition at line 226 of file exec.c.
◆ or_r1_r2()
OR命令 - オペランドr1,r2。語長1.
Definition at line 387 of file exec.c.
◆ or_r_adr_x()
OR命令 - オペランドr,adr,x。語長2.
Definition at line 380 of file exec.c.
◆ pop()
POP命令。語長1.
Definition at line 633 of file exec.c.
◆ push()
PUSH命令。語長2.
Definition at line 625 of file exec.c.
◆ ret()
RET命令。語長1(OPのみ)
Definition at line 656 of file exec.c.
◆ sla()
SLA命令 - オペランドr,adr,x。語長2.
算術演算なので、第15ビットは送り出されない
Definition at line 456 of file exec.c.
◆ sll()
SLL命令 - オペランドr,adr,x。語長2.
Definition at line 517 of file exec.c.
◆ sra()
SRA命令 - オペランドr,adr,x。語長2.
算術演算なので、第15ビットは送り出されない 空いたビット位置には符号と同じものが入る
Definition at line 485 of file exec.c.
◆ srl()
SRL命令 - オペランドr,adr,x。語長2.
Definition at line 543 of file exec.c.
◆ st()
ST命令。語長2.
Definition at line 245 of file exec.c.
◆ suba_r1_r2()
SUBA命令 - オペランドr1,r2。語長1.
Definition at line 299 of file exec.c.
◆ suba_r_adr_x()
SUBA命令 - オペランドr,adr,x。語長2.
Definition at line 292 of file exec.c.
◆ subl_r1_r2()
SUBL命令 - オペランドr1,r2。語長1.
Definition at line 359 of file exec.c.
◆ subl_r_adr_x()
SUBL命令 - オペランドr,adr,x。語長2.
Definition at line 352 of file exec.c.
◆ svc()
SVC命令。語長2.
Definition at line 666 of file exec.c.
◆ xor_r1_r2()
XOR命令 - オペランドr1,r2。語長1.
Definition at line 401 of file exec.c.
◆ xor_r_adr_x()
XOR命令 - オペランドr,adr,x。語長2.
Definition at line 394 of file exec.c.