Merge branch 'master' of github.com:badvision/lawless-legends

This commit is contained in:
Martin Haye 2018-03-28 16:21:35 -07:00
commit 91d58fb584
2 changed files with 5 additions and 14 deletions

View File

@ -824,10 +824,10 @@ void emit_ical(void)
void emit_leave(void)
{
emit_pending_seq();
if (localsize)
//if (localsize)
printf("\t%s\t$5A,$%02X\t\t\t; LEAVE\t%d\n", DB, localsize, localsize);
else
printf("\t%s\t$5C\t\t\t; RET\n", DB);
//else
// printf("\t%s\t$5C\t\t\t; RET\n", DB);
}
void emit_ret(void)
{
@ -836,7 +836,7 @@ void emit_ret(void)
}
void emit_enter(int cparams)
{
if (localsize)
//if (localsize)
printf("\t%s\t$58,$%02X,$%02X\t\t; ENTER\t%d,%d\n", DB, localsize, cparams, localsize, cparams);
}
void emit_start(void)

View File

@ -1340,16 +1340,7 @@ LEAVEX INY ;+INC_IP
STA IFPL
PLA
STA IFPH
STA ALTRDOFF
LDA PSR
PHA
PLP
RTS
RETX LDA IFPL
STA PPL
LDA IFPH
STA PPH
STA ALTRDOFF
RETX STA ALTRDOFF
LDA PSR
PHA
PLP