Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

SAM.cpp File Reference

#include "sysdeps.h"
#include "SAM.h"
#include "C64.h"
#include "CPUC64.h"
#include "CPU1541.h"
#include "VIC.h"
#include "SID.h"
#include "CIA.h"

Include dependency graph for SAM.cpp:

Include dependency graph

Go to the source code of this file.

Defines

#define INPUT_LENGTH   80
#define MEMDUMP_BPL   16
#define ASCIIDUMP_BPL   64
#define SCRDUMP_BPL   64

Enumerations

enum  Token {
  T_NULL, T_END, T_NUMBER, T_STRING,
  T_LPAREN, T_RPAREN, T_ADD, T_SUB,
  T_MUL, T_DIV, T_COMMA, T_IMMED,
  T_X, T_Y, T_PC, T_SP,
  T_A, T_DR, T_PR
}
enum  {
  A_IMPL, A_ACCU, A_IMM, A_REL,
  A_ZERO, A_ZEROX, A_ZEROY, A_ABS,
  A_ABSX, A_ABSY, A_IND, A_INDX,
  A_INDY
}
enum  {
  M_ADC, M_AND, M_ASL, M_BCC,
  M_BCS, M_BEQ, M_BIT, M_BMI,
  M_BNE, M_BPL, M_BRK, M_BVC,
  M_BVS, M_CLC, M_CLD, M_CLI,
  M_CLV, M_CMP, M_CPX, M_CPY,
  M_DEC, M_DEX, M_DEY, M_EOR,
  M_INC, M_INX, M_INY, M_JMP,
  M_JSR, M_LDA, M_LDX, M_LDY,
  M_LSR, M_NOP, M_ORA, M_PHA,
  M_PHP, M_PLA, M_PLP, M_ROL,
  M_ROR, M_RTI, M_RTS, M_SBC,
  M_SEC, M_SED, M_SEI, M_STA,
  M_STX, M_STY, M_TAX, M_TAY,
  M_TSX, M_TXA, M_TXS, M_TYA,
  M_ILLEGAL, M_IANC, M_IANE, M_IARR,
  M_IASR, M_IDCP, M_IISB, M_IJAM,
  M_INOP, M_ILAS, M_ILAX, M_ILXA,
  M_IRLA, M_IRRA, M_ISAX, M_ISBC,
  M_ISBX, M_ISHA, M_ISHS, M_ISHX,
  M_ISHY, M_ISLO, M_ISRE, M_MAXIMUM
}

Functions

uint8 SAMReadByte (uint16 adr)
void SAMWriteByte (uint16 adr, uint8 byte)
void error (char *s)
void handle_abort (int)
void init_abort (void)
void exit_abort (void)
bool aborted (void)
void read_line (void)
char get_char (void)
void put_back (char c)
enum Token get_token (void)
enum Token get_reg_token (void)
uint16 get_number (void)
enum Token get_string (char *str)
bool expression (uint16 *number)
bool term (uint16 *number)
bool factor (uint16 *number)
bool address_args (void)
bool range_args (int def_range)
bool instr_args (uint16 *number, char *mode)
void help (void)
void registers (void)
void display_registers (void)
void memory_dump (void)
void ascii_dump (void)
char conv_from_64 (char c)
void screen_dump (void)
char conv_from_scode (char c)
void binary_dump (void)
void sprite_dump (void)
void byte_to_bin (uint8 byte, char *str)
void disassemble (void)
int disass_line (uint16 adr, uint8 op, uint8 lo, uint8 hi)
void assemble (void)
char find_mnemonic (char op1, char op2, char op3)
bool find_opcode (char mnem, char mode, uint8 *opcode)
void mem_config (void)
void fill (void)
void compare (void)
void transfer (void)
void modify (void)
void print_expr (void)
void redir_output (void)
void int_vectors (void)
void view_state (void)
void view_cia_state (void)
void dump_cia_ints (uint8 i)
void view_sid_state (void)
void dump_sid_waveform (uint8 wave)
void view_vic_state (void)
void dump_spr_flags (uint8 f)
void dump_vic_ints (uint8 i)
void view_1541_state (void)
void dump_via_ints (uint8 i)
void load_data (void)
void save_data (void)
void SAM (C64 *the_c64)

