Files
mos6502/core/src/instruction2/from_bytes.rs
T
tmerritt 57544589b3 applies chatgpt suggestions.
...
does not appear to decode everything
2025-06-25 09:34:19 -04:00

24 lines
414 B
Rust

use log::debug;
use crate::address_mode::AddressMode::*;
use crate::constants::constants_isa_op::*;
fn join_word(low: u8, high: u8) -> u16 {
((high as u16) << 8) | low as u16
}
#[cfg(test)]
mod test {
use super::*;
#[test]
fn test_join_word() {
let low: u8 = 0xcd;
let high: u8 = 0xab;
assert_eq!(
join_word(low, high),
0xabcd
);
}
}