implements PLN-0072

This commit is contained in:
2026-05-23 19:26:09 +01:00
parent 537096057a
commit f9a86fafb0
5 changed files with 16 additions and 6 deletions
@@ -22,7 +22,7 @@ use std::sync::Arc;
///
/// ### Console Specifications:
/// - **Resolution**: 480x270 (16:9 Aspect Ratio).
/// - **Color Depth**: RGB565 (16-bit).
/// - **Color Format**: RGBA8888.
/// - **Audio**: Stereo, Command-based mixing.
/// - **Input**: 12-button Digital Gamepad + Absolute Touch/Mouse.
pub struct Hardware {
@@ -648,7 +648,7 @@ fn tick_draw_text_survives_no_scene_frame_path() {
let mut vm = VirtualMachine::default();
let signals = InputSignals::default();
let code = assemble(
"PUSH_I32 0\nPUSH_I32 0\nPUSH_CONST 0\nPUSH_I32 65535\nHOSTCALL 0\nFRAME_SYNC\nHALT",
"PUSH_I32 0\nPUSH_I32 0\nPUSH_CONST 0\nPUSH_I32 287454020\nHOSTCALL 0\nFRAME_SYNC\nHALT",
)
.expect("assemble");
let program = serialized_single_function_module_with_consts(
@@ -682,7 +682,7 @@ fn tick_draw_text_survives_no_scene_frame_path() {
assert!(report.is_none(), "no-scene overlay text must not crash");
hardware.gfx.present();
assert_eq!(hardware.gfx.front_buffer()[0], Color::WHITE.raw());
assert_eq!(hardware.gfx.front_buffer()[0], Color::from_raw(0x11223344).raw());
}
#[test]
+1 -1
View File
@@ -43,7 +43,7 @@ pub fn generate() -> Result<()> {
let syscalls = vec![
SyscallDecl {
module: "gfx".into(),
name: "clear_565".into(),
name: "clear".into(),
version: 1,
arg_slots: 1,
ret_slots: 0,