mirror of
https://github.com/guilhermewerner/machine
synced 2025-06-16 05:04:18 +00:00
Update source files
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
use crate::Types::*;
|
||||
use crate::{Byte, DWord, Half, QWord, Word};
|
||||
use std::mem;
|
||||
|
||||
pub struct Heap {
|
||||
|
@ -1,5 +1,3 @@
|
||||
pub const REGISTER_COUNT: usize = 16;
|
||||
|
||||
pub const STACK_SIZE: usize = 64;
|
||||
|
||||
pub const HEAP_LIMIT: usize = 256;
|
||||
pub const STACK_SIZE: usize = 512;
|
||||
pub const HEAP_LIMIT: usize = 4096;
|
||||
|
@ -1,7 +1,6 @@
|
||||
use crate::Instructions::*;
|
||||
use crate::Operations::*;
|
||||
use crate::Types::*;
|
||||
use crate::{Heap, Registry, Stack, HEAP_LIMIT, STACK_SIZE};
|
||||
use crate::{Byte, Half, Heap, Registry, Stack, Word, HEAP_LIMIT, STACK_SIZE};
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub struct Machine {
|
||||
|
@ -1,5 +1,5 @@
|
||||
use crate::Machine;
|
||||
use crate::Types::{Byte, Word};
|
||||
use crate::{Byte, Word};
|
||||
|
||||
pub type Register = Byte;
|
||||
pub type RegisterAddress = (Byte, Word);
|
||||
|
@ -1,4 +1,4 @@
|
||||
use crate::Types::*;
|
||||
use crate::Word;
|
||||
use crate::REGISTER_COUNT;
|
||||
|
||||
#[derive(Default)]
|
||||
|
@ -1,4 +1,4 @@
|
||||
use crate::Types::*;
|
||||
use crate::{Byte, DWord, QWord, Half,Word};
|
||||
use std::mem;
|
||||
|
||||
pub struct Stack {
|
||||
|
@ -26,3 +26,6 @@ pub use self::_Registry::*;
|
||||
mod _Stack;
|
||||
pub use self::_Stack::*;
|
||||
|
||||
#[path = "Types.rs"]
|
||||
mod _Types;
|
||||
pub use self::_Types::*;
|
||||
|
Reference in New Issue
Block a user