mirror of
https://github.com/irmen/prog8.git
synced 2025-01-12 19:29:50 +00:00
slight optimization for creating the asmpatterns list
This commit is contained in:
parent
c6fdd65c63
commit
173663380b
@ -536,7 +536,7 @@ class AsmGen(private val options: CompilationOptions, private val program: Inter
|
||||
}
|
||||
|
||||
// add any matching patterns from the big list
|
||||
for(pattern in patterns) {
|
||||
for(pattern in Patterns.patterns) {
|
||||
if(pattern.sequence.size > segment.size || (pattern.altSequence!=null && pattern.altSequence.size > segment.size))
|
||||
continue // don't accept patterns that don't fit
|
||||
val opcodesList = opcodes.subList(0, pattern.sequence.size)
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user