Re: A83: Re: 'cp F5h' != 'cp 245'


[Prev][Next][Index][Thread]

Re: A83: Re: 'cp F5h' != 'cp 245'






--- James Vernon <jimbob_v@hotmail.com> wrote:
> 
> >Try 'cp 0F5h'
> >
> >----- Original Message -----
> >
> > > With TASM, 'cp F5h' gives an error message,
> while 'cp 245' works? Does 
> >this
> > > also happen with other compilers/versions/.... ?
> Odd.
> >
> >---
> >Clem Vasseur <darkclem@wanadoo.fr>
> >Icarus Productions <http://icarus.ticalc.org>
> 
>   Yes, 'cp 0F5h' will work - for some reason when
> you use "h" to identify a 
> value as hex the compiler asks for a "0" before the
> value... 'cp $F5' would 
> work as well.
> 
> James Vernon
> jimbob_v@hotmail.com
> 

  Actually that is partially correct, it only wants a
'0' before the hexidecimal value (when using a 'h' at
the tail to denote hex) if it begins with a letter
(A-F), just as labels can't begin with a number.

Jimmy Conner

=====
»»»»»»»»»»»»»»»«««««««««««««««
»      TIMagic@goatse.cx     «
»  http://www.zed80asm.org   «
» http://www.timagic.cjb.net «
»»»»»»»»»»»»»»»«««««««««««««««
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com