Skip to content

Commit 97c7f8b

Browse files
committed
cmd/7a: make RET an alias to ARETURN in the assembler
Note that RET still becomes ARETURN, not ARET. This means we lose the ability to write a literal return instruction from assembly, but that's okay, we never need to do that. Fixes golang#28 Change-Id: I5733bbb16d98585cb7309314965750e58042a7a4
1 parent afb618e commit 97c7f8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd/7a/lex.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ struct
470470
"RBITW", LTYPE2, ARBITW,
471471
"REM", LTYPE1, AREM,
472472
"REMW", LTYPE1, AREMW,
473-
"RET", LTYPEA, ARET,
473+
"RET", LTYPEA, ARETURN,
474474
"REV", LTYPE2, AREV,
475475
"REV16", LTYPE2, AREV16,
476476
"REV16W", LTYPE2, AREV16W,

0 commit comments

Comments
 (0)