Skip to content

DeaSTL/discord-cpu-emulator

Repository files navigation

A mips 32 emulator that is interfaced with a discord bot

Work in progress features

  • Assembler
    • Tokenizer
    • Syntax Analyzer
    • Discord Assembly Input
  • interpreter
    • Instruction Declaration
    • Execution Callbacks
    • Interrups
    • Syscall
  • THE KERNEL
    • Process Managment
      • Scheduler
      • Virtual Stack
      • Virtual Registers
    • Memory Management
      • Malloc like calls
      • Memory Mapped Peripherals
        • Permenant Network Socket
        • Standard Out
        • Standard In

Work in progress assembly format

lw $s0 $s0 0x420
test:
  #this is a comment
  addi $s0 $s0 0x69 
  #Hex Numbers
  addi $s0 $s0 420 
  #Decimal Numbers
j->test

Commands so far

/dump_mem <offset> ->
0x08: 0x20 0x94 0x06 0x00 0x69 0x20 0x04 0x00 
0x10: 0xef 0xbe 0xad 0xde 0x00 0x00 0x00 0x00 
0x18: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x20: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x28: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x30: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x38: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x40: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x48: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x50: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x58: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x60: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x68: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x70: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x78: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x80: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x88: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x90: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x98: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0xa0: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0xa8: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0xb0: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0xb8: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0xc0: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0xc8: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0xd0: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0xd8: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0xe0: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0xe8: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0xf0: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0xf8: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x100: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
/dump_reg ->
ZERO: 0x00
AT: 0x00
V0: 0x00
V1: 0x00
A0: 0x00 A1: 0x00 A2: 0x00 A3: 0x00 A4: 0x00 A5: 0x00 A6: 0x00 A7: 0x00 
T0: 0x00 T1: 0x00 T2: 0x00 T3: 0x00 T4: 0x00 T5: 0x00 T6: 0x00 T7: 0x00 
S0: 0x00 S1: 0x00 S2: 0x00 S3: 0x00 S4: 0x00 S5: 0x00 S6: 0x00 S7: 0x00 
K0: 0x00
K1: 0x00
GP: 0x00
SP: 0x00
FP: 0x00
RA: 0x00

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published