-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Filip Kokosiński <[email protected]>
- Loading branch information
1 parent
e1ed6df
commit ef8a8e3
Showing
3 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include ../common/common.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
static void putc(int); | ||
|
||
int x; | ||
int y; | ||
int z; | ||
|
||
void _start(void) | ||
{ | ||
/* TODO: handle sp/fp init better -- separate crt0.S? */ | ||
asm ("law 03000"); | ||
asm ("dac 209"); | ||
asm ("law 04000"); | ||
asm ("dac 208"); | ||
|
||
x = 21; | ||
y = 37; | ||
|
||
z = x << 3; | ||
if (z == 168) | ||
putc(027); | ||
|
||
z = y >> 3; | ||
if (z == 4) | ||
putc(027); | ||
|
||
asm ("hlt"); | ||
__builtin_unreachable(); | ||
} | ||
|
||
static void putc(int c) { | ||
asm ("lio %0" : : "r"(c)); | ||
asm ("tyo"); | ||
} |
Submodule pdp1-gcc
updated
5 files
+11 −0 | gcc/config/pdp1/constraints.md | |
+8 −5 | gcc/config/pdp1/pdp1.cc | |
+6 −7 | gcc/config/pdp1/pdp1.h | |
+63 −8 | gcc/config/pdp1/pdp1.md | |
+17 −0 | gcc/config/pdp1/predicates.md |