MCPcopy Create free account
hub / github.com/RIP-Comm/clementine / decode_data_processing

Function decode_data_processing

emu/src/cpu/arm/instructions.rs:990–1003  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

988 fn decode_data_processing() {
989 let output = ArmModeInstruction::from(0b1110_0001_0110_1001_1111_0000_0000_1110);
990 assert_eq!(
991 ArmModeInstruction::PSRTransfer {
992 condition: Condition::AL,
993 psr_kind: PsrKind::Spsr,
994 kind: PsrOpKind::Msr {
995 source_register: 14
996 }
997 },
998 output
999 );
1000 assert_eq!("MSR SPSR, R14", output.disassembler());
1001 }
1002
1003 #[test]
1004 fn decode_half_word_data_transfer_immediate_offset() {
1005 let output = ArmModeInstruction::from(0b1110_0001_1100_0001_0000_0000_1011_0000);
1006 assert_eq!(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected