September 2017
Beginner to intermediate
290 pages
6h 58m
English
We will skip the declaration of a separate structure for the processor; instead, its state will be stored on a stack. However, we do need to make some preparations. First of all, we need to make the Flat Assembler understand our mnemonics and create a proper binary output. For this purpose, we will create an additional source file and name it vm_code.asm. As it will contain declarations of macro instructions and the VM code, which will be treated as data, the inclusion of the file in the main source would be done by adding the following:
include 'vm_code.asm'
Add this line somewhere in the data section. The next step-we have to define macro instructions that can be translated into ...
Read now
Unlock full access