From a78e6cb23cb624af551d2ea00517f142afb833ce Mon Sep 17 00:00:00 2001 From: Adrian Conlon Date: Wed, 15 May 2019 22:48:34 +0100 Subject: [PATCH] Poke methods shouldn't be returning values. Signed-off-by: Adrian Conlon --- EightBit/Bus.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/EightBit/Bus.cs b/EightBit/Bus.cs index 4e68991..699be5b 100644 --- a/EightBit/Bus.cs +++ b/EightBit/Bus.cs @@ -36,11 +36,11 @@ namespace EightBit public void Poke(byte value) => this.Reference() = value; - public byte Poke(ushort absolute, byte value) => this.Reference(absolute) = value; + public void Poke(ushort absolute, byte value) => this.Reference(absolute) = value; - public byte Poke(Register16 absolute, byte value) => this.Poke(absolute.Word, value); + public void Poke(Register16 absolute, byte value) => this.Poke(absolute.Word, value); - public byte Poke(byte low, byte high, byte value) => this.Reference(low, high) = value; + public void Poke(byte low, byte high, byte value) => this.Reference(low, high) = value; public byte Read() {