mirror of
https://gitlab.os-k.eu/os-k-team/kvisc.git
synced 2023-08-25 14:05:46 +02:00
rx0
This commit is contained in:
parent
af9b87cc49
commit
6a8533c938
@ -62,6 +62,9 @@ struct ctx_t
|
|||||||
|
|
||||||
// Devices list head
|
// Devices list head
|
||||||
dev_t *dh;
|
dev_t *dh;
|
||||||
|
|
||||||
|
// Instructions executed so far
|
||||||
|
ulong ninstrs;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define R(X) ctx->rf[X]
|
#define R(X) ctx->rf[X]
|
||||||
|
@ -163,7 +163,7 @@ void decode(ctx_t *ctx)
|
|||||||
ulong pc = rip;
|
ulong pc = rip;
|
||||||
|
|
||||||
// Instruction counter
|
// Instruction counter
|
||||||
R(RX0)++;
|
ctx->ninstrs++;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Process the first word of the instruction
|
// Process the first word of the instruction
|
||||||
|
@ -100,7 +100,7 @@ void dumpregs(ctx_t *ctx)
|
|||||||
|
|
||||||
|
|
||||||
log("\n\nrip=0x%-16lX rsp=0x%-16lX rbp=0x%-16lX rx0=%-16lu\n\n",
|
log("\n\nrip=0x%-16lX rsp=0x%-16lX rbp=0x%-16lX rx0=%-16lu\n\n",
|
||||||
rip, rsp, rbp, R(RX0));
|
rip, rsp, rbp, ctx->ninstrs);
|
||||||
|
|
||||||
log("CF=%x OF=%x\n"
|
log("CF=%x OF=%x\n"
|
||||||
"ZF=%x SF=%x\n"
|
"ZF=%x SF=%x\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user