copyleft: gplv3 added and set repo to public
[calu.git] / progs / deepjit.s
index c5ab1ff2445031c76b083dedce7cd8b283df0178..cb946a73611dfe9ba2de575babfca740b2854979 100644 (file)
@@ -1,3 +1,24 @@
+;    `Deep Thought', a softcore CPU implemented on a FPGA
+;
+;   Copyright (C) 2010 Markus Hofstaetter <markus.manrow@gmx.at>
+;   Copyright (C) 2010 Martin Perner <e0725782@student.tuwien.ac.at>
+;   Copyright (C) 2010 Stefan Rebernig <stefan.rebernig@gmail.com>
+;   Copyright (C) 2010 Manfred Schwarz <e0725898@student.tuwien.ac.at>
+;   Copyright (C) 2010 Bernhard Urban <lewurm@gmail.com>
+;
+;   This program is free software: you can redistribute it and/or modify
+;   it under the terms of the GNU General Public License as published by
+;   the Free Software Foundation, either version 3 of the License, or
+;   (at your option) any later version.
+;
+;   This program is distributed in the hope that it will be useful,
+;   but WITHOUT ANY WARRANTY; without even the implied warranty of
+;   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;   GNU General Public License for more details.
+;
+;   You should have received a copy of the GNU General Public License
+;   along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
 #define PROGINSTR stw r0, PDATA(r13)
 #include "dt_inc.s"
 .data
@@ -22,9 +43,6 @@ inputdata:
 ;* 8
 .fill 1, 0x2A38
 
-stack:
-.fill 256, 0
-
 ;needed for jumps
 ;assuming that no more than 42 instr are used
 instrtable:
@@ -32,7 +50,6 @@ instrtable:
 
 prog_eof:
 .ifill pop r7
-.ifill mov r0, r6
 .ifill ret+
 
 prog_mul:
@@ -153,7 +170,7 @@ main:
        call+ prog_start
 
        ; benchepilog
-       push r0
+       push r6
        call+ t_init
        call+ t_stop
        call+ t_valget
@@ -225,8 +242,6 @@ vm_eof:
        stw r0, PDATA(r13)
        ldw r0, 4(r4)
        stw r0, PDATA(r13)
-       ldw r0, 8(r4)
-       stw r0, PDATA(r13)
 
        ;end of program
        ;now it is time to clear up the defer table