Author | Message |
0CodErr Ziron Guru (send private message) Posts: 199 Topics: 37 Location: | [1449] MemUtils - posted: 2015-01-13 19:28:58 In memutils.zir i found memfill routine which use only "rep stosb". It no so fast. And i try write myself memfill. I do the same way as in strutils.zir: function strFill(char* buf; dword dwlen; char _ch) Code:
But when i get result executable in it was: Code:
As far as i understand [ebp + 08h] -- buf [ebp + 0ch] -- len but len should be dword then 0ch + 04h = 10h why we get Code:
hmm.. and also Code:
As i think before call byte converted to dword. For example: Code:
|
Admin Site Admin (send private message) Posts: 933 Topics: 55 Location: OverHertz Studio | [1451] - posted: 2015-01-13 20:33:30 Seems this is an alignment problem which since rewriting from Ziron 1 to Ziron 2 i have not fixed ... I will add this to my checklist and have it fixed for next release. Thanks for bringing this to my attention. EDIT: This is fixed for next release. Download Ziron Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message. |
0CodErr Ziron Guru (send private message) Posts: 199 Topics: 37 Location: | [1458] - posted: 2015-01-14 16:28:50 Ok, i tested this routine in Ziron 2.0.0.14. I defined Code:
Seems that this not works: Code:
This code works fine: Code:
|
Admin Site Admin (send private message) Posts: 933 Topics: 55 Location: OverHertz Studio | [1460] - posted: 2015-01-14 18:41:44 This is because the print macro detects the address as a DWord/pointer. Try this: open includes/windows/win_console.zir replace print macro with the following: Code:
now the macro will allow direct variable params, so in your code: Code:
Everything should work. Download Ziron Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message. |
Admin Site Admin (send private message) Posts: 933 Topics: 55 Location: OverHertz Studio | [1461] - posted: 2015-01-14 18:50:38 OK, I have made a small adjustment to your function and will add it to the RTL memutils.zir as per your request. Code:
Download Ziron Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message. |
0CodErr Ziron Guru (send private message) Posts: 199 Topics: 37 Location: | [1462] - posted: 2015-01-15 10:14:38 Actually in the description must be Code:
|
Admin Site Admin (send private message) Posts: 933 Topics: 55 Location: OverHertz Studio | [1466] - posted: 2015-01-15 11:02:21 Fixed Download Ziron Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message. |
0CodErr Ziron Guru (send private message) Posts: 199 Topics: 37 Location: | [1474] - posted: 2015-01-17 13:05:40 Just question. Why you replaced in memFill Code:
|
Currently Active Users: There are currently 3 user(s) online. 0 member(s) and 3 guest(s) Most users ever online was 1046, January 28, 2022, 2:08 pm. Statistics: Threads: 225 | Posts: 1848 | Members: 51 | Active Members: 51 Welcome to our newest member, yecate |