Skip to content
Low-level programming · Higher-level thinking
Login Register
Forum / Plugins

PlugIn Example in C

A community discussion post from the original code:zIRON forum.

Replies

Colin admin
Posts
928
Threads
49
Location
Bulgaria

yes seems i had, but only for new topics, correct and now for all posts.

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

ok, nice, what about the error of the code?

http://www.freewebs.com/ogremagic/index.htm

Colin admin
Posts
928
Threads
49
Location
Bulgaria

it was showing the correct line (it was a bug with assembler, i've just re-uploaded the beta now.

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

ok works well.

BTW the ziron still print that

Ziron Compiler 1.1.27.6 

and changelog say that

Ziron Compiler 1.1.28.1 

http://www.freewebs.com/ogremagic/index.htm

Colin admin
Posts
928
Threads
49
Location
Bulgaria

because it is only beta, i dont update version until offical release (or sometimes i do if i can be bothered :p)

maybe i will update for next beta.

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

i have another error

PlugSys: qword Wvar = 10; [1,16]: Error 457673232 in [plugin buffer] Code: qword Wvar = 10;

the code is so big if you need it i will post it.

http://www.freewebs.com/ogremagic/index.htm

Colin admin
Posts
928
Threads
49
Location
Bulgaria

this one is a bit strange, because ziron does not support 64bit yet, the question is do we want the equiv of moving a 64bit number to the qword, or do you want to move only to the first dword of the qword.

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

the strange thing is that , Wvar was declared with word type and Qvar was declared with

qword , Ziron mix them

here is the test code

program WIN32CUI 'Masm Syntax test';

#include 'console.zir';


.DATA 
{

var      DB 0x0f  ; Declare a byte, referred to as location var, containing the value 0x0f.
vv       Db 1      
ar1      DB ?  
ar2      DB 0 

ml       db 0 , 0 , 0 , 1

bytes    DB 10 DUP(0)   ; Declare 10 uninitialized bytes starting at location bytes.

str1     DB 'hello',0

Wvar     dw 10

Dvar     dd 20

Qvar     dq 30

}

wait_key(nil);
ExitProcess(0);

http://www.freewebs.com/ogremagic/index.htm