![]() |
||
| Home | SwiftForth Archive | SwiftX Archive | |

This is driving me nuts, so hopefully the gurus can help. I'm working
on a registration system for my product. One of the checks is that in
the program there is:
CREATE foo 0 ,
Now, later on in the code is a check function:
: is-registered ( -- flag ) foo @ 0<> ;
Of course it is more complicated than this, but you get the idea. Now,
on my web server, I directly edit the final EXE file and replace the 0
with a different value that is specific to the end-user. I'm finding
the location to put it with a hex editor, searching on "foo" and
moving 12 bytes downstream of the name (where there is 4 00 bytes).
However, when executed foo @ still returns 0. I assume that I'm just
writing the constant into the wrong memory location, but what worries
me is that perhaps SF is doing something I'm not expecting and that I
can't do what I want.
Thanks for any suggestions.
-- Best regards, Jeff mailto:jma_at_mfire.com ---------------------------------------------------------------------- sftalk_at_forth.com The SwiftForth programming discussion email list To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com For list command help, send subject "help" to sftalk-request_at_forth.com Message archives are located at http://www.forth.com/archive/sftalk ---------------------------------------------------------------------- This list is a forum for SwiftForth users. For product support and bug reports, please send email to support_at_forth.com ----------------------------------------------------------------------Received on Thu Dec 11 2003 - 19:52:40 PST
This archive was generated by hypermail 2.2.0 : Tue Dec 02 2008 - 03:04:34 PST