diff --git a/src/ArchC-Core/AcAsmSyntax.class.st b/src/ArchC-Core/AcAsmSyntax.class.st index 80616f8..0406b58 100644 --- a/src/ArchC-Core/AcAsmSyntax.class.st +++ b/src/ArchC-Core/AcAsmSyntax.class.st @@ -35,9 +35,9 @@ AcAsmSyntax >> assembler [ allOperands := actualOperands copy addAll: constraints; yourself. fieldValues := Dictionary new. allOperands keysAndValuesDo: [ :opDef :v | - fieldValues addAll: (opDef asOperandInstantiation encodeValue: v accoringTo: instruction format) ]. + fieldValues addAll: (opDef asOperandInstantiation encodeValue: v + accordingTo: instruction format) ]. self instruction inEnvironment: fieldValues ] - ] { #category : #accessing } diff --git a/src/ArchC-Core/AsmOperandInstantiation.class.st b/src/ArchC-Core/AsmOperandInstantiation.class.st index 109a2aa..bc80d32 100644 --- a/src/ArchC-Core/AsmOperandInstantiation.class.st +++ b/src/ArchC-Core/AsmOperandInstantiation.class.st @@ -86,7 +86,7 @@ AsmOperandInstantiation >> encodeSimpleValue: value [ ] { #category : #private } -AsmOperandInstantiation >> encodeValue: value accoringTo: format [ +AsmOperandInstantiation >> encodeValue: value accordingTo: format [ value isAcAsmOperandModifier ifTrue: [ ^ value encodeInFields: self accordingTo: format ] ifFalse: [ diff --git a/src/ArchC-DSL/AcAsmSyntax.extension.st b/src/ArchC-DSL/AcAsmSyntax.extension.st index 66a1c05..3294d92 100644 --- a/src/ArchC-DSL/AcAsmSyntax.extension.st +++ b/src/ArchC-DSL/AcAsmSyntax.extension.st @@ -16,7 +16,8 @@ AcAsmSyntax >> assembleDSL: mnemonic operands: operandList [ | operandDef | operandDef := self operands at: operandIdx. - environment addAll: (operandDef asOperandInstantiation encodeValue: operandValue accoringTo: instruction format). + environment addAll: (operandDef asOperandInstantiation encodeValue: operandValue + accordingTo: instruction format). operandIdx := operandIdx + 1. ]. ]. @@ -36,9 +37,9 @@ AcAsmSyntax >> assembleDSL: mnemonic operands: operandList [ baseMod := operandFormat base modifier. environment addAll: (offsetDef asOperandInstantiation encodeValue: (offsetMod new x: operandValue offset) - accoringTo: instruction format). + accordingTo: instruction format). environment addAll: (baseDef asOperandInstantiation encodeValue: (baseMod new x: operandValue base) - accoringTo: instruction format). + accordingTo: instruction format). operandIdx := operandIdx + 2. ] ifFalse: [ @@ -48,7 +49,7 @@ AcAsmSyntax >> assembleDSL: mnemonic operands: operandList [ operandModifier := operandFormat modifier. environment addAll: (operandDef asOperandInstantiation encodeValue: (operandModifier new x: operandValue) - accoringTo: instruction format). + accordingTo: instruction format). operandIdx := operandIdx + 1. ]. @@ -57,7 +58,7 @@ AcAsmSyntax >> assembleDSL: mnemonic operands: operandList [ self constraints keysAndValuesDo: [:operandDef :operand | environment addAll: (operandDef asOperandInstantiation encodeValue: operand - accoringTo: instruction format) + accordingTo: instruction format) ]. ^self instruction inEnvironment: environment ]