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 3,752 views. Print Print Thread
2 Pages « 1 2 All Recommend Thread
Guy1954
October 29, 2017, 12:10pm Report to Moderator Report to Moderator

Medium Member
Posts: 187
29 October 2017

Hi Xbliters!

Please find attached xsed_16oct17.zip, which contains the modified source xsed.x of xsed.exe,
as of 29 October 2017 Revision 1.33.

You can recompile xsed.x using your current XSED.exe, but you can't run it from within a running XSED.exe.
1. Load xsed.c in your current XSED editor;
2. F9 (compile), F10 (link);
3. You have to quit your running XSED.exe;
4. Copy (manually) 'xsed.exe' to your system folder: C:\xblite\bin\;
5. Re-load xsed.x in your new XSED.exe;
6. Select menu option Help/About XSED;
   the About Box should read: Version 1.33 and David Szafranski (c) 2005-2017.

Easier is to use CompileXsed_bat.txt, which you have to rename "CompileXsed.bat" first.

Running CompileXsed.bat:
1. Compiles xsed.x and produces compile.txt;
2. Copies 'xsed.exe' to your system folder: C:\xblite\bin\.

I tested and re-tested these 2 procedures, and it works fine for me.
Please, let me know if you experience difficulties.

Bye!
Guy



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

Logged Offline
Site Site Private Message Private message Reply: 15 - 18
Guy1954
October 29, 2017, 12:36pm Report to Moderator Report to Moderator

Medium Member
Posts: 187
Quoted from gentsky
Hi Guy,

I am building a new dll which contains a lot of assembly language so decided to use your release 16 and take advantage of your CODE, END CODE facility. It is very useful and is working well but I did spot a few minor anomalies when setting up sections. They are not serious but I have created a small test script to demonstrate them and have attached it here for your consideration.

Regards,

Alan



Hi Alan,

Sorry for getting back to you so late, but I'm not very comfortable with this forum as it is a new way for me to communicate.

I reviewed your example, and I confirm the following mishandling:
CODE                    'gives SYNTAX ERROR
     CODE SECTION          ' GL-Syntax Error(12)
mov eax, 1
END CODE

The reason is that "CODE SECTION" is not properly assembled by xblite.exe.

I have to add proper parsing in order to inject it in the generated assembly.

I have an open list of such issues, but I'm not in a hurry to address them since I'm by far an assembly specialist.

One of the issues that bothered me is GoAsm's "unnamed" labels, so practical to avoid a runaway list of ad-hoc labels.

However, I'm willing to spend some time in correcting the GoAsm parser if you provide with a good guideline for the assemby newbe that I am.

Bye! Guy
Logged Offline
Site Site Private Message Private message Reply: 16 - 18
Guy1954
October 29, 2017, 12:42pm Report to Moderator Report to Moderator

Medium Member
Posts: 187
29 October 2017

Hi Xbliters!

The new and improved Xblite standard library xst.x

Please find attached: xst_71_29oct17_src.zip (revision 71 - 18 August 2017), which contains:
1.xst.x
2.xst.dec (for the new intrinsic types)
3.makexst.mak
4.BuildXstDll_bat.txt (to be renamed BuildXstDll.bat)
5.\lib\*.asm (GoAsm support library)
6.\lib\BuildObjs_bat.txt (to be renamed BuildObjs.bat)
'
' r71-new+++
  $$ASCII               = 19          ' Ansi WinAPIs
  $$UTF8                = 20          ' UTF 8 bit encoding
  $$UTF16LE             = 21          ' Little Endian 16-bit encoding (Windows)
  $$WIDE                = 21          ' Unicode WinAPIs
  $$UTF16BE             = 22          ' Big Endian 16-bit encoding (Internet)
  $$UTF32LE             = 23          ' 32-bit Intel machines
  $$UTF32BE             = 24          ' Big Endian 32-bit encoding (Motorola, ...)
  $$UNICODE             = 25          ' True Unicode string type
' r71-new~~~
'
' r71-new+++
' r71-new+++
' Explicit Integers (imported data record)
'
$$INT8                =  2          ' == $$SBYTE : 8-bit integer
$$UINT8               =  3          ' == $$UBYTE : unsigned 8-bit integer
$$INT16LE             =  4          ' == $$SSHORT: Little Endian 16-bit integer (Windows)
$$UINT16LE            =  5          ' == $$USHORT: Little Endian unsigned 16-bit integer (Windows)
$$INT32LE             =  6          ' == $$SLONG : Little Endian 32-bit integer (Windows)
$$UINT32LE            =  7          ' == $$ULONG : Little Endian unsigned 32-bit integer (Windows)
$$INT64LE             = 12          ' == $$GIANT : Little Endian 64-bit integer (Windows)
' r71-new~~~
'
' r71-new+++
' Byte Order Marks (borrowed from Alan Gents' unc.x)
'
'
     $$BOM8$          = "\xEF\xBB\xBF"         ' UTF-8
     $$BOM16$         = "\xFF\xFE"             ' Normal   16 bit BOM - LE machine stores as FFFE - BE machine stores as FEFF
     $$INVERSE_BOM16$ = "\xFE\xFF"             ' Inverted 16 bit BOM - used to emulate BE output on LE machine
     $$BOM32$         = "\xFF\xFE\x00\x00"     ' Normal   32 bit BOM - LE machine stores as FFFE0000 - BE machine stores as 0000FEFF
     $$INVERSE_BOM32$ = "\x00\x00\xFE\xFF"     ' Inverted 32 bit BOM - used to emulate BE output on LE machine
' r71-new~~~
'
Enjoy!
Bye! Guy

(xblite 2.41.16 3 of 5)



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

Logged Offline
Site Site Private Message Private message Reply: 17 - 18
Guy1954
November 10, 2017, 4:47am Report to Moderator Report to Moderator

Medium Member
Posts: 187
10 November 2017

Hi Xbliters!

Please find attached xblite_2_41_16_10nov17_src.zip, which contains:
- BuildXbiteExe_bat.txt
- makexblite.mak
- read_me.txt
- xblite.x
- xblite_original.x
- xst.dec


Installation
============
1. Make a backup copy of all files of folder C:\xblite\bin\ to C:\xblite\bin\bak\
2. Create a folder /xblite_2_41_16/
3. Unzip xblite_2_41_16_10nov17_src.zip into the new folder /xblite_2_41_16/
   (Extracts xblite.x and the other files)
4. Rename CompileXbite.txt CompileXbite.bat
5. Use CompileXbite.bat to recompile
6. Copy xblite.exe into C:\xblite\bin\


New features
============
1. New size-dependant integer types:
   -  INT8 <=> SBYTE,  INT16LE <=> SSHORT,  INT32LE <=> SLONG, INT64LE <=> GIANT
   - UINT8 <=> UBYTE, UINT16LE <=> USHORT, UINT32LE <=> ULONG

2. New default character type: CHAR (similar to STRING)
   - CHAR <=> UBYTE, CHAR() <=> UBYTE(), CHARAT <=> UBYTEAT().
   - CHAR <=> UINT8, CHAR() <=> UINT8(), CHARAT <=> UINT8AT().

3. Assembly code injection: CODE and END CODE
   - (CODE, END CODE) for GoAsm code injection.

4. Improved IMPORT: GRAB
   - GRAB statement: sort of COBOL's COPY REPLACING ==text1== BY ==text2==:

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

Bye! Guy


(xblite 2.41.16 1 of 5)



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

Logged Offline
Site Site Private Message Private message Reply: 18 - 18
2 Pages « 1 2 All 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