annotate assembler/README @ 4:6b5453d7f336

spalling and gremmar
author james <jb302@eecs.qmul.ac.uk>
date Sat, 07 Dec 2013 00:29:03 +0000
parents 82e82dda442b
children
rev   line source
jb302@1 1 version: 0.00001
jb302@1 2
jb302@1 3 NOTES:
jb302@1 4
jb302@1 5 language.py:
jb302@4 6 -The entire language is defined in language.iset
jb302@1 7
jb302@4 8 -language.tokenize() does not yet handle these data types:
jb302@1 9 - addr11
jb302@1 10 - port_addr
jb302@1 11 - vect8
jb302@1 12
jb302@1 13 -16 bit hex strings must be in the format '0xXXXX' or '0xXXX'
jb302@1 14 or they will be interpreted an a 8 bit data type
jb302@1 15
jb302@1 16 assembler.py:
jb302@1 17
jb302@1 18 - first_pass() doesn't handle any directives apart from 'label:'
jb302@1 19 - labels must be defined before they are referenced or second_pass() breaks
jb302@1 20 - 16 bit address labels don't work unless the address is actually > 255
jb302@1 21 otherwise tokenize returns them as 'rel8' and the symbol doesn't match
jb302@1 22 anything in iset
jb302@4 23