Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2020-02-09 13:13:26 -05:00
parent 1c16be650a
commit f1ed41f98b
11 changed files with 44 additions and 75 deletions

View File

@@ -1,8 +1,8 @@
use crate::vm::{error::*, reg::*};
use byteorder::{LE, ReadBytesExt};
use byteorder::{ReadBytesExt, LE};
use std::{
ops::{Deref, DerefMut},
io::Cursor,
ops::{Deref, DerefMut},
};
const R1_MASK: u16 = 0b1111_1100_0000_0000;
@@ -15,7 +15,7 @@ pub struct MemCursor<'mem> {
impl<'mem> MemCursor<'mem> {
pub fn new(mem: &'mem [u8]) -> Self {
MemCursor {
cursor: Cursor::new(mem)
cursor: Cursor::new(mem),
}
}