Variables

MOS6510TheCPU
MOS6502_1541TheCPU1541
MOS6569TheVIC
MOS6581TheSID
MOS6526_1TheCIA1
MOS6526_2TheCIA2
MOS6510State R64
MOS6502State R1541
bool access_1541
FILE * fin
FILE * fout
FILE * ferr
char input [INPUT_LENGTH]
char * in_ptr
uint16 address
uint16 end_address
enum Token the_token
uint16 the_number
char the_string [INPUT_LENGTH]
const char mnemonic [256]
const char adr_mode [256]
const char mnem_1 [] = "aaabbbbbbbbbbcccccccdddeiiijjllllnopppprrrrssssssstttttt?aaaadijnlllrrsssssssss"
const char mnem_2 [] = "dnscceimnprvvllllmppeeeonnnmsdddsorhhlloottbeeetttaasxxy?nnrscsaoaaxlrabbhhhhlr"
const char mnem_3 [] = "cdlcsqtielkcscdivpxycxyrcxypraxyrpaapaplrisccdiaxyxyxasa?cerrpbmpsxaaaxcxasxyoe"
const char adr_length [] = {1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 2, 2}
bool WasAborted


Define Documentation

#define ASCIIDUMP_BPL   64
 

Definition at line 1213 of file SAM.cpp.

Referenced by ascii_dump().

#define INPUT_LENGTH   80
 

Definition at line 54 of file SAM.cpp.

Referenced by read_line().

#define MEMDUMP_BPL   16
 

Definition at line 1176 of file SAM.cpp.

Referenced by memory_dump().

#define SCRDUMP_BPL   64
 

Definition at line 1262 of file SAM.cpp.

Referenced by screen_dump().


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
A_IMPL 
A_ACCU 
A_IMM 
A_REL 
A_ZERO 
A_ZEROX 
A_ZEROY 
A_ABS 
A_ABSX 
A_ABSY 
A_IND 
A_INDX 
A_INDY 

Definition at line 91 of file SAM.cpp.

anonymous enum
 

Enumeration values:
M_ADC 
M_AND 
M_ASL 
M_BCC 
M_BCS 
M_BEQ 
M_BIT 
M_BMI 
M_BNE 
M_BPL 
M_BRK 
M_BVC 
M_BVS 
M_CLC 
M_CLD 
M_CLI 
M_CLV 
M_CMP 
M_CPX 
M_CPY 
M_DEC 
M_DEX 
M_DEY 
M_EOR 
M_INC 
M_INX 
M_INY 
M_JMP 
M_JSR 
M_LDA 
M_LDX 
M_LDY 
M_LSR 
M_NOP 
M_ORA 
M_PHA 
M_PHP 
M_PLA 
M_PLP 
M_ROL 
M_ROR 
M_RTI 
M_RTS 
M_SBC 
M_SEC 
M_SED 
M_SEI 
M_STA 
M_STX 
M_STY 
M_TAX 
M_TAY 
M_TSX 
M_TXA 
M_TXS 
M_TYA 
M_ILLEGAL 
M_IANC 
M_IANE 
M_IARR 
M_IASR 
M_IDCP 
M_IISB 
M_IJAM 
M_INOP 
M_ILAS 
M_ILAX 
M_ILXA 
M_IRLA 
M_IRRA 
M_ISAX 
M_ISBC 
M_ISBX 
M_ISHA 
M_ISHS 
M_ISHX 
M_ISHY 
M_ISLO 
M_ISRE 
M_MAXIMUM 

Definition at line 108 of file SAM.cpp.

enum Token
 

