Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #33811

Re: VFX error?

From stephenXXX@mpeforth.com (Stephen Pelc)
Newsgroups comp.lang.forth
Subject Re: VFX error?
Organization MPE
Message-ID <5437db67.622904051@news.demon.co.uk> (permalink)
References <5b5849fc-0165-4eef-8ddb-833862c3adde@googlegroups.com>
Date 2014-10-10 13:26 +0000

Show all headers | View raw


On Thu, 9 Oct 2014 21:47:04 -0700 (PDT), jzakiya@gmail.com wrote:

>For some reason when I do this:
>
>hex
>
>create xxx 11 c, 34 c, FE c, .... CD c, ....
>
>the compiler throws an error. To get around it I can do this:
>
>create xxx 11 c, 34 c, FE c, .... 0CD c, ....

The dictionary is searched before any number conversion is attempted.

There's a utility word CD ( -- ), e.g.
  CD \Users\Stephen
which is found and executed. It should be called CWD (Change
Working Directory) but it's been in our systems since long before
ANS or Forth-2012. House practice at MPE is not to use the base
switches but to use the base prefices and to start the number with a
leading 0.

  create xxx  ( -- addr ) $011 c, $034 c, $0FE c, ... $0CD c, ...

There are occasional conflicts with string words - there's even a
$CD in VFX Forth. Starting non-decimal numbers with a leading zero
keeps you out of trouble in nearly all cases.

Stephen

-- 
Stephen Pelc, stephenXXX@mpeforth.com
MicroProcessor Engineering Ltd - More Real, Less Time
133 Hill Lane, Southampton SO15 5AF, England
tel: +44 (0)23 8063 1441, fax: +44 (0)23 8033 9691
web: http://www.mpeforth.com - free VFX Forth downloads

Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

VFX error? jzakiya@gmail.com - 2014-10-09 21:47 -0700
  Re: VFX error? Michael Barry <barrym95838@yahoo.com> - 2014-10-09 22:08 -0700
  Re: VFX error? Bruno Gauthier <bgauthier@free.fr> - 2014-10-10 07:17 +0200
  Re: VFX error? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2014-10-10 07:33 +0000
    Re: VFX error? albert@spenarnc.xs4all.nl (Albert van der Horst) - 2014-10-10 10:10 +0000
      Re: VFX error? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2014-10-10 10:39 +0000
    Re: VFX error? "Rod Pemberton" <buzzoff@nonamewhichexists.cmm> - 2014-10-17 22:04 -0400
  Re: VFX error? Andrew Haley <andrew29@littlepinkcloud.invalid> - 2014-10-10 03:06 -0500
  Re: VFX error? francois.ganza@wanadoo.fr - 2014-10-10 01:47 -0700
    Re: VFX error? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2014-10-10 10:36 +0000
    Re: VFX error? stephenXXX@mpeforth.com (Stephen Pelc) - 2014-10-10 13:34 +0000
      Re: VFX error? albert@spenarnc.xs4all.nl (Albert van der Horst) - 2014-10-10 15:09 +0000
  Re: VFX error? stephenXXX@mpeforth.com (Stephen Pelc) - 2014-10-10 13:26 +0000
    Re: VFX error? jzakiya@gmail.com - 2014-10-10 12:41 -0700
    Re: VFX error? "Rod Pemberton" <buzzoff@nonamewhichexists.cmm> - 2014-10-17 22:09 -0400
    Re: VFX error? Just Ian <superian@gmail.com> - 2014-10-22 08:25 -0700
      Re: VFX error? Coos Haak <chforth@hccnet.nl> - 2014-10-22 21:14 +0200
      Re: VFX error? albert@spenarnc.xs4all.nl (Albert van der Horst) - 2014-10-22 20:40 +0000
      Re: VFX error? hughaguilar96@yahoo.com - 2014-10-22 20:14 -0700
  Re: VFX error? francois.ganza@wanadoo.fr - 2014-10-11 15:31 -0700
  Re: VFX error? Julian Fondren <julian.fondren@gmail.com> - 2014-10-11 21:04 -0700

csiph-web