소스 검색

Fix absolute-indexed addressing mode instruction decoding

master
Nathaniel Walizer 10 달 전
부모
커밋
15029213d7
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      opcodes.c

+ 2
- 2
opcodes.c 파일 보기

@@ -22,9 +22,9 @@ static int adr_abs(const uint8_t* operand, char* str, int max) {
return snprintf(str, max, "$%04X", *(uint16_t*)operand);
}

static inline int adr_abs_reg(char reg, const uint8_t* operand,
static inline int adr_abs_reg(char reg, const uint8_t* op,
char* str, int max) {
return snprintf(str, max, "$%04X,%c", *operand, reg);
return snprintf(str, max, "$%04X,%c", *(uint16_t*)op, reg);
}

static int adr_abs_x(const uint8_t* operand, char* str, int max) {


불러오는 중...
취소
저장