Skip to content

Commit

Permalink
cmd/7a: make RET an alias to ARETURN in the assembler
Browse files Browse the repository at this point in the history
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
  • Loading branch information
4ad committed Jan 7, 2015
1 parent afb618e commit 97c7f8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/7a/lex.c
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ struct
"RBITW", LTYPE2, ARBITW,
"REM", LTYPE1, AREM,
"REMW", LTYPE1, AREMW,
"RET", LTYPEA, ARET,
"RET", LTYPEA, ARETURN,
"REV", LTYPE2, AREV,
"REV16", LTYPE2, AREV16,
"REV16W", LTYPE2, AREV16W,
Expand Down

0 comments on commit 97c7f8b

Please sign in to comment.