Update of /cvsroot/wisp/wisp/modules
In directory usw-pr-cvs1:/tmp/cvs-serv1479/modules
Modified Files:
linux.wrti
Log Message:
Created the |argc-argv-envp| and |argv-envp| macros.
Index: linux.wrti
===================================================================
RCS file: /cvsroot/wisp/wisp/modules/linux.wrti,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- linux.wrti 18 Sep 2002 21:07:35 -0000 1.22
+++ linux.wrti 18 Sep 2002 21:14:23 -0000 1.23
@@ -10,6 +10,10 @@
(ifndef _linux.wrti_ (define _linux.wrti_)
+ ; These are supposed to be used immediately in the start of |_start|.
+ (macro argc-argv-envp (stack=! 1) sp@ 2dup swap cells + cell+)
+ (macro argv-envp argc-argv-envp rot drop)
+
(macro \sys ,(mov %eax ,0) drop ,(int #x80))
(macro \skt (stack=! 1) ,(mov %ebx ,0) drop
(flush) ,(mov %ecx %esp) 102 \sys)
|