diff options
author | Paul Duncan <pabs@pablotron.org> | 2018-06-17 01:36:58 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2018-06-17 01:36:58 -0400 |
commit | b48f7bfb063de855881f5b3f66a4a2f8aab648b4 (patch) | |
tree | 84768fa522758d4de850222b8a9644b73a0566a5 /gen.rb | |
parent | 9dd61937a48467e7949eb456380a00e69a8ed813 (diff) | |
download | gb-c-b48f7bfb063de855881f5b3f66a4a2f8aab648b4.tar.bz2 gb-c-b48f7bfb063de855881f5b3f66a4a2f8aab648b4.zip |
clocks, buttons, initial interrupts
Diffstat (limited to 'gen.rb')
-rwxr-xr-x | gen.rb | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |