Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
U
util
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
mmix
util
Commits
bbc00243
Commit
bbc00243
authored
Sep 24, 2015
by
Martin Ruckert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shortening too long lines, adapting to linux
parent
d39f0e75
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
36 deletions
+43
-36
mmixlib/Makefile
mmixlib/Makefile
+10
-6
mmixlib/libio.ch
mmixlib/libio.ch
+26
-25
mmixlib/mmixlib.ch
mmixlib/mmixlib.ch
+7
-5
No files found.
mmixlib/Makefile
View file @
bbc00243
# the directory with the MMIXware sources
MMIXWARE
=
./mmixware
INCLDIR
=
-I
../../vmb/src/util
-I
../../vmb/src/vmbmmixlib
LIBDIR
=
-L
.
-L
../../vmb/src/util
-L
../../vmb/src/vmbmmixlib
#INCLDIR=-I ../../vmb/src/util -I ../../vmb/src/vmbmmixlib
#LIBDIR=-L. -L../../vmb/src/util -L../../vmb/src/vmbmmixlib
#INCLDIR=-I
#LIBDIR=-L.
LIBSIM
=
libboot.c libfinal.c libload.c libprint.c libstats.c
\
libcommand.c libinit.c libmem.c libprofile.c libtrace.c
\
...
...
@@ -36,20 +40,20 @@ abstime.h: $(MMIXWARE)/abstime.h
cp
$<
$@
$(MMIXWARE)/abstime.h
:
$(MMIXWARE)/abstime
$(MAKE)
-C
mmix abstime
$(MAKE)
-C
mmix
ware
abstime
$(MMIXWARE)
/abstime
>
$(MMIXWARE)
/abstime.h
mmix-arith.c
:
boilerplate.w $(MMIXWARE)/mmix-arith.w
ctangle
$(MMIXWARE)
/mmix-arith.w
mmix-io.c
:
boilerplate.w $(MMIXWARE)/mmix-io.w
ctangle
$(MMIXWARE)
/mmix-io.w
mmix-io.c
:
boilerplate.w $(MMIXWARE)/mmix-io.w
libio.ch
ctangle
$(MMIXWARE)
/mmix-io.w
libio.ch
$(LIBAL)
:
boilerplate.w $(MMIXWARE)/mmixal.w mmixallib.ch
ctangle
$(MMIXWARE)
/mmixal.w mmixallib.ch
$(LIBSIM) $(LIBH) mmix-sim.c
:
boilerplate.w $(MMIXWARE)/mmix-sim.w mmixlib.ch libconfig.h
$(LIBSIM) $(LIBH) mmix-sim.c
:
boilerplate.w $(MMIXWARE)/mmix-sim.w mmixlib.ch libconfig.h
libimport.h
ctangle
$(MMIXWARE)
/mmix-sim.w mmixlib.ch
...
...
mmixlib/libio.ch
View file @
bbc00243
...
...
@@ -5,10 +5,11 @@
@<External subroutines@>@;
@<Global variables@>@;
@<Subroutines@>@;
@y
@<Preprocessor macros@>@;
#ifdef WIN32
#pragma warning(disable : 4996 4267)
#endif
#include "libconfig.h"
@<Type definitions@>@;
@<External subroutines@>@;
...
...
mmixlib/mmixlib.ch
View file @
bbc00243
...
...
@@ -878,7 +878,8 @@ Make sure we do not branch from a positive to a negative address.
@x
if (g[rI].l<=2 && g[rI].l && g[rI].h==0) tracing=breakpoint=true;
@y
if (g[rI].l<=2 && g[rI].l && g[rI].h==0) g[rQ].l |= IN_BIT, new_Q.l |= IN_BIT, tracing=true, breakpoint|=trace_bit;
if (g[rI].l<=2 && g[rI].l && g[rI].h==0)
g[rQ].l |= IN_BIT, new_Q.l |= IN_BIT, tracing=true, breakpoint|=trace_bit;
@z
...
...
@@ -1893,7 +1894,8 @@ else
@x
if (g[rI].l<=info[op].oops && g[rI].l && g[rI].h==0) tracing=breakpoint=true;
@y
if (g[rI].l<=info[op].oops && g[rI].l && g[rI].h==0) g[rQ].l |= IN_BIT, new_Q.l |= IN_BIT, tracing=true, breakpoint|=trace_bit;
if (g[rI].l<=info[op].oops && g[rI].l && g[rI].h==0)
g[rQ].l |= IN_BIT, new_Q.l |= IN_BIT, tracing=true, breakpoint|=trace_bit;
@z
...
...
@@ -1988,9 +1990,9 @@ void show_stats(verbose)
#include "libarith.h"
#include "libimport.h"
void show_stats @,@,@[ARGS((
int
))@];@+@t}\6{@>
void show_stats @,@,@[ARGS((
bool
))@];@+@t}\6{@>
void show_stats(verbose)
int
verbose;
bool
verbose;
@z
...
...
@@ -2522,7 +2524,7 @@ BOOL CtrlHandler( DWORD fdwCtrlType )
void catchint @,@,@[ARGS((int))@];@+@t}\6{@>
void catchint(n)
int n;
{ MMIX_CTRL_HANDLER
{ MMIX_CTRL_HANDLER
;
interrupt=true;
signal(SIGINT,catchint); /* now |catchint| will catch the next interrupt */
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment