From 03387a550cbe130848b8af216667378a12904066 Mon Sep 17 00:00:00 2001 From: Preston Skupinski Date: Thu, 5 May 2011 11:11:58 -0400 Subject: [PATCH] have the examples make sure the registers are 16-bit --- README | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README b/README index 601514d..fdb3c8d 100644 --- a/README +++ b/README @@ -6,18 +6,18 @@ Short examples to try out: var cpu = new CPU_65816(); -cpu.execute("18fba9ff0185ff64ffa5ff"); +cpu.execute("18fbc230a9ff0185ff64ffa5ff"); cpu.r.a should be 0 after executing this. -cpu.execute("18fba9ff01a0010099fea5ff"); +cpu.execute("18fbc230a9ff01a0010099fea5ff"); cpu.r.a should be 511 after executing this. -cpu.execute("18fba900001ad0fd") +cpu.execute("18fbc230a900001ad0fd") This will loop until 0 is incremented past 0xffff and overflows back to 0. -cpu.execute("18fba9ffff3a30fd") +cpu.execute("18fbc230a9ffff3a30fd") This will loop until 0xffff is decremented to 0x7fff and then stops.