mirror of
https://github.com/colby-swandale/waterfoul
synced 2024-11-15 19:47:58 +01:00
13 lines
325 B
Ruby
13 lines
325 B
Ruby
require 'spec_helper'
|
|
|
|
describe Waterfoul::MMU do
|
|
subject { Waterfoul::MMU.new }
|
|
|
|
describe 'DIV register' do
|
|
before { subject.write_byte 0xFF04, 0x25, hardware_operation: true }
|
|
it 'resets when written to' do
|
|
subject.write_byte 0xFF04, 0x35
|
|
expect(subject.read_byte(0xFF04)).to eq 0
|
|
end
|
|
end
|
|
end
|