Page 1 of 1

Ascii Constant in Unicode mode?

Posted: Sun Jun 23, 2019 6:56 pm
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.

Re: Ascii Constant in Unicode mode?

Posted: Sun Jun 23, 2019 8:32 pm
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