Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mmix
util
Commits
4b074b4b
Commit
4b074b4b
authored
Oct 14, 2014
by
Martin Ruckert
Browse files
first version of mmixal working with mmixide
parent
9863bc8c
Changes
3
Hide whitespace changes
Inline
Side-by-side
mmixlib/mmixallib.ch
View file @
4b074b4b
...
...
@@ -104,7 +104,7 @@ void report_error(message)
#include <stdio.h>
#include <setjmp.h>
extern
int err_count;
int err_count;
extern FILE *listing_file;
extern void flush_listing_line(char*line);
typedef enum{false,true}bool;
...
...
mmixlib/mmixlib.h
View file @
4b074b4b
/* auxiliar functions provided by the library but without a prototype here*/
#if 0
extern void free_tree(trie_node *root);
...
...
@@ -101,9 +102,8 @@ extern int mmixal(char *mms_name, char *mmo_name, char *mml_name, int x_option,
otherwise the number of errors found in the input
*/
extern
void
mmixal
_error
(
char
*
message
,
int
file_no
,
int
line_no
,
int
status
);
extern
void
report
_error
(
char
*
message
,
char
*
filename
,
int
line_no
);
/* report an error in the given file and line.
status is 1 for warnings, 0 for errors, -1 for fatal errors.
*/
extern
void
add_line_loc
(
int
file_no
,
int
line_no
,
octa
loc
);
...
...
@@ -119,3 +119,6 @@ extern FILE *src_file, *obj_file, *listing_file;
extern
int
expanding
;
/* are we expanding instructions when base address fail? */
extern
int
buf_size
;
/* maximum number of characters per line of input */
extern
int
mmixal
(
char
*
mms_name
,
char
*
mmo_name
,
char
*
mml_name
,
int
x_option
,
int
b_option
);
extern
int
err_count
;
/* the error count */
extern
bool
line_listed
;
extern
void
flush_listing_line
(
char
*
line
);
\ No newline at end of file
mmixlib/mmixlib.vcproj
View file @
4b074b4b
...
...
@@ -700,6 +700,10 @@
RelativePath=
".\libimport.h"
>
</File>
<File
RelativePath=
".\mmixlib.h"
>
</File>
</Filter>
<Filter
Name=
"Resource Files"
...
...
@@ -719,7 +723,7 @@
<Tool
Name=
"VCCustomBuildTool"
Description=
"ctangle mmix-arith"
CommandLine=
"ctangle mmixware\mmix-arith.w"
CommandLine=
"ctangle mmixware\mmix-arith.w


"
Outputs=
"mmix-arith.c"
/>
</FileConfiguration>
...
...
@@ -729,7 +733,7 @@
<Tool
Name=
"VCCustomBuildTool"
Description=
"ctangle mmix-arith"
CommandLine=
"ctangle mmixware\mmix-arith.w"
CommandLine=
"ctangle mmixware\mmix-arith.w


"
Outputs=
"mmix-arith.c"
/>
</FileConfiguration>
...
...
@@ -743,7 +747,7 @@
<Tool
Name=
"VCCustomBuildTool"
Description=
"ctangle mmix-io"
CommandLine=
"ctangle mmixware/mmix-io.w"
CommandLine=
"ctangle mmixware/mmix-io.w


"
Outputs=
"mmix-io.c"
/>
</FileConfiguration>
...
...
@@ -753,7 +757,7 @@
<Tool
Name=
"VCCustomBuildTool"
Description=
"ctangle mmix-io"
CommandLine=
"ctangle mmixware/mmix-io.w"
CommandLine=
"ctangle mmixware/mmix-io.w


"
Outputs=
"mmix-io.c"
/>
</FileConfiguration>
...
...
@@ -810,6 +814,10 @@
/>
</FileConfiguration>
</File>
<File
RelativePath=
".\mmixallib.ch"
>
</File>
</Filter>
</Files>
<Globals>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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