ack/mach/m65oo2/as/mach3.c

77 lines
2.1 KiB
C
Raw Normal View History

2024-02-22 15:13:52 +00:00
{0, SIZE, 0x00, ".b"},
{0, SIZE, 0x01, ".w"},
2024-02-22 19:37:12 +00:00
{0, SIZE, 0x02, ".l"},
{0, SIZE, 0x04, ".sb"},
{0, SIZE, 0x05, ".sw"},
2024-02-22 15:13:52 +00:00
{0, REG_acc, 0x00, "a"},
2024-02-22 19:37:12 +00:00
{0, REG_x, 0x00, "x"},
{0, REG_y, 0x00, "y"},
2024-02-22 15:13:52 +00:00
{0, OP_impl, 0x00, "brk"},
{0, OP_impl, 0x08, "php"},
{0, OP_impl, 0x18, "clc"},
{0, OP_impl, 0x28, "plp"},
{0, OP_impl, 0x38, "sec"},
{0, OP_impl, 0x40, "rti"},
{0, OP_impl, 0x48, "pha"},
{0, OP_impl, 0x58, "cli"},
{0, OP_impl, 0x60, "rts"},
{0, OP_impl, 0x68, "pla"},
{0, OP_impl, 0x78, "sei"},
{0, OP_impl, 0x88, "dey"},
{0, OP_impl, 0x8A, "txa"},
{0, OP_impl, 0x98, "tya"},
{0, OP_impl, 0x9A, "txs"},
{0, OP_impl, 0xA8, "tay"},
{0, OP_impl, 0xAA, "tax"},
{0, OP_impl, 0xB8, "clv"},
{0, OP_impl, 0xBA, "tsx"},
{0, OP_impl, 0xC8, "iny"},
{0, OP_impl, 0xCA, "dex"},
{0, OP_impl, 0xD8, "cld"},
{0, OP_impl, 0xE8, "inx"},
{0, OP_impl, 0xEA, "nop"},
{0, OP_impl, 0xF8, "sed"},
2024-02-22 19:37:12 +00:00
{0, OP_branch, 0x10, "bpl"},
{0, OP_branch, 0x30, "bmi"},
{0, OP_branch, 0x50, "bvc"},
{0, OP_branch, 0x70, "bvs"},
{0, OP_branch, 0x90, "bcc"},
{0, OP_branch, 0xB0, "bcs"},
{0, OP_branch, 0xD0, "bne"},
{0, OP_branch, 0xF0, "beq"},
2024-02-22 15:13:52 +00:00
2024-02-22 19:37:12 +00:00
/* XXX: change OP_arithm with smthg more accurate */
{0, OP_arithm, 0x00, "ora"},
{0, OP_arithm, 0x20, "and"},
{0, OP_arithm, 0x40, "eor"},
{0, OP_arithm, 0x60, "adc"},
{0, OP_arithm, 0x80, "sta"},
{0, OP_arithm, 0xA0, "lda"},
{0, OP_arithm, 0xC0, "cmp"},
{0, OP_arithm, 0xE0, "sbc"},
2024-02-22 15:13:52 +00:00
2024-02-22 19:37:12 +00:00
{0, OP_jump, 0x4C, "jmp"},
{0, OP_jsr, 0x20, "jsr"},
2024-02-22 15:13:52 +00:00
2024-02-22 19:37:12 +00:00
{0, OP_rol, 0x00, "asl"},
{0, OP_rol, 0x20, "rol"},
{0, OP_rol, 0x40, "lsr"},
{0, OP_rol, 0x60, "ror"},
2024-02-22 15:13:52 +00:00
2024-02-22 19:37:12 +00:00
{0, OP_bit, 0x2C, "bit"},
2024-02-22 15:13:52 +00:00
2024-02-22 19:37:12 +00:00
{0, OP_cpx, 0xC0, "cpy"},
{0, OP_cpx, 0xE0, "cpx"},
2024-02-22 15:13:52 +00:00
2024-02-22 19:37:12 +00:00
{0, OP_inc, 0xCE, "dec"},
{0, OP_inc, 0xEE, "inc"},
2024-02-22 15:13:52 +00:00
2024-02-22 19:37:12 +00:00
{0, OP_stx, 0x8C, "sty"},
{0, OP_stx, 0x8E, "stx"},
2024-02-22 15:13:52 +00:00
2024-02-22 19:37:12 +00:00
{0, OP_ldx, 0xA0, "ldy"},
{0, OP_ldx, 0xA2, "ldx"},