Commit 2f07e12c authored by anonymous's avatar anonymous
Browse files

slot_SlotAttach(): Fix order of checks

parent 94af137c
......@@ -70,12 +70,12 @@ uint32_t slot_SlotAttach(VM *vm,
PC = dlx_getPC(vm) - 4; // Pull back 4
IF = dlx_getIF(vm);
if ( slot >= BDPLUS_NUM_SLOTS )
return STATUS_INVALID_PARAMETER;
if (slot == 0xFFFFFFFF)
return bdplus_new_slot(dlx_getApp(vm));
if ( slot >= BDPLUS_NUM_SLOTS )
return STATUS_INVALID_PARAMETER;
// Use 16 bytes from code_start,
// Use codeLen*4 bytes from PC
// Use IF
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment