[Build]
[General]
l0:
PushVar             0
PushByte            1
Evaluate            Equal
IfNotGoto           l10
Execute             Explode 
PushByte            4
Execute             Delay 
AddSP               1
Execute             Destroy 
l10:
Execute             GetState 
PushOp              0
PushByte            0
Evaluate            CompareLess
IfNotGoto           l56
PushByte            5
Execute             Delay 
AddSP               1
PushByte            255
Execute             SetState 
AddSP               1
PushByte            3
Execute             Delay 
AddSP               1
PushByte            0
Execute             SetState 
AddSP               1
PushByte            2
Execute             Delay 
AddSP               1
PushByte            255
Execute             SetState 
AddSP               1
PushByte            1
Execute             Delay 
AddSP               1
PushByte            0
Execute             SetState 
AddSP               1
PushByte            1
Execute             Delay 
AddSP               1
PushByte            255
Execute             SetState 
AddSP               1
PushByte            1
Execute             Delay 
AddSP               1
PushByte            0
Execute             SetState 
AddSP               1
PushByte            254
Execute             SetState 
AddSP               1
Goto                l60
l56:
Execute             GetState 
PushOp              0
Execute             SetState 
AddSP               1
l60:
Pop                  (Return)
l61:
PushByte            1
IfNotGoto           l99
Execute             Unknown0A81 
Execute             GetState 
PushOp              0
PushByte            2
Evaluate            NotEqual
IfNotGoto           l80
PushVar             4
IfNotGoto           l79
PushVar             4
Execute             Unknown11B9 
AddSP               1
PushByte            0
PopReg              4
l79:
Goto                l95
l80:
Execute             Unknown0C5A 
PushOp              0
Negate              0
IfNotGoto           l95
PushVar             4
PushByte            0
Evaluate            Equal
IfNotGoto           l95
PushByte            0
Execute             FindUnitByType 
AddSP               1
PushOp              0
PopReg              4
l95:
PushByte            12
Execute             Delay 
AddSP               1
Goto                l61
l99:
Pop                  (Return)

[Concrete]
l100:
PushByte            1
IfNotGoto           l108
PushWord            120
Execute             Delay 
AddSP               1
Goto                l100
l108:
Pop                  (Return)

[Concrete4]
l109:
PushByte            1
IfNotGoto           l117
PushWord            120
Execute             Delay 
AddSP               1
Goto                l109
l117:
Pop                  (Return)

[Palace]
PushWord            600
PushOp              1
Goto                l0
AddSP               1
Execute             RemoveFogAroundTile 
l124:
PushByte            1
IfNotGoto           l132
PushWord            120
Execute             Delay 
AddSP               1
Goto                l124
l132:
Pop                  (Return)

[LightFactory]
PushWord            600
PushOp              1
Goto                l0
AddSP               1
Execute             RemoveFogAroundTile 
PushOp              1
Goto                l61
Pop                  (Return)

[HeavyFactory]
PushWord            600
PushOp              1
Goto                l0
AddSP               1
Execute             RemoveFogAroundTile 
PushOp              1
Goto                l61
Pop                  (Return)

[Hi-Tech]
PushWord            600
PushOp              1
Goto                l0
AddSP               1
Execute             RemoveFogAroundTile 
PushOp              1
Goto                l61
Pop                  (Return)

[Windtrap]
PushWord            600
PushOp              1
Goto                l0
AddSP               1
Execute             RemoveFogAroundTile 
l166:
PushByte            1
IfNotGoto           l174
PushWord            120
Execute             Delay 
AddSP               1
Goto                l166
l174:
Pop                  (Return)

[Barracks]
PushWord            600
PushOp              1
Goto                l0
AddSP               1
Execute             RemoveFogAroundTile 
PushOp              1
Goto                l61
l183:
PushByte            1
IfNotGoto           l191
PushWord            120
Execute             Delay 
AddSP               1
Goto                l183
l191:
Pop                  (Return)

[IX]
[WOR]
PushWord            600
PushOp              1
Goto                l0
AddSP               1
Execute             RemoveFogAroundTile 
PushOp              1
Goto                l61
l200:
PushByte            1
IfNotGoto           l208
PushWord            120
Execute             Delay 
AddSP               1
Goto                l200
l208:
Pop                  (Return)
PushWord            600
PushOp              1
Goto                l0
AddSP               1
Execute             RemoveFogAroundTile 
l215:
PushByte            1
IfNotGoto           l223
PushWord            120
Execute             Delay 
AddSP               1
Goto                l215
l223:
Pop                  (Return)

[ConstructionYard]
PushWord            600
PushOp              1
Goto                l0
AddSP               1
Execute             RemoveFogAroundTile 
l230:
PushByte            1
IfNotGoto           l239
PushByte            12
PushByte            12
Evaluate            Multiply
Execute             Delay 
AddSP               1
Goto                l230
l239:
Pop                  (Return)

[Starport]
PushWord            600
PushOp              1
Goto                l0
AddSP               1
Execute             RemoveFogAroundTile 
l246:
PushByte            1
IfNotGoto           l290
Execute             Unknown0A81 
Execute             GetState 
PushOp              0
PushByte            0
Evaluate            Equal
IfNotGoto           l265
PushVar             4
IfNotGoto           l264
PushVar             4
Execute             Unknown11B9 
AddSP               1
PushByte            0
PopReg              4
l264:
Goto                l286
l265:
Execute             GetState 
PushOp              0
PushByte            2
Evaluate            Equal
IfNotGoto           l286
Execute             Unknown0C5A 
PushOp              0
Negate              0
IfNotGoto           l286
PushVar             4
PushByte            0
Evaluate            Equal
IfNotGoto           l286
PushByte            0
Execute             FindUnitByType 
AddSP               1
PushOp              0
PopReg              4
l286:
PushByte            24
Execute             Delay 
AddSP               1
Goto                l246
l290:
Pop                  (Return)

[Refinery]
PushWord            600
PushOp              1
Goto                l0
AddSP               1
Execute             RemoveFogAroundTile 
l297:
PushByte            1
IfNotGoto           l330
Execute             GetState 
PushOp              0
PushByte            2
Evaluate            Equal
IfNotGoto           l326
l306:
Execute             RefineSpice 
PushOp              0
IfNotGoto           l311
Goto                l306
l311:
Execute             Unknown0A81 
PushVar             4
Negate              0
IfNotGoto           l326
PushByte            0
Execute             FindUnitByType 
AddSP               1
PushOp              0
PopReg              4
PushVar             4
Negate              0
IfNotGoto           l326
Execute             Unknown0C5A 
l326:
PushByte            12
Execute             Delay 
AddSP               1
Goto                l297
l330:
Pop                  (Return)

[Repair]
PushWord            600
PushOp              1
Goto                l0
AddSP               1
Execute             RemoveFogAroundTile 
l337:
PushByte            1
IfNotGoto           l366
Execute             Unknown0A81 
Execute             GetState 
PushOp              0
PushByte            2
Evaluate            Equal
IfNotGoto           l362
Execute             Unknown0C5A 
PushOp              0
Negate              0
IfNotGoto           l362
PushVar             4
PushByte            0
Evaluate            Equal
IfNotGoto           l362
PushByte            0
Execute             FindUnitByType 
AddSP               1
PushOp              0
PopReg              4
l362:
PushByte            12
Execute             Delay 
AddSP               1
Goto                l337
l366:
Pop                  (Return)

[Wall]
PushWord            600
PushOp              1
Goto                l0
AddSP               1
Execute             RemoveFogAroundTile 
l373:
PushByte            1
IfNotGoto           l381
PushWord            120
Execute             Delay 
AddSP               1
Goto                l373
l381:
Pop                  (Return)

[Turret]
PushWord            600
PushOp              1
Goto                l0
AddSP               1
Execute             RemoveFogAroundTile 
l388:
PushByte            1
IfNotGoto           l426
PushWord            1280
Execute             FindTargetUnit 
AddSP               1
PushOp              0
PopReg              2
PushVar             2
IfNotGoto           l422
l400:
PushVar             2
PushVar             2
Execute             RotateTurret 
AddSP               1
PushOp              0
Evaluate            IfAnd
IfNotGoto           l412
PushByte            12
Execute             Delay 
AddSP               1
Goto                l400
l412:
PushVar             2
IfNotGoto           l421
PushVar             2
Execute             Fire 
AddSP               1
PushOp              0
Execute             Delay 
AddSP               1
l421:
Goto                l425
l422:
PushByte            24
Execute             Delay 
AddSP               1
l425:
Goto                l388
l426:
Pop                  (Return)

[R-Turret]
PushWord            300
PushOp              1
Goto                l0
AddSP               1
Execute             RemoveFogAroundTile 
l433:
PushByte            1
IfNotGoto           l471
PushWord            2048
Execute             FindTargetUnit 
AddSP               1
PushOp              0
PopReg              2
PushVar             2
IfNotGoto           l467
l445:
PushVar             2
PushVar             2
Execute             RotateTurret 
AddSP               1
PushOp              0
Evaluate            IfAnd
IfNotGoto           l457
PushByte            12
Execute             Delay 
AddSP               1
Goto                l445
l457:
PushVar             2
IfNotGoto           l466
PushVar             2
Execute             Fire 
AddSP               1
PushOp              0
Execute             Delay 
AddSP               1
l466:
Goto                l470
l467:
PushByte            6
Execute             Delay 
AddSP               1
l470:
Goto                l433
l471:
Pop                  (Return)

[SpiceSilo]
PushWord            600
PushOp              1
Goto                l0
AddSP               1
Execute             RemoveFogAroundTile 
l478:
PushByte            1
IfNotGoto           l486
PushWord            120
Execute             Delay 
AddSP               1
Goto                l478
l486:
Pop                  (Return)

[Outpost]
PushWord            600
PushOp              1
Goto                l0
AddSP               1
Execute             RemoveFogAroundTile 
l493:
PushByte            1
IfNotGoto           l501
PushWord            120
Execute             Delay 
AddSP               1
Goto                l493
l501:
Pop                  (Return)
