File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed
Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change 11{#- preprocessor constants for main.mlog.jinja -#}
22
33{#- linked buildings -#}
4- {% set LOOKUP_START = 0 %}
5-
64{% set REGISTERS = 'cell1' %}
75{% set CSRS = 'processor17' %}
86{% set INCR = 'processor18' %}
Original file line number Diff line number Diff line change @@ -447,8 +447,8 @@ access_ram_raw:
447447# this must stay directly after access_ram
448448# _address -> variable
449449lookup_variable:
450+ # the lookup is assumed to start at link 0, so we don't need to add an offset here
450451 op idiv _lookup _address {{LOOKUP_PROC_SIZE}}
451- op add _lookup _lookup {{LOOKUP_START}}
452452 getlink _lookup _lookup
453453
454454 op mod variable _address {{LOOKUP_PROC_SIZE}}
@@ -2053,7 +2053,6 @@ MLOGDRAW_draw_image__end:
20532053# {% raw %}
20542054# preprocessor variable definitions
20552055set {{ null
2056- set {{LOOKUP_START}} null
20572056set {{REGISTERS}} null
20582057set {{CSRS}} null
20592058set {{INCR}} null
You can’t perform that action at this time.
0 commit comments