BytePusher implemented in rust with usage of minifb and rodio library
Disclaimer: I don't own idea or demos. You can find all related resources here https://esolangs.org/wiki/BytePusher
sadly i am too lazy to implement everything, so i done…
BytePusher implemented in rust with usage of minifb and rodio library
Disclaimer: I don’t own idea or demos. You can find all related resources here https://esolangs.org/wiki/BytePusher
sadly i am too lazy to implement everything, so i done audio and display
I was referring to “A Bytepusher VM implementation in Zig – My Favorite Zig Project Yet” because i hadn’t understand some moments (adresses and pixeldata)
fixed from
let pixels_addr: usize = ((mem[5] as u32) « 24) as usize;
to
let pixels_addr: usize = (mem[5] as usize) « 16;
AND
from
let color_index = slice_to_u32(&mem[pixels_addr+i..pixels_addr+i+INTSIZE]) as usize;
to
let color_index = mem[pixels_addr + i] as usize;