YACASL2
Loading...
Searching...
No Matches
exec.h File Reference
#include <stdbool.h>
#include <stdio.h>
#include <assert.h>
#include <time.h>
#include "struct.h"
#include "word.h"
#include "cmem.h"
#include "cerr.h"
Include dependency graph for exec.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  { INSIZE = 256 }

Functions

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のレジスタを表示する

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
INSIZE 

IN命令の、入力領域

Definition at line 13 of file exec.h.

Function Documentation

◆ adda_r1_r2()

void adda_r1_r2 ( )

ADDA命令 - オペランドr1,r2。語長1.

Definition at line 274 of file exec.c.

Here is the call graph for this function:

◆ adda_r_adr_x()

void adda_r_adr_x ( )

ADDA命令 - オペランドr,adr,x。語長2.

Definition at line 267 of file exec.c.

Here is the call graph for this function:

◆ addcerrlist_exec()

void addcerrlist_exec ( )

実行エラーをエラーリストに追加する

Definition at line 210 of file exec.c.

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

◆ addl_r1_r2()

void addl_r1_r2 ( )

ADDL命令 - オペランドr1,r2。語長1.

Definition at line 334 of file exec.c.

Here is the call graph for this function:

◆ addl_r_adr_x()

void addl_r_adr_x ( )

ADDL命令 - オペランドr,adr,x。語長2.

Definition at line 327 of file exec.c.

Here is the call graph for this function:

◆ and_r1_r2()

void and_r1_r2 ( )

AND命令 - オペランドr1,r2。語長1.

Definition at line 362 of file exec.c.

Here is the call graph for this function:

◆ and_r_adr_x()

void and_r_adr_x ( )

AND命令 - オペランドr,adr,x。語長2.

Definition at line 355 of file exec.c.

Here is the call graph for this function:

◆ call()

void call ( )

CALL命令。語長2.

Definition at line 637 of file exec.c.

Here is the call graph for this function:

◆ cpa_r1_r2()

void cpa_r1_r2 ( )

CPA命令 - オペランドr1,r2。語長1.

Definition at line 414 of file exec.c.

Here is the call graph for this function:

◆ cpa_r_adr_x()

void cpa_r_adr_x ( )

CPA命令 - オペランドr,adr,x。語長2.

Definition at line 407 of file exec.c.

Here is the call graph for this function:

◆ cpl_r1_r2()

void cpl_r1_r2 ( )

CPL命令 - オペランドr1,r2。語長1.

Definition at line 438 of file exec.c.

Here is the call graph for this function:

◆ cpl_r_adr_x()

void cpl_r_adr_x ( )

CPL命令 - オペランドr,adr,x。語長2.

Definition at line 431 of file exec.c.

Here is the call graph for this function:

◆ dspregister()

void dspregister ( )

COMET IIのレジスタを表示する

Definition at line 38 of file dump.c.

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

◆ dumpmemory()

void dumpmemory ( WORD start,
WORD end )

COMET IIのメモリを表示する

Parameters
start表示の開始アドレス
end表示の終了アドレス

Definition at line 4 of file dump.c.

Here is the caller graph for this function:

◆ exec()

void exec ( )

COMET II仮想マシンを実行する

Definition at line 673 of file exec.c.

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

◆ jmi()

void jmi ( )

JMI命令。語長2.

Definition at line 568 of file exec.c.

Here is the call graph for this function:

◆ jnz()

void jnz ( )

JNZ命令。語長2.

Definition at line 578 of file exec.c.

Here is the call graph for this function:

◆ jov()

void jov ( )

JOV命令。語長2.

Definition at line 598 of file exec.c.

Here is the call graph for this function:

◆ jpl()

void jpl ( )

JPL命令。語長2.

Definition at line 558 of file exec.c.

Here is the call graph for this function:

◆ jump()

void jump ( )

JUMP命令。語長2.

Definition at line 608 of file exec.c.

Here is the call graph for this function:

◆ jze()

void jze ( )

JZE命令。語長2.

Definition at line 588 of file exec.c.

Here is the call graph for this function:

◆ lad()

void lad ( )

LAD命令。語長2.

Definition at line 241 of file exec.c.

Here is the call graph for this function:

◆ ld_r1_r2()

void ld_r1_r2 ( )

LD命令 - オペランドr1,r2。語長1.

Definition at line 227 of file exec.c.

Here is the call graph for this function:

◆ ld_r_adr_x()

void ld_r_adr_x ( )

LD命令 - オペランドr,adr,x。語長2.

Definition at line 220 of file exec.c.

Here is the call graph for this function:

◆ nop()

void nop ( )

NOP命令。語長1(OPのみ)

Definition at line 215 of file exec.c.

◆ or_r1_r2()

void or_r1_r2 ( )

OR命令 - オペランドr1,r2。語長1.

Definition at line 376 of file exec.c.

Here is the call graph for this function:

◆ or_r_adr_x()

void or_r_adr_x ( )

OR命令 - オペランドr,adr,x。語長2.

Definition at line 369 of file exec.c.

Here is the call graph for this function:

◆ pop()

void pop ( )

POP命令。語長1.

Definition at line 622 of file exec.c.

Here is the call graph for this function:

◆ push()

void push ( )

PUSH命令。語長2.

Definition at line 614 of file exec.c.

Here is the call graph for this function:

◆ ret()

void ret ( )

RET命令。語長1(OPのみ)

Definition at line 645 of file exec.c.

◆ sla()

void sla ( )

SLA命令 - オペランドr,adr,x。語長2.

算術演算なので、第15ビットは送り出されない

Definition at line 445 of file exec.c.

Here is the call graph for this function:

◆ sll()

void sll ( )

SLL命令 - オペランドr,adr,x。語長2.

Definition at line 506 of file exec.c.

Here is the call graph for this function:

◆ sra()

void sra ( )

SRA命令 - オペランドr,adr,x。語長2.

算術演算なので、第15ビットは送り出されない 空いたビット位置には符号と同じものが入る

Definition at line 474 of file exec.c.

Here is the call graph for this function:

◆ srl()

void srl ( )

SRL命令 - オペランドr,adr,x。語長2.

Definition at line 532 of file exec.c.

Here is the call graph for this function:

◆ st()

void st ( )

ST命令。語長2.

Definition at line 234 of file exec.c.

Here is the call graph for this function:

◆ suba_r1_r2()

void suba_r1_r2 ( )

SUBA命令 - オペランドr1,r2。語長1.

Definition at line 288 of file exec.c.

Here is the call graph for this function:

◆ suba_r_adr_x()

void suba_r_adr_x ( )

SUBA命令 - オペランドr,adr,x。語長2.

Definition at line 281 of file exec.c.

Here is the call graph for this function:

◆ subl_r1_r2()

void subl_r1_r2 ( )

SUBL命令 - オペランドr1,r2。語長1.

Definition at line 348 of file exec.c.

Here is the call graph for this function:

◆ subl_r_adr_x()

void subl_r_adr_x ( )

SUBL命令 - オペランドr,adr,x。語長2.

Definition at line 341 of file exec.c.

Here is the call graph for this function:

◆ svc()

void svc ( )

SVC命令。語長2.

Definition at line 655 of file exec.c.

Here is the call graph for this function:

◆ xor_r1_r2()

void xor_r1_r2 ( )

XOR命令 - オペランドr1,r2。語長1.

Definition at line 390 of file exec.c.

Here is the call graph for this function:

◆ xor_r_adr_x()

void xor_r_adr_x ( )

XOR命令 - オペランドr,adr,x。語長2.

Definition at line 383 of file exec.c.

Here is the call graph for this function: