Skip to content

Global scope

Compare
Choose a tag to compare
@vorotynsky vorotynsky released this 07 Jun 21:57
· 67 commits to master since this release
v0.3
ecaa904

Globals

Language

Added program keyword. All code should be inside program { }. It allows for creating multiple frames in the program.

Support for ip, sp, bp, si, di, cs, ds, ss, es, fs registers.

Added global variables and constants. Global variables are placed in .data, constants are in .rodata.

Added fake variables and frames. A fake variable or a label added their name into the global scope but creates nothing in assembly code.

Backend

Downgraded NASM backend to 16-bit.

Fixes

Fixed bug with variables started from do.