1
0
mirror of https://gitlab.os-k.eu/os-k-team/kvisc.git synced 2023-08-25 14:05:46 +02:00
This commit is contained in:
julianb0 2019-06-12 15:58:57 +02:00
parent 35af39acf6
commit 9ec996b4e6
No known key found for this signature in database
GPG Key ID: DDF8325C95299A62
4 changed files with 10 additions and 10 deletions

View File

@ -674,8 +674,8 @@ special_syms = {
def gentext():
instrs.seek(0)
print(instrs.read())
instrs.seek(0)
# print(instrs.read())
# instrs.seek(0)
text_start = 0x100000
data_start = text_start + ptext

View File

@ -26,7 +26,7 @@ main:
mov rsi, 0x10
mov rdi, 8
lea rbi, b[rsi + rdi + 1]
lea rbi, b[rdi + rsi * 2 + 1]
leave
ret

View File

@ -239,7 +239,7 @@ void extract_param(ctx_t *ctx, acc_t *p, uchar fmt)
p->imm2 = 0;
}
p->addr = R(p->reg1) + R(p->reg2) * p->imm1 + (long)p->imm2;
p->addr = R(p->reg1) + R(p->reg2) * p->imm1 + p->imm2;
break;

View File

@ -43,21 +43,21 @@ static void dump_acc(ctx_t *ctx, acc_t *p)
else if (mfmt == AM_RRI)
{
if (p->reg1 && p->reg2)
log("%s+%s+%lX]", ctx->r[p->reg1].name,
log("%s+%s+%hd]", ctx->r[p->reg1].name,
ctx->r[p->reg2].name, p->imm2);
else log("%s+%lX]", ctx->r[p->reg1 ? p->reg1 : p->reg2].name, p->imm2);
else log("%s+%d]", ctx->r[p->reg1 ? p->reg1 : p->reg2].name, p->imm2);
}
else if (mfmt == AM_RRII)
{
if (p->reg1)
log("%s+%s*0x%x+0x%x]",
log("%s+%s*%u+%hd]",
ctx->r[p->reg1].name,
ctx->r[p->reg2].name,
p->imm1, p->imm2);
else
log("%s*0x%x+0x%x]",
log("%s*%u+%hd]",
ctx->r[p->reg2].name,
p->imm1, p->imm2);
}
@ -80,7 +80,7 @@ void dump_instr(
if (cond)
{
log("c");
log(".");
if (cond & (1 << 4))
{