Skip to content

Commit 9ee4ebc

Browse files
committed
Generating machine instructions from an unresolved data structure so that jumps can visit labels further down instead of only looping.
1 parent 775290a commit 9ee4ebc

File tree

4 files changed

+487
-279
lines changed

4 files changed

+487
-279
lines changed

Source/DFPSR/History.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ Changes from version 0.3.0
9696
If you see that the compiler can't find a constructor for StorableCallback and it points to a variable declaration, you need to initialize it with a function.
9797
string_assignMessageHandler now uses function pointers to avoid cyclic dependencies between stringAPI.h and StorableCallback.h.
9898
A message handler needs to be stored but will usually only work with global and thread-local variables.
99-
* The "machine_" prefix was replaced with "mediaMachine_".
100-
Because there will likely be more instances of VirtualMachine with their own APIs, so it is best to rename it before there are compilers generating the undocumented assembler language.
101-
In case that you decided to learn an undocumented assembler language for the media machine before the script compiler is ready, simply replace "machine_" with "mediaMachine_" and the code should work as before.
99+
* VirtualMachine was refactored to make it reusable for more types of virtual machines and allow jumping to labels:
100+
* The "machine_" prefix was replaced with "mediaMachine_".
101+
Because there will likely be more instances of VirtualMachine with their own APIs, so it is best to rename it before there are compilers generating the undocumented assembler language.
102+
In case that you decided to learn an undocumented assembler language for the media machine before the script compiler is ready, simply replace "machine_" with "mediaMachine_" and the code should work as before.
103+
* LOAD was renamed into MOVE to avoid confusion, because load can also mean loading memory from a pointer.

0 commit comments

Comments
 (0)