8l, 6l: get .frame offset right undoing $-4 hack
This commit is contained in:
parent
eaffaab790
commit
f109558b0c
2 changed files with 6 additions and 2 deletions
|
@ -507,8 +507,10 @@ dostkoff(void)
|
||||||
if(p->as == ATEXT) {
|
if(p->as == ATEXT) {
|
||||||
curtext = p;
|
curtext = p;
|
||||||
autoffset = p->to.offset;
|
autoffset = p->to.offset;
|
||||||
if(autoffset < 0)
|
if(autoffset < 0) {
|
||||||
autoffset = 0;
|
autoffset = 0;
|
||||||
|
p->to.offset = 0;
|
||||||
|
}
|
||||||
if(autoffset) {
|
if(autoffset) {
|
||||||
p = appendp(p);
|
p = appendp(p);
|
||||||
p->as = AADJSP;
|
p->as = AADJSP;
|
||||||
|
|
|
@ -492,8 +492,10 @@ dostkoff(void)
|
||||||
if(p->as == ATEXT) {
|
if(p->as == ATEXT) {
|
||||||
curtext = p;
|
curtext = p;
|
||||||
autoffset = p->to.offset;
|
autoffset = p->to.offset;
|
||||||
if(autoffset < 0)
|
if(autoffset < 0) {
|
||||||
autoffset = 0;
|
autoffset = 0;
|
||||||
|
p->to.offset = 0;
|
||||||
|
}
|
||||||
if(autoffset) {
|
if(autoffset) {
|
||||||
p = appendp(p);
|
p = appendp(p);
|
||||||
p->as = AADJSP;
|
p->as = AADJSP;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue