Skip to content

Jonathan-L-Davis/processor-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 

Repository files navigation

Processor Simulator

Done for the time being, next steps include Documentation and Unit testing.
need to write vector ops for division and multiplication too,
but that will likely wait until someone complains.

Final plans will involve integrating into a website
writing a server & miniOS (glorified loader & scheduler)
for running user programs against each other. "Assembly Gladiators!"

all projects of similar size on their own
will do slowly over the next year.

Instructions:



/**--- MEMORY ---**/ (implemented!)
move_1
move_2
move_4
move_8
swap_1
swap_2
swap_4
swap_8
load_1
load_2
load_4
load_8
store_1
store_2
store_4
store_8

/**--- Control Flow ---**/
/// "Absolute" Jumps
relative to program start position
(for now all programs start at physical 0, will change, but is too complicated for me to do in one go)
/// Relative Jumps - may just be implemented via a prefix/suffix for jumps
relative to jump instruction
jump
jump_equal_0
jump_not_equal_0
jump_positive
jump_negative
jump_not_positive
jump_not_negative
jump_equal
jump_not_equal
jump_greater
jump_less
jump_greater_equal
jump_less_equal

/**--- Arithmetic ---**/
add
subtract
increment
decrement
negate
multiply
divide

/**--- Bit-Wise ---**/ (implemented!)
bit_and
bit_or
bit_nand
bit_nor
bit_xor
shift_left
shift_right
rotate_left
rotate_right

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages