-2

I'm trying to define a byte variable in emu8086 with the initial value of F0H and I receive the following error:

Code:

X DB F0H

Error:

(1) zero prefix must be added to a HEX value, for example: 0Ch

what is this error for?

samix73
  • 2,802
  • 4
  • 17
  • 29
  • 2
    It literally tells you what to do ... `X DB 0F0h`. That's so that in can be differentiated from a symbol which start with letters. – Jester Dec 23 '15 at 17:35

2 Answers2

1

we need to add 0 before the value of an variable or we say we attach 0 before value of an variable otherwise it gives an error

Define like this

x db 0f0h
vatsal mangukiya
  • 261
  • 2
  • 14
0

It's because the HEX value can be differentiated from a symbols that start with letters.

samix73
  • 2,802
  • 4
  • 17
  • 29