ARM/TTK91 assembler
Ruby
Latest commit 2387425 Nov 26, 2012 @cyndis Add readme
Failed to load latest commit information.
README.markdown Add readme Nov 26, 2012
arm_assembler.rb Error message constants Aug 20, 2011
as.rb Add ttk91 to usage message Nov 19, 2012
assembler.rb TTK91 (Titokone) support Aug 20, 2011
code_generator.rb Change indentation style from tabs to 2x space Aug 7, 2011
elfobject.rb TTK91 (Titokone) support Aug 20, 2011
objectwriter.rb Change indentation style from tabs to 2x space Aug 7, 2011
parser.rb Add push and pop Aug 20, 2011
str_scanner.rb
streamreader.rb Change indentation style from tabs to 2x space Aug 7, 2011
ttk91_assembler.rb TTK91 (Titokone) support Aug 20, 2011

README.markdown

Assembler in Ruby

Supported assembly languages:

  • ARM, quite incompletely
  • TTK91/Titokone, with non-standard (better!) syntax

Outputs ELF object files, with relocation support.

ARM

Constant table support exists but isn't very good. Some addressing modes are not supported or only partially supported.

Supported (pseudo)instructions:

  • adc, add, and, bic, eor, orr, rsb, rsc, sbc, sub, cmn, cmp, teq, tst, mov, mvn, strb, str, ldrb, ldr, push, pop, b, bl, bx, swi
  • Conditional versions of above

TTK91/Titokone

Everything should be supported. This has not really been tested, though, as the official TTK91 emulator doesn't read ELF binaries.