Enumeration values:
T_NULL 
T_END 
T_NUMBER 
T_STRING 
T_LPAREN 
T_RPAREN 
T_ADD 
T_SUB 
T_MUL 
T_DIV 
T_COMMA 
T_IMMED 
T_X 
T_Y 
T_PC 
T_SP 
T_A 
T_DR 
T_PR 

Definition at line 62 of file SAM.cpp.

Referenced by get_reg_token(), get_string(), get_token(), and registers().


Function Documentation

bool aborted void   )  [static]
 

Definition at line 513 of file SAM.cpp.

References WasAborted.

Referenced by ascii_dump(), binary_dump(), compare(), disassemble(), memory_dump(), screen_dump(), and sprite_dump().

bool address_args void   )  [static]
 

Definition at line 826 of file SAM.cpp.

References address, expression(), T_END, and the_token.

Referenced by assemble().

void ascii_dump void   )  [static]
 

Definition at line 1215 of file SAM.cpp.

References aborted(), address, ASCIIDUMP_BPL, conv_from_64(), end_address, fout, fprintf, range_args(), SAMReadByte(), and uint8.

Referenced by SAM().

void assemble void   )  [static]
 

Definition at line 1519 of file SAM.cpp.

References A_ABS, A_ACCU, A_IMPL, A_REL, A_ZERO, address, address_args(), adr_length, disass_line(), error(), ferr, find_mnemonic(), find_opcode(), fout, fprintf, get_char(), get_token(), instr_args(), int16, M_ILLEGAL, read_line(), SAMWriteByte(), uint16, and uint8.

Referenced by SAM().

void binary_dump void   )  [static]
 

Definition at line 1316 of file SAM.cpp.

References aborted(), address, byte_to_bin(), end_address, fout, fprintf, range_args(), and SAMReadByte().

Referenced by SAM().

void byte_to_bin uint8  byte,
char *  str
[static]
 

Definition at line 1370 of file SAM.cpp.

Referenced by binary_dump(), and sprite_dump().

void compare void   )  [static]
 

Definition at line 1700 of file SAM.cpp.

References aborted(), expression(), fout, fprintf, fputc, SAMReadByte(), and uint16.

Referenced by SAM().

char conv_from_64 char  c  )  [static]
 

Definition at line 1248 of file SAM.cpp.

Referenced by ascii_dump(), and memory_dump().

char conv_from_scode char  c  )  [static]
 

Definition at line 1297 of file SAM.cpp.

Referenced by screen_dump().

int disass_line uint16  adr,
uint8  op,
uint8  lo,
uint8  hi
[static]
 

Definition at line 1413 of file SAM.cpp.

References A_ABS, A_ABSX, A_ABSY, A_ACCU, A_IMM, A_IMPL, A_IND, A_INDX, A_INDY, A_REL, A_ZERO, A_ZEROX, A_ZEROY, adr_length, adr_mode, fout, fprintf, fputc, int8, M_ILLEGAL, mnem_1, mnem_2, mnem_3, and mnemonic.

Referenced by assemble(), disassemble(), and display_registers().

void disassemble void   )  [static]
 

Definition at line 1387 of file SAM.cpp.

References aborted(), address, disass_line(), end_address, fout, fprintf, range_args(), SAMReadByte(), uint16, and uint8.

Referenced by SAM().

void display_registers void   )  [static]
 

Definition at line 1116 of file SAM.cpp.

References MOS6510State::a, MOS6502State::a, access_1541, MOS6510State::ddr, disass_line(), fout, fprintf, MOS6510State::p, MOS6502State::p, MOS6510State::pc, MOS6502State::pc, MOS6510State::pr, R1541, R64, SAMReadByte(), MOS6510State::sp, MOS6502State::sp, MOS6510State::x, MOS6502State::x, MOS6510State::y, and MOS6502State::y.

Referenced by registers(), and SAM().

void dump_cia_ints uint8  i  )  [static]
 

Definition at line 1967 of file SAM.cpp.

References fout, fprintf, and fputc.

