Commit Graph

21 Commits

Author SHA1 Message Date
jtuu
c7f4e3eb8e Throw error if VM reaches EOF and call stack is not empty 2020-04-26 23:51:32 +03:00
jtuu
ab775f47de Fixed jmp_on 2020-04-26 23:51:31 +03:00
jtuu
d1ffb69d4d Fixed typo 2020-04-26 23:51:31 +03:00
Daan Vanden Bosch
70e6eef27c Added support for map_designate and map_designate_ex to the VM. 2020-01-02 18:54:18 +01:00
Daan Vanden Bosch
93e05ea614 - Moved instructions/opcodes and DFA code to core to avoid dependency from core to quest_editor
- When the assembly worker updates map designations, it now takes map_designate and map_designate_ex into account
2020-01-02 18:42:08 +01:00
Daan Vanden Bosch
99d50d754d Replaced js-logger. Improved testability with mocks, improved test configuration and code improvements. 2019-12-25 00:17:02 +01:00
Daan Vanden Bosch
243638879c Entity counts in area select are now updated when adding or removing entities. Added more unit tests. 2019-12-24 03:04:18 +01:00
Daan Vanden Bosch
89ed00718e Don't advance the instruction pointer after jumping unconditionally. 2019-12-22 23:28:11 +01:00
Daan Vanden Bosch
66b8e808dd Fixed bug in QuestRunner that prevented the correct episode from reaching the VM. Improved logging performance in several different components. 2019-12-22 23:15:05 +01:00
Daan Vanden Bosch
202c01bf25 Added support for p_dead_v3 opcode. 2019-12-20 21:13:59 +01:00
Daan Vanden Bosch
02332929af Fixed conditional jump instructions. Floor-local threads are now started up but not yet terminated when necessary. 2019-12-20 21:03:15 +01:00
Daan Vanden Bosch
c7cbc4a377 Stepping over sync calls works now. 2019-12-20 18:08:04 +01:00
Daan Vanden Bosch
027b50d3e4 Fixed sync calls and step out now works too. 2019-12-20 17:57:34 +01:00
Daan Vanden Bosch
663ad75435 Debugging now happens in the VM itself, this simplifies the code. 2019-12-20 16:10:50 +01:00
Daan Vanden Bosch
f8fc12c468 Fixed some bugs and added VM support for bb_map_designate. 2019-12-20 00:11:54 +01:00
Daan Vanden Bosch
aa0d398545 The floor handler for the initial area is now run when running a quest. 2019-12-19 22:14:59 +01:00
Daan Vanden Bosch
52f2ddccd2 Virtual machine now suspends instead of halts when there no threads anymore. 2019-12-19 20:45:02 +01:00
Daan Vanden Bosch
20885cb0f2 Simplified Widget.finalize_construction. Added game state to QuestRunner and modified execution flow to enable loading of area/entity models. Split QuestModelManager into two different classes so a different loading strategy can used in the quest runner view. Quest runner view is now automatically created when running a quest. 2019-12-19 18:54:01 +01:00
Daan Vanden Bosch
0585bbacec Removed VM dependency on QuestModel. 2019-12-19 14:35:13 +01:00
Daan Vanden Bosch
3714f5582a Renamed ZeroableBuffer to Memory and put it into its own file. 2019-12-19 13:58:11 +01:00
Daan Vanden Bosch
3bd3be8c4a Moved Thread to its own file and renamed vm/index.ts to vm/VirtualMachine.ts. 2019-12-18 23:40:38 +01:00