implements PLN-0024
This commit is contained in:
@@ -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 ---
|
||||
|
||||
Reference in New Issue
Block a user