Referenced by view_cia_state().

void dump_sid_waveform uint8  wave  )  [static]
 

Definition at line 2041 of file SAM.cpp.

References fout, fprintf, and fputc.

Referenced by view_sid_state().

void dump_spr_flags uint8  f  )  [static]
 

Definition at line 2160 of file SAM.cpp.

References fout, fprintf, and fputc.

Referenced by view_vic_state().

void dump_via_ints uint8  i  )  [static]
 

Definition at line 2208 of file SAM.cpp.

References fout, fprintf, and fputc.

Referenced by view_1541_state().

void dump_vic_ints uint8  i  )  [static]
 

Definition at line 2173 of file SAM.cpp.

References fout, fprintf, and fputc.

Referenced by view_vic_state().

void error char *  s  )  [static]
 

Definition at line 457 of file SAM.cpp.

References ferr, and fprintf.

Referenced by assemble(), factor(), get_reg_token(), get_string(), get_token(), instr_args(), load_data(), redir_output(), SAM(), save_data(), term(), view_cia_state(), and view_state().

void exit_abort void   )  [static]
 

Definition at line 503 of file SAM.cpp.

Referenced by SAM().

bool expression uint16 number  )  [static]
 

Definition at line 700 of file SAM.cpp.

References get_token(), T_ADD, T_SUB, term(), the_token, and uint16.

Referenced by address_args(), compare(), factor(), fill(), load_data(), mem_config(), modify(), print_expr(), range_args(), registers(), save_data(), and transfer().

bool factor uint16 number  )  [static]
 

Definition at line 774 of file SAM.cpp.

References access_1541, error(), expression(), get_token(), MOS6510State::pc, MOS6502State::pc, R1541, R64, MOS6510State::sp, MOS6502State::sp, T_END, T_LPAREN, T_NUMBER, T_PC, T_RPAREN, T_SP, the_number, and the_token.

Referenced by term().

void fill void   )  [static]
 

Definition at line 1674 of file SAM.cpp.

References expression(), SAMWriteByte(), uint16, and uint8.

Referenced by SAM().

char find_mnemonic char  op1,
char  op2,
char  op3
[static]
 

Definition at line 1613 of file SAM.cpp.

References M_ILLEGAL, M_MAXIMUM, mnem_1, mnem_2, and mnem_3.

Referenced by assemble().

bool find_opcode char  mnem,
char  mode,
uint8 opcode
[static]
 

Definition at line 1630 of file SAM.cpp.

References adr_mode, and mnemonic.

Referenced by assemble().

char get_char void   )  [static]
 

Definition at line 540 of file SAM.cpp.

References in_ptr.

Referenced by assemble(), get_number(), get_reg_token(), get_string(), get_token(), SAM(), view_cia_state(), and view_state().

uint16 get_number void   )  [static]
 

Definition at line 663 of file SAM.cpp.

References get_char(), put_back(), and uint16.

Referenced by get_token().

enum Token get_reg_token void   )  [static]
 

Definition at line 618 of file SAM.cpp.

References error(), get_char(), T_A, T_DR, T_END, T_NULL, T_PC, T_PR, T_SP, T_X, T_Y, the_token, and Token.

Referenced by SAM().

enum Token get_string char *  str  )  [static]
 

Definition at line 678 of file SAM.cpp.

References error(), get_char(), T_NULL, T_STRING, and Token.

Referenced by get_token().

enum Token get_token void   )  [static]
 

Definition at line 560 of file SAM.cpp.

References error(), get_char(), get_number(), get_string(), put_back(), T_ADD, T_COMMA, T_DIV, T_END, T_IMMED, T_LPAREN, T_MUL, T_NULL, T_NUMBER, T_PC, T_RPAREN, T_SP, T_SUB, T_X, T_Y, the_number, the_string, the_token, and Token.

Referenced by assemble(), expression(), factor(), instr_args(), range_args(), registers(), SAM(), and term().

