summaryrefslogtreecommitdiff
path: root/gen.rb
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2018-06-17 01:36:58 -0400
committerPaul Duncan <pabs@pablotron.org>2018-06-17 01:36:58 -0400
commitb48f7bfb063de855881f5b3f66a4a2f8aab648b4 (patch)
tree84768fa522758d4de850222b8a9644b73a0566a5 /gen.rb
parent9dd61937a48467e7949eb456380a00e69a8ed813 (diff)
downloadgb-c-b48f7bfb063de855881f5b3f66a4a2f8aab648b4.tar.bz2
gb-c-b48f7bfb063de855881f5b3f66a4a2f8aab648b4.zip
clocks, buttons, initial interrupts
Diffstat (limited to 'gen.rb')
-rwxr-xr-xgen.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/gen.rb b/gen.rb
index 6d579ca..cdf1fec 100755
--- a/gen.rb
+++ b/gen.rb
@@ -29,9 +29,9 @@ DATA['ops'].each do |set_id, ops|
# time expr
time_expr = case op['time']
when Numeric
- 'ctx->cpu.clock += %d;' % [op['time']]
+ 'clock = %d;' % [op['time']]
when Hash
- 'ctx->cpu.clock += %d; // t: %d, f: %d' % %w{f t f}.map { |k|
+ 'clock = %d; // t: %d, f: %d' % %w{f t f}.map { |k|
op['time'][k]
}
else