Forum
DEFB bug - Printable Version

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



DEFB bug - britlion - 02-27-2012

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 - 02-28-2012

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