V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
kljsandjb

一个用 Rust 写的 8080 模拟程序

  •  
  •   kljsandjb · Aug 3, 2023 via Android · 842 views
    This topic created in 1012 days ago, the information mentioned may be changed or developed.
    用 Rust 写了个 8080 的模拟逻辑,单独封装成一个库然后提供了一些简单的 ffi 接口:



    https://github.com/k0Iry/8080-Emulator-in-Rust



    应该可以跨平台使用,需要做的就是写写 UI 和调用 rust 的 API ,例如下面这个 iOS + macOS 的 app ,用 Swift UI 简单粗糙制作了一个,从 Swift 调用 Rust 似乎也不是太麻烦的一件事,不过 Swift 的 callback 稍微麻烦点,只能传 global 函数



    https://github.com/k0Iry/SpaceInvaders
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3310 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 13:12 · PVG 21:12 · LAX 06:12 · JFK 09:12
    ♥ Do have faith in what you're doing.