Ascii Constant in Unicode mode?

Just starting out? Need help? Post your questions and find answers here.
Wolfram
Enthusiast
Enthusiast
Posts: 567
Joined: Thu May 30, 2013 4:39 pm

Ascii Constant in Unicode mode?

Post by Wolfram »

Hello,

is there a way to define a ASCII constant in Unicode mode?
#myConstant = ‘ABCD‘
value.l = myConstant
This example will not work in unicode because the constant is now 8byte long.
macOS Catalina 10.15.7
User avatar
Mijikai
Addict
Addict
Posts: 1360
Joined: Sun Sep 11, 2016 2:17 pm

Re: Ascii Constant in Unicode mode?

Post by Mijikai »

U could do something like this:

Code: Select all

Global *const_ABCD.Long = ?dummy

Debug *const_ABCD\l

DataSection
  dummy:
  !db 'ABCD'
EndDataSection
Post Reply