Add some starting files

main
John Zacarias Jekel 1 year ago
parent 594dd4ed7c
commit 026e2facd1
  1. 5
      .gitignore
  2. 24
      Cargo.toml
  3. 2
      LICENSE
  4. 34
      lib/lib.rs
  5. 36
      src/legv8assemble.rs
  6. 36
      src/legv8disassemble.rs
  7. 37
      src/legv8emulator.rs

5
.gitignore vendored

@ -14,3 +14,8 @@ Cargo.lock
# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb
# Added by cargo
/target

@ -0,0 +1,24 @@
[package]
name = "legv8"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
[lib]
name = "legv8"
path = "lib/lib.rs"
[[bin]]
name = "legv8asm"
path = "src/legv8asm.rs"
[[bin]]
name = "legv8emulator"
path = "src/legv8emulator.rs"
[[bin]]
name = "legv8emulator"
path = "src/legv8emulator.rs"

@ -1,6 +1,6 @@
MIT License
Copyright (c) <year> <copyright holders>
Copyright (c) 2023 John Jekel
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

@ -0,0 +1,34 @@
/* NAME//TODO
* By: John Jekel
*
* TODO description
*
*/
/* Imports */
//TODO (include "use" and "mod" here)
/* Constants */
//TODO
/* Macros */
//TODO (also pub(crate) use the_macro statements here too)
/* Static Variables */
//TODO
/* Types */
//TODO
/* Associated Functions and Methods */
//TODO
/* Functions */
//TODO

@ -0,0 +1,36 @@
/* NAME//TODO
* By: John Jekel
*
* TODO description
*
*/
/* Imports */
//TODO (include "use" and "mod" here)
/* Constants */
//TODO
/* Macros */
//TODO (also pub(crate) use the_macro statements here too)
/* Static Variables */
//TODO
/* Types */
//TODO
/* Associated Functions and Methods */
//TODO
/* Functions */
fn main() {
println!("Hello, world!");
}

@ -0,0 +1,36 @@
/* NAME//TODO
* By: John Jekel
*
* TODO description
*
*/
/* Imports */
//TODO (include "use" and "mod" here)
/* Constants */
//TODO
/* Macros */
//TODO (also pub(crate) use the_macro statements here too)
/* Static Variables */
//TODO
/* Types */
//TODO
/* Associated Functions and Methods */
//TODO
/* Functions */
fn main() {
println!("Hello, world!");
}

@ -0,0 +1,37 @@
/* NAME//TODO
* By: John Jekel
*
* TODO description
*
*/
/* Imports */
//TODO (include "use" and "mod" here)
/* Constants */
//TODO
/* Macros */
//TODO (also pub(crate) use the_macro statements here too)
/* Static Variables */
//TODO
/* Types */
//TODO
/* Associated Functions and Methods */
//TODO
/* Functions */
fn main() {
//TODO use HashMap for sparse memory since we don't care about performance
println!("Hello, world!");
}