Skip to content

Commit

Permalink
More assembly.
Browse files Browse the repository at this point in the history
  • Loading branch information
DEntisT committed Aug 17, 2023
1 parent 89e447b commit 9094b87
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
Binary file modified scriptfiles/modules/consoletest.ps
Binary file not shown.
10 changes: 8 additions & 2 deletions src/components/console.inc
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ public dpp_processconsole(funcgroup[][],args[][],args_const[][])
}
}

dpp_inputtype = DPP_INPUT_TYPE_LINE;
//dpp_inputtype = DPP_INPUT_TYPE_LINE;
#emit const.alt 1
#emit stor.alt dpp_inputtype
//printf("dpp_inputtype is %sDPP_INPUT_TYPE_LINE", dpp_inputtype==DPP_INPUT_TYPE_LINE?"":"not ");
dpp_internal<return>(1);
}

Expand All @@ -132,7 +135,10 @@ public dpp_processconsole(funcgroup[][],args[][],args_const[][])
}
}

dpp_inputtype = DPP_INPUT_TYPE_CHAR;
//dpp_inputtype = DPP_INPUT_TYPE_CHAR;
#emit const.alt 2
#emit stor.alt dpp_inputtype
//printf("dpp_inputtype is %sDPP_INPUT_TYPE_LINE", dpp_inputtype==DPP_INPUT_TYPE_CHAR?"":"not ");
dpp_internal<return>(1);
}

Expand Down
16 changes: 14 additions & 2 deletions src/components/files.inc
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,13 @@ public dpp_processfiles(funcgroup[][],args[][],args_const[][])
dpp_internal<return>(0);
}

fcreatedir(args[0]);
//fcreatedir(args[0]);
@emit__ tempaddr ,.str=args[0]
#emit push.c dpp_tempaddr__
#emit push.c 4
#emit sysreq.c fcreatedir
#emit stack 8
//#emit retn
dpp_internal<return>(1);
}
if(!strcmp(funcgroup[1], "delete"))
Expand All @@ -69,7 +75,13 @@ public dpp_processfiles(funcgroup[][],args[][],args_const[][])
dpp_internal<return>(0);
}

fremove(args[0]);
//fremove(args[0]);
@emit__ tempaddr ,.str=args[0]
#emit push.c dpp_tempaddr__
#emit push.c 4
#emit sysreq.c fremove
#emit stack 8
//#emit retn
dpp_internal<return>(1);
}
if(!strcmp(funcgroup[1], "open_for_append"))
Expand Down

0 comments on commit 9094b87

Please sign in to comment.