It is currently Sun Dec 08, 2019 9:26 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Ascii Constant in Unicode mode?
PostPosted: Sun Jun 23, 2019 6:56 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu May 30, 2013 4:39 pm
Posts: 472
Hello,

is there a way to define a ASCII constant in Unicode mode?
Quote:
#myConstant = ‘ABCD‘
value.l = myConstant


This example will not work in unicode because the constant is now 8byte long.


Top
 Profile  
Reply with quote  
 Post subject: Re: Ascii Constant in Unicode mode?
PostPosted: Sun Jun 23, 2019 8:32 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Sep 11, 2016 2:17 pm
Posts: 572
U could do something like this:
Code:
Global *const_ABCD.Long = ?dummy

Debug *const_ABCD\l

DataSection
  dummy:
  !db 'ABCD'
EndDataSection


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: nsstudios and 11 guests


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

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye