M6809 の研究部屋

Z80 の 研究部屋と同じように、 M6809 について個人的に調査したデータを追加していこうと思います。

トップページへ戻る


目次

  1. 信号線の調査データ [Dec.16 2012]
  2. [INHERENT] [Dec.16 2012]
  3. [IMMEDIATE] [Dec.16 2012]
  4. [DIRECT] [Dec.16 2012]
  5. [EXTENDED] [Dec.16 2012]
  6. [INDEXED] [Dec.16 2012]
  7. [未整理データ] [Dec.16 2012]

トップページへ戻る


信号線の調査データ [Dec.16 2012]

HD68A09E を FPGA に接続してクロックを L にセットして信号線を読む、クロックを H にセットして信号線を読む、・・・ということを繰り替えして得たデータです。 'E' タイプのため、2 相のクロック信号 Q と E を CPU の外部で作成し供給する必要があります。今回は FPGA で作成した都合上 1 行の分解能が高くデータ量が多くなってしまっていますが、読めなくもないのでそのまま掲載します。 空の行で区切ってあるひとかたまり(24行)が CPU の 1 サイクルです。

例として、ADCA immediate 命令実行時の信号線の変化を次に掲載します。

Addr Data BS BA AVMA LIC BUSY RnW Q E TSC /NMI /IRQ /FIRQ
07FD F0   0  0  1    1   0    0   0 0 0   1    0    0
0100 89   0  0  1    1   0    1   0 0 0   1    0    0
0100 89   0  0  1    1   0    1   0 0 0   1    0    0
0100 89   0  0  1    1   0    1   0 0 0   1    0    0
0100 89   0  0  1    1   0    1   0 0 0   1    0    0
0100 89   0  0  1    1   0    1   0 0 0   1    0    0
0100 89   0  0  1    1   0    1   1 0 0   1    0    0
0100 89   0  0  1    0   0    1   1 0 0   1    0    0
0100 89   0  0  1    0   0    1   1 0 0   1    0    0
0100 89   0  0  1    0   0    1   1 0 0   1    0    0
0100 89   0  0  1    0   0    1   1 0 0   1    0    0
0100 89   0  0  1    0   0    1   1 0 0   1    0    0
0100 89   0  0  1    0   0    1   1 1 0   1    0    0
0100 89   0  0  1    0   0    1   1 1 0   1    0    0
0100 89   0  0  1    0   0    1   1 1 0   1    0    0
0100 89   0  0  1    0   0    1   1 1 0   1    0    0
0100 89   0  0  1    0   0    1   1 1 0   1    0    0
0100 89   0  0  1    0   0    1   1 1 0   1    0    0
0100 89   0  0  1    0   0    1   0 1 0   1    0    0
0100 89   0  0  1    0   0    1   0 1 0   1    0    0
0100 89   0  0  1    0   0    1   0 1 0   1    0    0
0100 89   0  0  1    0   0    1   0 1 0   1    0    0
0100 89   0  0  1    0   0    1   0 1 0   1    0    0
0100 89   0  0  1    0   0    1   0 1 0   1    0    0

0100 89   0  0  1    0   0    1   0 0 0   1    0    0
0101 89   0  0  1    0   0    1   0 0 0   1    0    0
0101 89   0  0  1    0   0    1   0 0 0   1    0    0
0101 89   0  0  1    0   0    1   0 0 0   1    0    0
0101 89   0  0  1    0   0    1   0 0 0   1    0    0
0101 89   0  0  1    0   0    1   0 0 0   1    0    0
0101 89   0  0  1    0   0    1   1 0 0   1    0    0
0101 89   0  0  1    1   0    1   1 0 0   1    0    0
0101 89   0  0  1    1   0    1   1 0 0   1    0    0
0101 89   0  0  1    1   0    1   1 0 0   1    0    0
0101 89   0  0  1    1   0    1   1 0 0   1    0    0
0101 89   0  0  1    1   0    1   1 0 0   1    0    0
0101 55   0  0  1    1   0    1   1 1 0   1    0    0
0101 55   0  0  1    1   0    1   1 1 0   1    0    0
0101 55   0  0  1    1   0    1   1 1 0   1    0    0
0101 55   0  0  1    1   0    1   1 1 0   1    0    0
0101 55   0  0  1    1   0    1   1 1 0   1    0    0
0101 55   0  0  1    1   0    1   1 1 0   1    0    0
0101 55   0  0  1    1   0    1   0 1 0   1    0    0
0101 55   0  0  1    1   0    1   0 1 0   1    0    0
0101 55   0  0  1    1   0    1   0 1 0   1    0    0
0101 55   0  0  1    1   0    1   0 1 0   1    0    0
0101 55   0  0  1    1   0    1   0 1 0   1    0    0
0101 55   0  0  1    1   0    1   0 1 0   1    0    0

ADCA 命令は 2 クロックサイクルで完了する命令です。なので上のかたまり(24行のブロック) 2 つで完了します。

/IRQ と /FIRQ がアサートされた状態になっていますが、ほとんどの命令では CC=$50 の状態でデータを取っているので影響はないです。

今回は実際に 1MHz で CPU を動作させながらデータを取得しているので、アドレスの変化が クロックの変化から 1 ステップ遅れています。

外部(メモリ)からのデータは E の立ち上がりで出力していますが、通常は Q の立ち上がりを起点にすると思います。この辺は少しデータが遅延していることにしてください。

調査したデータを以下に示します(ABC 順)。INDEXED アドレッシングについては X について調査したものだけを tar.gz 形式で置いておきます(サーバーの空きが残り少ないので)。 2 サイクルの INHERENT や IMMEDIATE に関しては実行される命令(内部動作)以外に違いはないため、外部信号に違いはほとんどありません。

データは半自動で取得したため全てのファイルに目を通していません。ミス等発見次第修正します。

トップページへ戻る


[INHERENT]

ABX_3cycles.txt
ASRA_2cycles.txt
ASRB_2cycles.txt
CLRA_2cycles.txt
CLRB_2cycles.txt
COMA_2cycles.txt
COMB_2cycles.txt
DAA_2cycles.txt
DECA_2cycles.txt
DECB_2cycles.txt
EORB_2cycles.txt
EXG_8cycles.txt
INCA_2cycles.txt
INCB_2cycles.txt
LSLA_ASLA_2cycles.txt
LSLB_2cycles.txt
LSRA_2cycles.txt
LSRB_2cycles.txt
MUL_11cycles.txt
NEGA_2cycles.txt
NEGB_2cycles.txt
NOP_2cycles.txt
PULS_xxcycles.txt
PUSHS_xxcycles.txt
ROLA_2cycles.txt
ROLB_2cycles.txt
RORA_2cycles.txt
RORB_2cycles.txt
SEX_2cycles.txt
TFR_6cycles.txt
TSTA_2cycles.txt
TSTB_2cycles.txt

目次へ戻る


[IMMEDIATE]

ADCA_immediate_2cycles.txt
ADCB_immediate_2cycles.txt
ADDA_immediate_2cycles.txt
ADDB_immediate_2cycles.txt
ADDD_immediate_4cycles.txt
ANDA_immediate_2cycles.txt
ANDB_immediate_2cycles.txt
ANDCC_immediate_3cycles.txt
BITA_immediate_2cycles.txt
BITB_immediate_2cycles.txt
CMPA_immediate_2cycles.txt
CMPB_immediate_2cycles.txt
CMPD_immediate_5cycles.txt (Added Feb. 11, 2020)
CMPS_immediate_5cycles.txt (Added Feb. 11, 2020)
CMPU_immediate_5cycles.txt (Added Feb. 11, 2020)
CMPX_immediate_4cycles.txt
CMPY_immediate_5cycles.txt (Added Feb. 11, 2020)
EORA_immediate_2cycles.txt
EORB_immediate_2cycles.txt
LDA_immediate_2cycles.txt
LDB_immediate_2cycles.txt
LDD_immediate_3cycles.txt
LDS_immediate_4cycles.txt (Added Feb. 11, 2020)
LDU_immediate_3cycles.txt
LDX_immediate_3cycles.txt
LDY_immediate_4cycles.txt (Added Feb. 11, 2020)
ORA_immediate_2cycles.txt
ORB_immediate_2cycles.txt
ORCC_immediate_3cycles.txt
SBCA_immediate_2cycles.txt
SBCB_immediate_2cycles.txt
SUBA_immediate_2cycles.txt
SUBB_immediate_2cycles.txt
SUBD_immediate_4cycles.txt

目次へ戻る


[DIRECT]

ADCA_direct_4cycles.txt
ADCB_direct_4cycles.txt
ADDA_direct_4cycles.txt
ADDB_direct_4cycles.txt
ADDD_direct_6cycles.txt
ANDA_direct_4cycles.txt
ANDB_direct_4cycles.txt
ASR_direct_6cycles.txt
BITA_direct_4cycles.txt
BITB_direct_4cycles.txt
CLR_direct_6cycles.txt
CMPA_direct_4cycles.txt
CMPB_direct_4cycles.txt
CMPD_direct_7cycles.txt (Added Feb. 11, 2020)
CMPS_direct_7cycles.txt (Added Feb. 11, 2020)
CMPU_direct_7cycles.txt (Added Feb. 11, 2020)
CMPX_direct_6cycles.txt
CMPY_direct_7cycles.txt (Added Feb. 11, 2020)
COM_direct_6cycles.txt
DEC_direct_6cycles.txt
EORA_direct_4cycles.txt
EORB_direct_4cycles.txt
INC_direct_6cycles.txt
JMP_direct_3cycles.txt
JSR_direct_7cycles.txt
LDA_direct_4cycles.txt
LDB_direct_4cycles.txt
LDD_direct_5cycles.txt
LDS_direct_6cycles.txt (Added Feb. 11, 2020)
LDU_direct_5cycles.txt
LDX_direct_5cycles.txt
LDY_direct_6cycles.txt (Added Feb. 11, 2020)
LSL_ASL_direct_6cycles.txt
LSR_direct_6cycles.txt
NEG_direct_6cycles.txt
ORA_direct_4cycles.txt
ORB_direct_4cycles.txt
ROL_direct_6cycles.txt
ROR_direct_6cycles.txt
SBCA_direct_4cycles.txt
SBCB_direct_4cycles.txt
STA_direct_4cycles.txt
STB_direct_4cycles.txt
STD_direct_5cycles.txt
STU_direct_5cycles.txt
STX_direct_5cycles.txt
SUBA_direct_4cycles.txt
SUBB_direct_4cycles.txt
SUBD_direct_6cycles.txt
TST_direct_6cycles.txt

目次へ戻る


[EXTENDED]

ADCA_extended_5cycles.txt
ADCB_extended_5cycles.txt
ADDA_extended_5cycles.txt
ADDB_extended_5cycles.txt
ADDD_extended_7cycles.txt
ANDA_extended_5cycles.txt
ANDB_extended_5cycles.txt
ASR_extended_7cycles.txt
BITA_extended_5cycles.txt
BITB_extended_5cycles.txt
CLR_extended_7cycles.txt
CMPA_extended_5cycles.txt
CMPB_extended_5cycles.txt
CMPD_extended_8cycles.txt (Added Feb. 11, 2020)
CMPS_extended_8cycles.txt (Added Feb. 11, 2020)
CMPU_extended_8cycles.txt (Added Feb. 11, 2020)
CMPX_extended_7cycles.txt
CMPY_extended_8cycles.txt (Added Feb. 11, 2020)
COM_extended_7cycles.txt
DEC_extended_7cycles.txt
EORA_extended_5cycles.txt
EORB_extended_5cycles.txt
INC_extended_7cycles.txt
JMP_extended_4cycles.txt
JSR_extended_8cycles.txt
LDA_extended_5cycles.txt
LDB_extended_5cycles.txt
LDD_extended_6cycles.txt
LDS_extended_7cycles.txt (Added Feb. 11, 2020)
LDU_extended_6cycles.txt
LDX_extended_6cycles.txt
LDY_extended_7cycles.txt (Added Feb. 11, 2020)
LSL_ASL_extended_7cycles.txt
LSR_extended_7cycles.txt
NEG_extended_7cycles.txt
ORA_extended_5cycles.txt
ORB_extended_5cycles.txt
ROL_extended_7cycles.txt
ROR_extended_7cycles.txt
SBCA_extended_5cycles.txt
SBCB_extended_5cycles.txt
STA_extended_5cycles.txt
STB_extended_5cycles.txt
STD_extended_6cycles.txt
STU_extended_6cycles.txt
STX_extended_6cycles.txt
SUBA_extended_5cycles.txt
SUBB_extended_5cycles.txt
SUBD_extended_7cycles.txt
TST_extended_7cycles.txt

目次へ戻る


[INDEXED]

