summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Isom <kyle@tyrfingr.is>2014-06-28 17:33:04 -0700
committerKyle Isom <kyle@tyrfingr.is>2014-06-28 17:33:04 -0700
commitd7b21817cc577b0231c38b062987d9963f49f2fa (patch)
treeb1f97807856e01d25dad174da9364bbda2566ec2
parented573541e57c577cca5496294228df649fb25bc9 (diff)
downloadkram-d7b21817cc577b0231c38b062987d9963f49f2fa.tar.gz
kram-d7b21817cc577b0231c38b062987d9963f49f2fa.tar.bz2
kram-d7b21817cc577b0231c38b062987d9963f49f2fa.zip
Fix twoplustwo.
-rw-r--r--compiled/twoplustwo.binbin256 -> 256 bytes
-rw-r--r--vm.c16
2 files changed, 8 insertions, 8 deletions
diff --git a/compiled/twoplustwo.bin b/compiled/twoplustwo.bin
index 6d8defd..66a489d 100644
--- a/compiled/twoplustwo.bin
+++ b/compiled/twoplustwo.bin
Binary files differ
diff --git a/vm.c b/vm.c
index 11498a3..09c950a 100644
--- a/vm.c
+++ b/vm.c
@@ -545,12 +545,12 @@ void
vm_dump_registers(VM vm)
{
printf("Registers:\n");
- printf("\t A: 0x%x\n", vm->regs.A);
- printf("\t B: 0x%x\n", vm->regs.B);
- printf("\t X: 0x%x\n", vm->regs.X);
- printf("\t Y: 0x%x\n", vm->regs.Y);
- printf("\tSPA: 0x%x\n", vm->regs.SPA);
- printf("\tSPB: 0x%x\n", vm->regs.SPB);
- printf("\t PC: 0x%x\n", vm->regs.PC);
- printf("\tFLG: 0x%x\n", vm->regs.FLG);
+ printf("\t A: 0x%02x\n", vm->regs.A);
+ printf("\t B: 0x%02x\n", vm->regs.B);
+ printf("\t X: 0x%02x\n", vm->regs.X);
+ printf("\t Y: 0x%02x\n", vm->regs.Y);
+ printf("\tSPA: 0x%02x\n", vm->regs.SPA);
+ printf("\tSPB: 0x%02x\n", vm->regs.SPB);
+ printf("\t PC: 0x%05x\n", vm->regs.PC);
+ printf("\tFLG: 0x%02x\n", vm->regs.FLG);
}