void handle_abort int   )  [static]
 

Definition at line 473 of file SAM.cpp.

References handle_abort(), and WasAborted.

Referenced by handle_abort(), and init_abort().

void help void   )  [static]
 

Definition at line 1009 of file SAM.cpp.

References fout, and fprintf.

Referenced by SAM().

void init_abort void   )  [static]
 

Definition at line 486 of file SAM.cpp.

References handle_abort(), and WasAborted.

Referenced by SAM().

bool instr_args uint16 number,
char *  mode
[static]
 

Definition at line 879 of file SAM.cpp.

References A_ABS, A_ABSX, A_ABSY, A_IMM, A_IMPL, A_IND, A_INDX, A_INDY, A_ZERO, A_ZEROX, A_ZEROY, error(), get_token(), T_COMMA, T_END, T_IMMED, T_LPAREN, T_NUMBER, T_RPAREN, T_X, T_Y, the_number, and the_token.

Referenced by assemble().

void int_vectors void   )  [static]
 

Definition at line 1827 of file SAM.cpp.

References access_1541, MOS6510::ExtConfig, fout, fprintf, SAMReadByte(), and TheCPU.

Referenced by SAM().

void load_data void   )  [static]
 

Definition at line 2229 of file SAM.cpp.

References EOF, error(), expression(), fclose, fgetc, FILE, fopen, SAMWriteByte(), T_END, T_STRING, the_string, the_token, and uint16.

Referenced by SAM().

void mem_config void   )  [static]
 

Definition at line 1649 of file SAM.cpp.

References expression(), MOS6510::ExtConfig, fout, fprintf, T_END, the_token, TheCPU, and uint16.

Referenced by SAM().

void memory_dump void   )  [static]
 

Definition at line 1178 of file SAM.cpp.

References aborted(), address, conv_from_64(), end_address, fout, fprintf, MEMDUMP_BPL, range_args(), SAMReadByte(), and uint8.

Referenced by SAM().

void modify void   )  [static]
 

Definition at line 1770 of file SAM.cpp.

References expression(), SAMWriteByte(), T_END, the_token, uint16, and uint8.

Referenced by SAM().

void print_expr void   )  [static]
 

Definition at line 1791 of file SAM.cpp.

References expression(), fout, fprintf, and uint16.

Referenced by SAM().

void put_back char  c  )  [static]
 

Definition at line 550 of file SAM.cpp.

References in_ptr.

Referenced by get_number(), and get_token().

bool range_args int  def_range  )  [static]
 

Definition at line 846 of file SAM.cpp.

References address, end_address, expression(), get_token(), T_COMMA, T_END, and the_token.

Referenced by ascii_dump(), binary_dump(), disassemble(), memory_dump(), screen_dump(), and sprite_dump().

void read_line void   )  [static]
 

Definition at line 526 of file SAM.cpp.

References fgets, fin, in_ptr, input, INPUT_LENGTH, and OS_ReadLine().

Referenced by assemble(), and SAM().

void redir_output void   )  [static]
 

Definition at line 1808 of file SAM.cpp.

References error(), fopen, fout, T_END, T_STRING, the_string, and the_token.

Referenced by SAM().

void registers void   )  [static]
 

Definition at line 1045 of file SAM.cpp.

References MOS6510State::a, MOS6502State::a, access_1541, MOS6510State::ddr, display_registers(), expression(), get_token(), MOS6510State::pc, MOS6502State::pc, MOS6510State::pr, R1541, R64, MOS6510State::sp, MOS6502State::sp, T_A, T_DR, T_END, T_PC, T_PR, T_SP, T_X, T_Y, the_token, Token, uint16, uint8, MOS6510State::x, MOS6502State::x, MOS6510State::y, and MOS6502State::y.

Referenced by SAM().

void SAM C64 the_c64  ) 
 

Definition at line 270 of file SAM.cpp.

