Mercurial > repos > tabletprog
comparison modules/il.tp @ 350:a3b06d53bcb9
Make il and x86 modules cope with dict hash instead of dict linear for the program definition
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Fri, 10 Apr 2015 01:19:46 -0700 |
parents | a840e9a068a2 |
children | f74ce841fd1e |
comparison
equal
deleted
inserted
replaced
349:60292f131de9 | 350:a3b06d53bcb9 |
---|---|
703 labels <- prepped map: :_ { | 703 labels <- prepped map: :_ { |
704 backend label | 704 backend label |
705 } | 705 } |
706 outprog <- #[] | 706 outprog <- #[] |
707 foreach: prepped :name instarr { | 707 foreach: prepped :name instarr { |
708 outprog append: (labels get: name) | 708 outprog append: (labels get: name else: { false }) |
709 foreach: instarr :_ inst { | 709 foreach: instarr :_ inst { |
710 print: "Translating: " . inst . "\n" | 710 print: "Translating: " . inst . "\n" |
711 backend convertIL: inst to: outprog withLabels: labels | 711 backend convertIL: inst to: outprog withLabels: labels |
712 } | 712 } |
713 } | 713 } |