use named R_BP

and fix named R_BP
This commit is contained in:
dzaima 2021-07-01 19:16:42 +03:00
parent b009b40329
commit a6c4f8c84d
2 changed files with 3 additions and 3 deletions

View File

@ -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();

View File

@ -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