ALL POSTS

Posts · Page 5

riscv asm compare viewer

riscv asm compare viewer 既然能輸出svg向量檔,那麼對比當中的html是否有更方便的方式呢,來寫個html,主要對照vscode可以實現拖拉載入svg圖檔,以及卷軸同步功能,以便找出asm的不同. html Copy <!DOCTYPE html> < html lang = "en" > < head > < meta charset = "UTF-…

Systems, OS & Compilers
riscv asm compare viewer

walk asm call graph

walk asm call graph 改動後的asm2cfg大概可以直接接受objdump 直接輸出相對應的call graph 新增了svg的向量圖,增加了顏色判斷與no jump 和 jump 的顏色標記,增加了模糊搜尋走訪dfs 改動最多的地方還是能夠呈現asm 的 source code的部分,原理大概就是把comment當作inst,並給予address bash…

Systems, OS & Compilers
walk asm call graph

riscv asm2cfg

rsicv asm2cfg 最近在研究disassembly 再找有沒有實際可以把asm轉成cfg的tool https://github.com/Kazhuu/asm2cfg 找到是找到了但是只支援single function 和x86 和 arm 唯一比較有印象的是以前的ida pro 今天下午有空來幫改一下, 在Development 他也有說到可以新建環境 https…

Systems, OS & Compilers
riscv asm2cfg

run riscv_emulator in webassembly reload binary file

wasm 如何互動 https://github.com/x213212/wasm_riscv_emu 五年前wasm files系統很不友善只有編譯過,硬改後也沒什結果,這次再結合online ide一下打算做一個類似debug的工具,今天就先把檔案系統給搞定. https://openhome.cc/Gossip/WebAssembly/C2Wasm.html https:…

Games & Multimedia
run riscv_emulator in webassembly reload binary file

mini-riscv-os vga Conway’s Game of Life

mini-riscv-os vga Conway's Game of Life 前面作者實現了碎形圖 https://zh.wikipedia.org/wiki/%E5%88%86%E5%BD%A2 那我們就來在上面實現一個生命遊戲 https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life https://github.com/…

Games & Multimedia
mini-riscv-os vga Conway’s Game of Life

mini-riscv-os vga

mini-riscv-os vga https://gist.github.com/iamgreaser/15a0a81cd117d4efd1c47ce598c13c91 https://github.com/cccriscv/mini-riscv-os/tree/master/03-MultiTasking 找到一個riscv 的vga 驅動 記得bios 改為 no bio…

Systems, OS & Compilers
mini-riscv-os vga

run gb_emulator in webassembly

run gb_emu in webasm https://web.dev/drawing-to-canvas-in-emscripten/ 有了前面這個構想,現在的webasm不像2018那麼舊了,剛剛看了怎麼console 部分上面還有一塊區域,原來wasm 也整合了sdl2,剛好我們的gb_emu 也是用sdl2引擎那麼我們能不能直接移植上去呢我們來看一下。 cpp Cop…

Games & MultimediaWeb, Frontend & Mobile
run gb_emulator in webassembly

study riscv_emulator

https://michaeljclark.github.io/isa.html https://github.com/x213212/riscv_emulator riscv_emulator 研讀一下riscv 架構的指令,找了一個模擬器來看實際要執行risc v指令內部會經過哪一些細節 create riscv 架構的 binary code Copy test.bin…

Systems, OS & Compilers
study riscv_emulator

rust-riscv-os c to rust virtio-drivers lib callback succ

rust-riscv-os c to rust virtio-drivers lib callback success 昨天有說到是否有可能rust 去 call c 或者 c 去call rust,假設其中一項成立都有利於更加快速的開發我們的系統,我們就可以把一些寫好的c 給 rust 用,rust有寫的 c直接呼叫,看了太多程式碼都沒有看到具體實現的過程有沒有可能來實驗一下…

Programming & Software Engineering
rust-riscv-os c to rust virtio-drivers lib callback succ