flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > Misaligned Unicode strings passed as procedure args.

Author
Thread Post new topic Reply to topic
MHajduk



Joined: 30 Mar 2006
Posts: 6115
Location: Poland
MHajduk 19 Sep 2008, 11:09
Using quoted Unicode strings as a procedure parameters, however very convenient, may cause strange problems when program is executed in 64-bit environment. Some strings are displayed badly or aren't displayed at all. This problem with macros in the 'win32wx.inc' header file was eported for the first time in this thread http://board.flatassembler.net/topic.php?t=9103.

bitRAKE and revolution presented some very simple corrections which (if made in the 'win32wx.inc' macros) will fix this bug:

Code:
; bitRAKE's proposition
;
if (1 and $)=0     ; force aligned
     nop     ; wide character
end if              ; string
call ..continue
du value,0
..continue:
    
Code:
; revolution's proposition
;
times (1 and ($+1)) nop
call ..continue
du value,0
..continue:
    
Post 19 Sep 2008, 11:09
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.