Implement near returns.

--HG--
extra : convert_revision : 3d6e8a976d31cb016a4b78200716b0ece155137a
This commit is contained in:
Gabe Black 2007-07-18 17:47:40 -07:00
parent 99310a1d93
commit dbf361128a

View file

@ -53,8 +53,14 @@
#
# Authors: Gabe Black
microcode = ""
#let {{
# class RET(Inst):
# "GenFault ${new UnimpInstFault}"
#}};
microcode = '''
def macroop RET
{
# Make the default data size of rets 64 bits in 64 bit mode
.adjust_env oszIn64Override
ld t1, ss, [0, t0, rsp]
addi rsp, rsp, dsz
wripi t1, 0
};
'''