use named R_BP
and fix named R_BP
This commit is contained in:
parent
b009b40329
commit
a6c4f8c84d
@ -456,7 +456,7 @@ Nvm_res m_nvm(Body* body) {
|
||||
Reg r_PSCS = 14;
|
||||
Reg r_CS = 3;
|
||||
Reg r_SC = 12;
|
||||
PUSH(5);
|
||||
PUSH(R_BP);
|
||||
PUSH(r_ENV);
|
||||
PUSH(r_PSCS); // Scope* pscs[]
|
||||
PUSH(r_CS); // starting gStack
|
||||
@ -592,7 +592,7 @@ Nvm_res m_nvm(Body* body) {
|
||||
POP(r_CS);
|
||||
POP(r_PSCS);
|
||||
POP(r_ENV);
|
||||
POP(5);
|
||||
POP(R_BP);
|
||||
RET();
|
||||
#undef CCALL
|
||||
GET_ASM();
|
||||
|
||||
@ -42,7 +42,7 @@ typedef u8 UC;
|
||||
typedef u8 Reg;
|
||||
#define R_RES 0 // rax
|
||||
#define R_SP 4 // rsp
|
||||
#define R_BP 4 // rbp
|
||||
#define R_BP 5 // rbp
|
||||
// aregument registers
|
||||
#define R_A0 7 // rdi
|
||||
#define R_A1 6 // rsi
|
||||
|
||||
Loading…
Reference in New Issue
Block a user