Giter VIP home page Giter VIP logo

covm's Introduction


logo
COVM

A lightweight, stack-based and assembly-like x86/x64 VM.

Operators

  1. NOP - An operator that does nothing.
  2. ADD - Adds a number to a register
  3. SUB - Subtracts a number inside a register
  4. MUL - Multiplies a number inside a register with x
  5. DIV - Divides a number inside a register with x
  6. AND - Bitwise AND
  7. XOR - Bitwise XOR
  8. OR - Bitwise OR
  9. NOT - Bitwise NOT
  10. INC - Increases the number by one inside a register
  11. DEC - Decreases the number by one inside a register
  12. RET - Jumps to the end of the function
  13. MOV - Moves data into a register
  14. PUSH - Pushes data into the stack
  15. POP - Removes data from the stack
  16. LSTART - Defines the start of a function
  17. LEND - Defines the end of a function
  18. CALL - Calls a function by index
  19. JMP - Jumps to an instruction
  20. CMP - Compares register to any given data (register or hard-coded value)
  21. JT - Jumps if the above check was true
  22. JNT - Jumps if the above check was false

more will be added later.

Registers

Registers do not have a fixed size, but it is recommended to split them like the following:

  • 16 bit-registers: AX, BX, CX, DX
  • 32 bit-registers: EAX, ECX, EDX, EBX, ESP, EBP, ESI, EDI
  • 64 bit-registers: RAX, RCX, RDX, RBX, RSP, RBP, RSI, RDI (R8, R9, ...)

Flags

Currently the COVM does not make use of flags, here are ones planned for the future usage:

  1. CF
  2. PF
  3. AF
  4. ZF
  5. TF
  6. IF
  7. DF
  8. OF
  9. CTF

Compiling

To compile COVM you need Visual Studio.

License

COVM is licensed under GPLv2, which means you can freely distribute and/or modify the source of COVM.

covm's People

Contributors

hypercall avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.