References access_1541, address, ascii_dump(), assemble(), binary_dump(), compare(), MOS6510State::ddr, disassemble(), display_registers(), error(), exit_abort(), MOS6510::ExtConfig, fclose, ferr, fill(), fin, fopen, fout, fprintf, get_char(), get_reg_token(), get_token(), MOS6510::GetState(), MOS6502_1541::GetState(), help(), init_abort(), int_vectors(), load_data(), mem_config(), memory_dump(), modify(), MOS6510State::pc, MOS6510State::pr, print_expr(), R1541, R64, read_line(), redir_output(), registers(), save_data(), screen_dump(), MOS6510::SetState(), MOS6502_1541::SetState(), sprite_dump(), TheCIA1, C64::TheCIA1, TheCIA2, C64::TheCIA2, TheCPU, C64::TheCPU, TheCPU1541, C64::TheCPU1541, TheSID, C64::TheSID, TheVIC, C64::TheVIC, transfer(), view_state(), and Wimp_CommandWindow().

uint8 SAMReadByte uint16  adr  )  [inline, static]
 

Definition at line 33 of file SAM.cpp.

References access_1541, MOS6510::ExtReadByte(), MOS6502_1541::ExtReadByte(), TheCPU, TheCPU1541, and uint8.

Referenced by ascii_dump(), binary_dump(), compare(), disassemble(), display_registers(), int_vectors(), memory_dump(), save_data(), screen_dump(), sprite_dump(), and transfer().

void SAMWriteByte uint16  adr,
uint8  byte
[inline, static]
 

Definition at line 41 of file SAM.cpp.

References access_1541, MOS6510::ExtWriteByte(), MOS6502_1541::ExtWriteByte(), TheCPU, and TheCPU1541.

Referenced by assemble(), fill(), load_data(), modify(), and transfer().

void save_data void   )  [static]
 

Definition at line 2261 of file SAM.cpp.

References error(), expression(), fclose, FILE, fopen, fputc, SAMReadByte(), T_END, T_STRING, the_string, the_token, and uint16.

Referenced by SAM().

void screen_dump void   )  [static]
 

Definition at line 1264 of file SAM.cpp.

References aborted(), address, conv_from_scode(), end_address, fout, fprintf, range_args(), SAMReadByte(), SCRDUMP_BPL, and uint8.

Referenced by SAM().

void sprite_dump void   )  [static]
 

Definition at line 1341 of file SAM.cpp.

References aborted(), address, byte_to_bin(), end_address, fout, fprintf, fputc, range_args(), and SAMReadByte().

Referenced by SAM().

bool term uint16 number  )  [static]
 

Definition at line 735 of file SAM.cpp.

References error(), factor(), get_token(), T_DIV, T_MUL, the_token, and uint16.

Referenced by expression().

void transfer void   )  [static]
 

Definition at line 1738 of file SAM.cpp.

References expression(), SAMReadByte(), SAMWriteByte(), and uint16.

Referenced by SAM().

void view_1541_state void   )  [static]
 

Definition at line 2185 of file SAM.cpp.

References dump_via_ints(), fout, fprintf, R1541, MOS6502State::via1_acr, MOS6502State::via1_ier, MOS6502State::via1_ifr, MOS6502State::via1_pcr, MOS6502State::via1_t1c, MOS6502State::via1_t1l, MOS6502State::via1_t2c, MOS6502State::via1_t2l, MOS6502State::via2_acr, MOS6502State::via2_ier, MOS6502State::via2_ifr, MOS6502State::via2_pcr, MOS6502State::via2_t1c, MOS6502State::via2_t1l, MOS6502State::via2_t2c, and MOS6502State::via2_t2l.

Referenced by view_state().

void view_cia_state void   )  [static]
 

Definition at line 1875 of file SAM.cpp.

