Welcome, Guest.
Please login or register.
xblite.exe revision 2.41.16
Forum Login
Login Name: Create a new account
Password:     Forgot password

XBLite Forum    General Boards    XBLite Compiler  ›  xblite.exe revision 2.41.16
Users Browsing Forum
No Members and 1 Guests

xblite.exe revision 2.41.16   This thread currently has 1,355 views. Print Print Thread
1 Pages 1 Recommend Thread
Guy1954
September 16, 2015, 12:22am Report to Moderator Report to Moderator

Medium Member
Posts: 136
Hi Xbliters,

As you know, I would like to release a pre-Unicode revision of the XBLite compiler.

Please find attached xblite_2_41_16.zip.

Installation:
- Make a backup copy of all files of folder C:\xblite\bin\ to C:\xblite\bin\bak\
- Create a folder xblite_2_41_16
- Unzip xblite_2_41_16.zip into the new folder
(Extracts xblite.x and the other files)
- Rename CompileXbite.txt CompileXbite.bat
- Use CompileXbite.bat to recompile
- Copy xblite.exe into C:\xblite\bin\

New features:
- CHAR type: in ASCII mode, CHAR <=> UBYTE, CHAR() <=> UBYTE(), CHARAT <=> UBYTEAT().
- (CODE, END CODE) for GoAsm code injection.
- GRAB statement: sort of COBOL's COPY REPLACING ==text1== BY ==text2==:

Usage of GRAB:
In WinX.x, I replaced m4_include(`accessors.m4') by GRAB "accessors\\*.x"

1.GRAB ".\\accessors\\declare.x"        ' "$1" := "BINDING"
2.GRAB ".\\accessors\\declare02.x"
' "$1" := "BINDING"
' OMIT FUNCTIONs "_ActiveId", "_Get_idMin"

The 1st GRAB imports file .\\accessors\\declare.x replacing all $1 by BINDING.
The 2nd GRAB imports file .\\accessors\\declare02.x replacing all $1 by BINDING, but not only:
it remvoves the FUNCTIONs BINDING_ActiveId and BINDING_Get_idMin, which are not needed.

I believe this will promote code reuse, and a snippet production.

Bye! Guy.



This post contains attachments; to download them you must login.

Logged Offline
Site Site Private Message Private message
Guy1954
May 2, 2016, 11:48am Report to Moderator Report to Moderator

Medium Member
Posts: 136
Dear Xbliters,

The compiler xblite version 2.41 revision 16 must be installed
in order to compile revision 17, which handles Unicode.


However, revision 16 offers new possibilities for GoAsm code
injection; as a for instance, here is how I emulated (for fun) the
standard function XstCopyMemory (sourceAddr, &dest$, bytes) in
xblite.x revision 17 (compilable with revision 16):

               ' r17-XstCopyMemory (sourceAddr, &dest$, bytes)

'#################################################################
' r17-assume a 32 bit processor
CODE
     mov     ecx,[EmitString.bytes]      ; byte count
     jecxz > .is_zero32_end              ; LEN(source$) == 0

     mov     esi,[EmitString.sourceAddr] ; source string
     mov     edi,[EmitString.dest$]      ; destination string

     shr     ecx,2
     jecxz > .is_zero32_01     ; LEN(source$) <= 3
     cld
     rep movsd                    ; 32-word shuffle

.is_zero32_01
     mov     ecx,[EmitString.bytes]
     and     ecx,3
     jecxz > .is_zero32_end
     cld
     rep movsb                    ; the very last bytes

.is_zero32_end
END CODE
'#################################################################

I believe that Coders such as bushpilot and gentski will
appreciate the convenience of this CODE statement, drawn
from my needs as an assembler Noob.

The GRAB statement was also great help in xsx.x in order to
generate "typed" quick sort routines from a single "grabbed"
snippet.

However, I would appreciate if you put it to the test as I can't
cover all the regressions, in spite of my heavy duty testing.

Happy xbliting!
Bye! Guy



This post contains attachments; to download them you must login.

Logged Offline
Site Site Private Message Private message Reply: 1 - 2
Guy1954
August 13, 2016, 2:08am Report to Moderator Report to Moderator

Medium Member
Posts: 136
Hi Xbliters,

I corrected a (rare) bug in the handling of GRABbed file paths.
Please, download the attached version of xblite.x, with the proper xst.dec that contains additional constants, such as $$ASCII, $$UTF16_LE...

Bye! Guy



This post contains attachments; to download them you must login.

Logged Offline
Site Site Private Message Private message Reply: 2 - 2
1 Pages 1 Recommend Thread
Print Print Thread

XBLite Forum    General Boards    XBLite Compiler  ›  xblite.exe revision 2.41.16

Thread Rating
There is currently no rating for this thread