(ADCA と LEAX のみここに掲載、残りは indexed.tar.gz)
ADCA_indexed_direct_A_X_5cycles.txt
ADCA_indexed_direct_B_X_5cycles.txt
ADCA_indexed_direct_D_X_8cycles.txt
ADCA_indexed_direct_X_4cycles.txt
ADCA_indexed_direct_Xp_6cycles.txt
ADCA_indexed_direct_Xpp_7cycles.txt
ADCA_indexed_direct_mX_6cycles.txt
ADCA_indexed_direct_mmX_7cycles.txt
ADCA_indexed_direct_n16_PCR_9cycles.txt
ADCA_indexed_direct_n16_X_8cycles.txt
ADCA_indexed_direct_n5_X_5cycles.txt
ADCA_indexed_direct_n8_PCR_5cycles.txt
ADCA_indexed_direct_n8_X_5cycles.txt
ADCA_indexed_indirect_A_X_8cycles.txt
ADCA_indexed_indirect_B_X_8cycles.txt
ADCA_indexed_indirect_D_X_11cycles.txt
ADCA_indexed_indirect_X_7cycles.txt
ADCA_indexed_indirect_Xpp_10cycles.txt
ADCA_indexed_indirect_mmX_10cycles.txt
ADCA_indexed_indirect_n16_9cycles.txt
ADCA_indexed_indirect_n16_PCR_12cycles.txt
ADCA_indexed_indirect_n16_X_11cycles.txt
ADCA_indexed_indirect_n8_PCR_8cycles.txt
ADCA_indexed_indirect_n8_X_8cycles.txt
LEAX_indexed_direct_A_X_5cycles.txt (Added Feb. 11, 2020)
LEAX_indexed_direct_B_X_5cycles.txt (Added Feb. 11, 2020)
LEAX_indexed_direct_D_X_8cycles.txt (Added Feb. 11, 2020)
LEAX_indexed_direct_mmX_7cycles.txt (Added Feb. 11, 2020)
LEAX_indexed_direct_mX_6cycles.txt (Added Feb. 11, 2020)
LEAX_indexed_direct_n16_PC_9cycles.txt (Added Feb. 11, 2020)
LEAX_indexed_direct_n16_X_8cycles.txt (Added Feb. 11, 2020)
LEAX_indexed_direct_n5_X_5cycles.txt (Added Feb. 11, 2020)
LEAX_indexed_direct_n8_PC_5cycles.txt (Added Feb. 11, 2020)
LEAX_indexed_direct_n8_X_5cycles.txt (Added Feb. 11, 2020)
LEAX_indexed_direct_Xpp_7cycles.txt (Added Feb. 11, 2020)
LEAX_indexed_direct_Xp_6cycles.txt (Added Feb. 11, 2020)
LEAX_indexed_direct_X_4cycles.txt (Added Feb. 11, 2020)
LEAX_indexed_indirect_A_X_8cycles.txt (Added Feb. 11, 2020)
LEAX_indexed_indirect_B_X_8cycles.txt (Added Feb. 11, 2020)
LEAX_indexed_indirect_D_X_11cycles.txt (Added Feb. 11, 2020)
LEAX_indexed_indirect_mmX_10cycles.txt (Added Feb. 11, 2020)
LEAX_indexed_indirect_n16_PC_12cycles.txt (Added Feb. 11, 2020)
LEAX_indexed_indirect_n16_X_11cycles.txt (Added Feb. 11, 2020)
LEAX_indexed_indirect_n8_PC_8cycles.txt (Added Feb. 11, 2020)
LEAX_indexed_indirect_n8_X_8cycles.txt (Added Feb. 11, 2020)
LEAX_indexed_indirect_Xpp_10cycles.txt (Added Feb. 11, 2020)
LEAX_indexed_indirect_X_7cycles.txt (Added Feb. 11, 2020)
indexed.tar.gz

目次へ戻る


[未整理データ]

BNE_0xFE_branch_not_taken_3cycles.txt
BNE_0xFE_branch_taken_3cycles.txt
LBNE_0xFFFA_branch_not_taken_5cycles.txt
LBNE_0xFFF4_branch_taken_6cycles.txt
BSR_relative_7cycles.txt (Added Feb. 11, 2020)
LBSR_relative_9cycles.txt (Added Feb. 11, 2020)
IRQ_after_enabling_interrupt_by_ANDCC.txt
FIRQ_after_enabling_interrupt_by_ANDCC.txt
SWI_inherent_19cycles.txt (Updated Feb. 11, 2020)
SWI2_inherent_20cycles.txt (Updated Feb. 11, 2020)
SWI3_inherent_20cycles.txt (Added Feb. 11, 2020)
RTI_inherent_E_0_6cycles.txt (Added Feb. 11, 2020)
RTI_inherent_E_1_15cycles.txt (Added Feb. 11, 2020)
RTS_inherent_5cycles.txt (Added Feb. 13, 2020)
RESET.txt (Added Feb. 11, 2020)
SYNC_inherent_IRQ_enabled.txt (Added Feb. 11, 2020)
SYNC_inherent_IRQ_masked.txt (Added Feb. 11, 2020)
SYNC_inherent_IRQ_masked_IRQ_already_L_4cycles.txt (Added Feb. 11, 2020)

今後さらに命令を調査することがあれば追加します。

トップページへ戻る


(C) Ki 2012

inserted by FC2 system