zig: building RISCV32I emulator - Compressed Instruction(C extension)
twitch.tv/borngraced
zig stream on riscv emulator: ebreak and ecall twitch.com/borngraced
short zig stream on riscv emulator twitch.com/borngraced
5
489
TL;DR: endianness operates at byte level.. instead of swapping 0s and 1s you change the order of bytes.
People heard about little and big endian, but a lot of them still don't have intuitive understanding of it. For example, a common mistake is to think that you just read 1s and 0s from left to right vs right to left.
Writing a parser for big endian format (like TTF) helps a lot
1
12
520
Replying to @obadafidiii
I don't have fixed streaming days just yet but I'm trying to make it more consistent though, probably around 4-5 times a week. I'll announce streams ahead of time or simply follow my twitch and turn on notification
1
2
39
Replying to @obadafidiii
these should be good for start.. docs.riscv.org/reference/isa…, msyksphinz-self.github.io/ri…
2
1
47
Replying to @obadafidiii
here’s a very simple c program we compiled and ran using the emulator
twitch.tv/videos/2936219134?…
1
2
19
Replying to @obadafidiii
Thankyou.. yeah the goal is to be able to run any program/game compiled into riscv32 exe format from any low level langs like C, Rust, Zig etc. currently, the emulator can already run some C programs that doesn’t requires stdlib and compiled using the riscv gcc compiler flags
1
260
short zig stream on riscv emulator twitch.com/borngraced





