implements PLN-0024

This commit is contained in:
2026-04-17 17:56:37 +01:00
parent cc700c6cf8
commit 3fef407efc
3 changed files with 17 additions and 5 deletions
+5 -5
View File
@@ -42,10 +42,10 @@ pub fn generate() -> Result<()> {
ret_slots: 0,
},
SyscallDecl {
module: "gfx".into(),
name: "set_sprite".into(),
module: "composer".into(),
name: "emit_sprite".into(),
version: 1,
arg_slots: 10,
arg_slots: 9,
ret_slots: 1,
},
];
@@ -124,9 +124,9 @@ fn heavy_load(rom: &mut Vec<u8>) {
// --- clear screen ---
rom.extend(asm("PUSH_I32 0\nHOSTCALL 0"));
// --- call status-first syscall path once per frame and drop status ---
// --- call composer-domain sprite emission path once per frame and drop status ---
rom.extend(asm(
"PUSH_I32 0\nPUSH_I32 0\nPUSH_I32 0\nPUSH_I32 0\nPUSH_I32 0\nPUSH_I32 0\nPUSH_BOOL 0\nPUSH_BOOL 0\nPUSH_BOOL 0\nPUSH_I32 0\nHOSTCALL 4\nPOP_N 1",
"PUSH_I32 0\nPUSH_I32 0\nPUSH_I32 0\nPUSH_I32 0\nPUSH_I32 0\nPUSH_I32 0\nPUSH_BOOL 0\nPUSH_BOOL 0\nPUSH_I32 0\nHOSTCALL 4\nPOP_N 1",
));
// --- draw 500 discs ---