References MOS6526State::alm_10ths, MOS6526State::alm_hr, MOS6526State::alm_min, MOS6526State::alm_sec, MOS6526State::cra, MOS6526State::crb, dump_cia_ints(), error(), fout, fprintf, get_char(), MOS6526::GetState(), MOS6526State::int_data, MOS6526State::int_mask, MOS6526State::latcha, MOS6526State::latchb, MOS6526State::sdr, MOS6526State::ta_hi, MOS6526State::ta_lo, MOS6526State::tb_hi, MOS6526State::tb_lo, TheCIA1, TheCIA2, MOS6526State::tod_10ths, MOS6526State::tod_hr, MOS6526State::tod_min, and MOS6526State::tod_sec.

Referenced by view_state().

void view_sid_state void   )  [static]
 

Definition at line 1980 of file SAM.cpp.

References MOS6581State::AD_1, MOS6581State::AD_2, MOS6581State::AD_3, MOS6581State::ctrl_1, MOS6581State::ctrl_2, MOS6581State::ctrl_3, dump_sid_waveform(), MOS6581State::fc_hi, MOS6581State::fc_lo, fout, fprintf, MOS6581State::freq_hi_1, MOS6581State::freq_hi_2, MOS6581State::freq_hi_3, MOS6581State::freq_lo_1, MOS6581State::freq_lo_2, MOS6581State::freq_lo_3, MOS6581::GetState(), MOS6581State::mode_vol, MOS6581State::pw_hi_1, MOS6581State::pw_hi_2, MOS6581State::pw_hi_3, MOS6581State::pw_lo_1, MOS6581State::pw_lo_2, MOS6581State::pw_lo_3, MOS6581State::res_filt, MOS6581State::SR_1, MOS6581State::SR_2, MOS6581State::SR_3, and TheSID.

Referenced by view_state().

void view_state void   )  [static]
 

Definition at line 1850 of file SAM.cpp.

References error(), get_char(), view_1541_state(), view_cia_state(), view_sid_state(), and view_vic_state().

Referenced by SAM().

void view_vic_state void   )  [static]
 

Definition at line 2053 of file SAM.cpp.

References MOS6569State::bad_line, MOS6569State::bad_line_enable, MOS6569State::bank_base, MOS6569State::bitmap_base, MOS6569State::char_base, MOS6569State::ctrl1, MOS6569State::ctrl2, MOS6569State::display_state, dump_spr_flags(), dump_vic_ints(), fout, fprintf, MOS6569::GetState(), MOS6569State::irq_flag, MOS6569State::irq_mask, MOS6569State::irq_raster, MOS6569State::matrix_base, MOS6569State::mc, MOS6569State::mdp, MOS6569State::me, MOS6569State::mmc, MOS6569State::mxe, MOS6569State::mye, MOS6569State::raster, MOS6569State::rc, MOS6569State::sprite_base, TheVIC, MOS6569State::vc, and MOS6569State::vc_base.

Referenced by view_state().


Variable Documentation

bool access_1541 [static]
 

Definition at line 30 of file SAM.cpp.

Referenced by display_registers(), factor(), int_vectors(), registers(), SAM(), SAMReadByte(), and SAMWriteByte().

uint16 address [static]
 

Definition at line 58 of file SAM.cpp.

Referenced by address_args(), ascii_dump(), assemble(), binary_dump(), disassemble(), memory_dump(), range_args(), SAM(), screen_dump(), and sprite_dump().

const char adr_length[] = {1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 2, 2} [static]
 

Definition at line 203 of file SAM.cpp.

Referenced by assemble(), and disass_line().

const char adr_mode[256] [static]
 

Definition at line 162 of file SAM.cpp.

Referenced by disass_line(), and find_opcode().

uint16 end_address [static]
 

Definition at line 58 of file SAM.cpp.

Referenced by ascii_dump(), binary_dump(), disassemble(), memory_dump(), range_args(), screen_dump(), and sprite_dump().

FILE * ferr [static]
 

Definition at line 51 of file SAM.cpp.

Referenced by assemble(), error(), and SAM().

FILE* fin [static]
 

Definition at line 51 of file SAM.cpp.

Referenced by read_line(), and SAM().

