From f38c94d8e9d9efc928316ce4daa5910027942f02 Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Thu, 17 Apr 2014 12:54:37 +0300 Subject: [PATCH] add accessor for the s instruction postfix (affecting status flag) --- lib/asm/arm/instruction.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/asm/arm/instruction.rb b/lib/asm/arm/instruction.rb index 005d10ec..cfd2eef3 100644 --- a/lib/asm/arm/instruction.rb +++ b/lib/asm/arm/instruction.rb @@ -33,6 +33,10 @@ module Asm end attr_reader :opcode, :args + def affect_status + @s + end + OPC_DATA_PROCESSING = 0b00 OPC_MEMORY_ACCESS = 0b01 OPC_STACK = 0b10