x65dsasm.cpp
// returns true if the instruction accessing memory can ONLY read that memory, not write back or jump to it
// used to distinguish read-only labels when there is a different definition between reading and writing to the
// same physical address
returns true if the instruction accessing memory can ONLY read that memory, not write back or jump to it
used to distinguish read-only labels when there is a different definition between reading and writing to the
same physical address
returns true if the instruction accessing memory can ONLY read that memory not write back or jump to it used to distinguish read - only labels when there is a different definition between reading and writing to the same physical address
bool IsReadOnlyInstruction(MNM_Base op_base)
{
	switch (op_base) {
		case mnm_ora:
		case mnm_and:
		case mnm_bit:
		case mnm_eor:
		case mnm_adc:
		case mnm_sbc:
		case mnm_lda:
		case mnm_ldx:
		case mnm_ldy:
		case mnm_cmp:
		case mnm_cpy:
		case mnm_cpx:
			return true;
	}
	return false;
}
bool IsReadOnlyInstruction ( MNM_Base op_base ) { switch ( op_base ) { case mnm_ora : case mnm_and : case mnm_bit : case mnm_eor : case mnm_adc : case mnm_sbc : case mnm_lda : case mnm_ldx : case mnm_ldy : case mnm_cmp : case mnm_cpy : case mnm_cpx : return true ; } return false ; }
returns true if the instruction accessing memory can ONLY read that memory, not write back or jump to it
used to distinguish read-only labels when there is a different definition between reading and writing to the
same physical address
returns true if the instruction accessing memory can ONLY read that memory not write back or jump to it used to distinguish read - only labels when there is a different definition between reading and writing to the same physical address