LICENSE.txt and config.asm
This commit is contained in:
parent
045f76a790
commit
a61c3322e8
|
@ -0,0 +1,35 @@
|
|||
everything in this repo is subject to this license unless otherwise specified.
|
||||
|
||||
==============================================================================
|
||||
|
||||
nforth - a minimalist i386 forth
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
copyright 2022 stacksmith
|
||||
|
||||
redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1) redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
2) redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
3) neither the name of the copyright holder nor the names of its contributors
|
||||
may be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
this software is provided by the copyright holders and contributors "as is"
|
||||
and any express or implied warranties, including, but not limited to, the
|
||||
implied warranties of merchantability and fitness for a particular purpose are
|
||||
disclaimed. in no event shall the copyright holder or contributors be liable
|
||||
for any direct, indirect, incidental, special, exemplary, or consequential
|
||||
damages (including, but not limited to, procurement of substitute goods or
|
||||
services; loss of use, data, or profits; or business interruption) however
|
||||
caused and on any theory of liability, whether in contract, strict liability,
|
||||
or tort (including negligence or otherwise) arising in any way out of the use
|
||||
of this software, even if advised of the possibility of such damage.
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
MEMSIZE = $20000
|
||||
|
48
nforth.asm
48
nforth.asm
|
@ -1,11 +1,43 @@
|
|||
if 0
|
||||
==============================================================================
|
||||
|
||||
nForth - a minimalist i386 forth
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
Everything in this repo is subject to this license unless otherwise specified
|
||||
|
||||
Copyright 2022 stacksmith
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1) Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
2) Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
3) Neither the name of the copyright holder nor the names of its contributors
|
||||
may be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
|
||||
; fasm demonstration of writing simple ELF executable
|
||||
end if
|
||||
|
||||
MEMSIZE = $20000 ;
|
||||
LASTHEAD = 0 ;search terminates at bye (first head)
|
||||
|
||||
include "configure.asm"
|
||||
include "macros.asm"
|
||||
|
||||
format ELF executable 3
|
||||
|
@ -524,10 +556,10 @@ HEAD main,docol
|
|||
|
||||
;;; on entry, esp has 2 return addresses.
|
||||
ANON _sysp, $+4
|
||||
DSTACK
|
||||
push ebx ;1,2,3,3
|
||||
push dword[esp+8] ;1,2,3,1,3
|
||||
push dword[esp+8] ;1,2,3,1,2,3
|
||||
DSTACK ; |
|
||||
push ebx ;1,2,3, 3
|
||||
push dword[esp+8] ;1,2,3,1, 3
|
||||
push dword[esp+8] ;1,2,3,1,2, 3
|
||||
RSTACK
|
||||
NEXT
|
||||
|
||||
|
|
Loading…
Reference in New Issue