mirror of
https://github.com/colby-swandale/waterfoul
synced 2024-12-26 21:58:54 +01:00
Remove duplicate assignment to @f and duplicate attr_reader
This commit is contained in:
parent
7b6e69b034
commit
beb23b537b
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue