Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
de0d762a
Commit
de0d762a
authored
Sep 21, 2009
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
accept CALL $(constant) to call absolute PC
R=ken OCL=34845 CL=34845
parent
11e313ae
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
2 deletions
+14
-2
a.y
src/cmd/8a/a.y
+1
-0
l.h
src/cmd/8l/l.h
+1
-0
optab.c
src/cmd/8l/optab.c
+2
-1
span.c
src/cmd/8l/span.c
+10
-1
No files found.
src/cmd/8a/a.y
View file @
de0d762a
...
...
@@ -285,6 +285,7 @@ rom:
}
| reg
| omem
| imm
rim:
rem
...
...
src/cmd/8l/l.h
View file @
de0d762a
...
...
@@ -193,6 +193,7 @@ enum
Z_rp
,
Zbr
,
Zcall
,
Zcallcon
,
Zib_
,
Zib_rp
,
Zibo_m
,
...
...
src/cmd/8l/optab.c
View file @
de0d762a
...
...
@@ -260,7 +260,8 @@ uchar yloop[] =
uchar
ycall
[]
=
{
Ynone
,
Yml
,
Zo_m
,
2
,
Ynone
,
Ybr
,
Zcall
,
1
,
Ynone
,
Ybr
,
Zcall
,
0
,
Ynone
,
Yi32
,
Zcallcon
,
1
,
0
};
uchar
yjmp
[]
=
...
...
src/cmd/8l/span.c
View file @
de0d762a
...
...
@@ -105,7 +105,7 @@ start:
textsize
=
c
;
n
++
;
}
while
(
again
);
if
(
INITRND
)
{
INITDAT
=
rnd
(
c
,
INITRND
);
if
(
INITDAT
!=
idat
)
{
...
...
@@ -1109,6 +1109,15 @@ found:
}
break
;
case
Zcallcon
:
v
=
p
->
to
.
offset
-
p
->
pc
-
5
;
*
andptr
++
=
op
;
*
andptr
++
=
v
;
*
andptr
++
=
v
>>
8
;
*
andptr
++
=
v
>>
16
;
*
andptr
++
=
v
>>
24
;
break
;
case
Zjmp
:
q
=
p
->
pcond
;
if
(
q
)
{
...
...
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