to allow plugin now when a block of data is befin and when it finished , i think the following syntax is good
program WIN32CUI 'Basic Syntax test';
#include 'console.zir';
.DATA {
var DB 64 ; Declare a byte, referred to as location var, containing the value 64.
var2 DB ? ; Declare an uninitialized byte, referred to as location var2.
DB 10 ; Declare a byte with no label, containing the value 10. Its location is var2 + 1.
X DW ? ; Declare a 2-byte uninitialized value, referred to as location X.
Y DD 30000 ; Declare a 4-byte value, referred to as location Y, initialized to 30000.
Z DD 1, 2, 3 ; Declare three 4-byte values, initialized to 1, 2, and 3. The value of location Z + 8 will be 3.
bytes DB 10 DUP(?) ; Declare 10 uninitialized bytes starting at location bytes.
arr DD 100 DUP(0) ; Declare 100 4-byte words starting at location arr, all initialized to 0
str1 DB 'hello',0 ; Declare 6 bytes starting at the address str, initialized to the ASCII character values for hello and the null (0) byte.
}
.CODE {
PUBLIC _myFunc
_myFunc PROC
; Subroutine Prologue
mov eax,5
ret
_myFunc ENDP
}
wait_key(nil);
ExitProcess(0);
It looks fine, but if you are going to change the syntax of masm, then what would be the point to changing syntax of ziron at all?
Unless it is intended to just make it easier and faster to convert masm projects to Ziron, then i think that will be a good option since it is a very little change to make :)