summaryrefslogtreecommitdiff
path: root/src/vcpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vcpu.c')
-rw-r--r--src/vcpu.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/vcpu.c b/src/vcpu.c
index 504aa7a..67dea13 100644
--- a/src/vcpu.c
+++ b/src/vcpu.c
@@ -220,7 +220,13 @@ void VCPUExecute(){
break;
case 0x0A:
- // TODO
+ int key=KeypadGetPressed();
+ if(key >= 0){
+ State.V[State.X]=key&0x0F;
+ }
+ else
+ State.PC-=2; // Go back to last instruction (loop until key is pressed)
+
break;
case 0x15: // Set timer