Skip to content
Low-level programming · Higher-level thinking
Login Register
Forum / Requests and Feedback

get entire line

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

Replies

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

ok , but the plugin system is made to allow user extend ziron without register new token in

Ziron itself.

i mean , why you will put 'into' in the coming release , you will not expect what the user

want , so the plugin system here for that.

hope you got me.

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

Colin admin
Posts
928
Threads
49
Location
Bulgaria

no, into is an assembly opcode, all opcodes are registered, some keywords are taken, the list i need to finish is the opcodes/tokens that are that are reserved such as

into
int
push
pop
in
out

etc etc etc

as you can see

eax = Ziron_ExpectNextToken(448);

into is already registered in the ziron assembler, it just has not been added to the framework enum zirTokens, because there is all asm opcodes i need to finish adding.

e.g. opcode add is 405, which will be zirADD and xor is 551 etc....

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

ok , i see your point.

but what about my previous post #[452]

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

Colin admin
Posts
928
Threads
49
Location
Bulgaria

as for post 452, maybe that is an option, you can test the performance degrade for both and see which is faster.. ps there is a function in latest updates named strIndexOf

it takes 2 params buffer to search and string to find (in very latest i just updated has a fix to it)

will return -1 if not found else 0+ if found.

eax = strIndexOf('my long string', '$');
//eax is -1

eax = strIndexOf('my long string', 'str');
//eax is 8
Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

great, as usual.8)

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

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

BTW , where can i find it.

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

Colin admin
Posts
928
Threads
49
Location
Bulgaria

in the latest 26.6+ in strings.zir

#include 'strings.zir';

:)

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

got that error

Ziron Compiler 1.1.27.6 Copyright (C) 2011. OverHertz Ltd. All rights reserved. -------------------------------------------- 11/8/2011 9:50:51 AM -------------------------------------------- PlugSys: Emit plugin has loaded! [296,3]: Unexpected character "}". in [strings.zir] Code: } --------------------------------------------

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