Remove duplicate assignment to @f and duplicate attr_reader

This commit is contained in:
Benoit Daloze 2020-05-10 14:13:34 +02:00
parent 7b6e69b034
commit beb23b537b

View file

@ -43,7 +43,7 @@ module Waterfoul
include Instructions::Prefix include Instructions::Prefix
# 8 bit registers # 8 bit registers
attr_reader :a, :b, :c, :d, :e, :f, :h, :l, :f attr_reader :a, :b, :c, :d, :e, :f, :h, :l
# CPU instruction cycle count # CPU instruction cycle count
attr_reader :m attr_reader :m
# 16 bit registers # 16 bit registers
@ -55,7 +55,7 @@ module Waterfoul
def initialize(options = {}) def initialize(options = {})
@pc = 0x0000 @pc = 0x0000
@sp = 0x0000 @sp = 0x0000
@a = @b = @c = @d = @e = @f = @h = @l = @f = 0x00 @a = @b = @c = @d = @e = @f = @h = @l = 0x00
@m = 0 @m = 0
@timer = Timer.new @timer = Timer.new
@ime = false @ime = false