Boriel Basic Forum
DEFB bug - Printable Version

+- Boriel Basic Forum (https://forum.boriel.com)
+-- Forum: Compilers and Computer Languages (https://forum.boriel.com/forumdisplay.php?fid=12)
+--- Forum: ZX Basic Compiler (https://forum.boriel.com/forumdisplay.php?fid=11)
+---- Forum: Help & Support (https://forum.boriel.com/forumdisplay.php?fid=16)
+---- Thread: DEFB bug (/showthread.php?tid=438)



DEFB bug - britlion - 2012-02-27

You can enter hex as 80h or as $80.

But defb ddh doesn't seem to work. Was happy as defb $dd


Re: DEFB bug - boriel - 2012-02-28

britlion Wrote:You can enter hex as 80h or as $80.

But defb ddh doesn't seem to work. Was happy as defb $dd
This is not a bug (I think it's already been discussed somewhere over here), but a feature:
'ddh' is an identifier (a word), not a number. To state clear it's a number, prefix it with a leading 0:
Code:
defb 0ddh