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
# 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
attr_reader :m
# 16 bit registers
@ -55,7 +55,7 @@ module Waterfoul
def initialize(options = {})
@pc = 0x0000
@sp = 0x0000
@a = @b = @c = @d = @e = @f = @h = @l = @f = 0x00
@a = @b = @c = @d = @e = @f = @h = @l = 0x00
@m = 0
@timer = Timer.new
@ime = false