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
277cd082
Commit
277cd082
authored
Sep 15, 2015
by
Martin Ruckert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adapting mmixallib.ch to the extended mmixal mmixalex
parent
e0f2b0ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
mmixlib/mmixallib.ch
mmixlib/mmixallib.ch
+18
-6
No files found.
mmixlib/mmixallib.ch
View file @
277cd082
...
@@ -65,11 +65,11 @@ Char *filename[257];
...
@@ -65,11 +65,11 @@ Char *filename[257];
panic("Capacity exceeded: More than 256 file names");
panic("Capacity exceeded: More than 256 file names");
filename_count++;
filename_count++;
}
}
cur_file=k;
else free(filename[filename_count]);
@y
@y
filename[k]='\0';
filename[k]='\0';
cur_file
= filename2file(filename);
k
= filename2file(filename);
if (
cur_file
<0) panic("Capacity exceeded: More than 256 file names");
if (
k
<0) panic("Capacity exceeded: More than 256 file names");
@z
@z
...
@@ -315,6 +315,19 @@ tetra z,y,x,yz,xyz; /* pieces for assembly */
...
@@ -315,6 +315,19 @@ tetra z,y,x,yz,xyz; /* pieces for assembly */
static tetra z,y,x,yz,xyz; /* pieces for assembly */
static tetra z,y,x,yz,xyz; /* pieces for assembly */
@z
@z
The following change is new for alex, the extended mmixal
@x
f = fopen(filename[k],"rb");
if (f==NULL) {
derr("unable to open file \"%s\"",filename[k]);@+goto bypass;@+}
@y
f = fopen(file2filename(k),"rb");
if (f==NULL) {
derr("unable to open file \"%s\"",file2filename(k));@+goto bypass;@+}
@z
The main() program becomes mmixal().
The main() program becomes mmixal().
@x
@x
...
@@ -397,12 +410,11 @@ int main(argc,argv)
...
@@ -397,12 +410,11 @@ int main(argc,argv)
@<Type definitions@>@;
@<Type definitions@>@;
@<Global variables@>@;
@<Global variables@>@;
#include "libimport.h"
#include "libimport.h"
#include "libname.h"
extern void report_error(char * message, int file_no, int line_no);
extern void report_error(char * message, int file_no, int line_no);
extern jmp_buf mmixal_exit;
extern jmp_buf mmixal_exit;
extern char *file2filename(int file_no);
extern int filename2file(char *filename);
@<Subroutines@>@;
@<Subroutines@>@;
@#
@#
...
...
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