Mercurial > lcfOS
view python/asm.py @ 387:34ac19044b8a
Hello world with paging in emulator
author | Windel Bouwman |
---|---|
date | Thu, 01 May 2014 22:09:18 +0200 |
parents | 6df89163e114 |
children |
line wrap: on
line source
#!/usr/bin/env python3 import argparse from ppci.target.target_list import targets from ppci.buildfunctions import assemble if __name__ == '__main__': # When run as main file, try to grab command line arguments: parser = argparse.ArgumentParser(description="Assembler") parser.add_argument('sourcefile', type=argparse.FileType('r'), help='the source file to assemble') args = parser.parse_args() obj = assemble(args.sourcefile, targets['arm'])