/hexxy32

A RISC-V computer implemented in Hex Casting.

Primary LanguageMakefileMIT LicenseMIT

hexxy32

A RISC-V (rv32i) computer implemented in Hex Casting. Heavily WIP.

Data representation

Memory is represented as a list of number iota. Hex Casting's numbers are internally stored as doubles (though some operations convert them to longs or ints), so we store 32 bits (4 bytes) in each number iota, as non-negative numbers between 0 and 2^32-1. This means immediates are unsigned by default and converted to/from signed only when necessary.

Registers

Registers are stored in the ravenmind as a list.

Index Value
0-31 Normal registers
32 Current pc
33 Next pc

Requirements

  • Hex Casting 0.10.3
  • Hexal
  • Hex Gloop

Links