FILE * fout [static]
 

Definition at line 51 of file SAM.cpp.

Referenced by ascii_dump(), assemble(), binary_dump(), compare(), disass_line(), disassemble(), display_registers(), dump_cia_ints(), dump_sid_waveform(), dump_spr_flags(), dump_via_ints(), dump_vic_ints(), help(), int_vectors(), mem_config(), memory_dump(), print_expr(), redir_output(), SAM(), screen_dump(), sprite_dump(), view_1541_state(), view_cia_state(), view_sid_state(), and view_vic_state().

char* in_ptr [static]
 

Definition at line 56 of file SAM.cpp.

Referenced by get_char(), put_back(), and read_line().

char input[INPUT_LENGTH] [static]
 

Definition at line 55 of file SAM.cpp.

Referenced by read_line().

const char mnem_1[] = "aaabbbbbbbbbbcccccccdddeiiijjllllnopppprrrrssssssstttttt?aaaadijnlllrrsssssssss" [static]
 

Definition at line 198 of file SAM.cpp.

Referenced by disass_line(), and find_mnemonic().

const char mnem_2[] = "dnscceimnprvvllllmppeeeonnnmsdddsorhhlloottbeeetttaasxxy?nnrscsaoaaxlrabbhhhhlr" [static]
 

Definition at line 199 of file SAM.cpp.

Referenced by disass_line(), and find_mnemonic().

const char mnem_3[] = "cdlcsqtielkcscdivpxycxyrcxypraxyrpaapaplrisccdiaxyxyxasa?cerrpbmpsxaaaxcxasxyoe" [static]
 

Definition at line 200 of file SAM.cpp.

Referenced by disass_line(), and find_mnemonic().

const char mnemonic[256] [static]
 

Definition at line 126 of file SAM.cpp.

Referenced by disass_line(), and find_opcode().

MOS6502State R1541 [static]
 

Definition at line 28 of file SAM.cpp.

Referenced by display_registers(), factor(), registers(), SAM(), and view_1541_state().

MOS6510State R64 [static]
 

Definition at line 27 of file SAM.cpp.

Referenced by display_registers(), factor(), registers(), and SAM().

uint16 the_number [static]
 

Definition at line 86 of file SAM.cpp.

Referenced by factor(), get_token(), and instr_args().

char the_string[INPUT_LENGTH] [static]
 

Definition at line 87 of file SAM.cpp.

Referenced by get_token(), load_data(), redir_output(), and save_data().

enum Token the_token [static]
 

Definition at line 85 of file SAM.cpp.

Referenced by address_args(), expression(), factor(), get_reg_token(), get_token(), instr_args(), load_data(), mem_config(), modify(), range_args(), redir_output(), registers(), save_data(), and term().

MOS6526_1* TheCIA1 [static]
 

Definition at line 23 of file SAM.cpp.

Referenced by SAM(), and view_cia_state().

MOS6526_2* TheCIA2 [static]
 

Definition at line 24 of file SAM.cpp.

Referenced by SAM(), and view_cia_state().

MOS6510* TheCPU [static]
 

Definition at line 19 of file SAM.cpp.

Referenced by int_vectors(), mem_config(), SAM(), SAMReadByte(), and SAMWriteByte().

MOS6502_1541* TheCPU1541 [static]
 

Definition at line 20 of file SAM.cpp.

Referenced by SAM(), SAMReadByte(), and SAMWriteByte().

MOS6581* TheSID [static]
 

Definition at line 22 of file SAM.cpp.

Referenced by SAM(), and view_sid_state().

MOS6569* TheVIC [static]
 

Definition at line 21 of file SAM.cpp.

Referenced by SAM(), and view_vic_state().

bool WasAborted [static]
 

Definition at line 467 of file SAM.cpp.

Referenced by aborted(), handle_abort(), and init_abort().


Generated on Tue Feb 8 04:10:49 2005 for E32frodo by doxygen 1.3.3