Emulator, how to correctly test

⚓ Rust    📅 2026-07-09    👤 surdeus    👁️ 2      

surdeus

What kind of tests are important for an emulator?

#![no_std]
#![no_main]

use riscutils::colours;
use riscutils::draw_char;
use riscutils::print;

use core::panic::PanicInfo;
#[panic_handler]
fn panic(_info: &PanicInfo) -> ! {
    loop {}
}

#[unsafe(no_mangle)]
pub extern "C" fn _start() -> ! {
    print("Hello, World!", 0, 0, (colours::LCYAN, colours::LGREY));

    loop {}
}

should it just be device tests? whats the best way to test most things?

2 posts - 2 participants

Read full topic

🏷️ Rust_feed