summaryrefslogtreecommitdiffstats
path: root/src/emu
diff options
context:
space:
mode:
authorBenedikt Böhm <bb@xnull.de>2009-07-07 10:33:02 +0200
committerBenedikt Böhm <bb@xnull.de>2009-07-07 10:33:02 +0200
commit2ee0ef30cb01415cdb9cdbf4adc5ad279f44f661 (patch)
tree61e30710951f7ee3fd8ebbc5e059a0e6fb92316c /src/emu
parentd15276557c65de2a1941632ec9024dea261cce26 (diff)
downloadswppy-2ee0ef30cb01415cdb9cdbf4adc5ad279f44f661.tar.gz
swppy-2ee0ef30cb01415cdb9cdbf4adc5ad279f44f661.tar.xz
swppy-2ee0ef30cb01415cdb9cdbf4adc5ad279f44f661.zip
push command line params onto stack
Diffstat (limited to 'src/emu')
-rw-r--r--src/emu/risci.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/emu/risci.c b/src/emu/risci.c
index 1711089..4f73615 100644
--- a/src/emu/risci.c
+++ b/src/emu/risci.c
@@ -104,6 +104,12 @@ int main(int argc, char *argv[])
usage(EXIT_FAILURE);
read_program(argv[0]);
+ /* push arguments onto stack */
+ while (--argc) {
+ //dump_registers();
+ push(atoi(argv[argc]));
+ }
+
/* reset program counter to first instruction */
IP = 0;