News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Problem with assembling, im totally stuck!

Started by Morglum, July 01, 2006, 03:18:14 PM

Previous topic - Next topic

Morglum

Hi,

First off i hope this is the right forum, sorry if its not. Im pretty new to MASM32 (using v9.0),ive been playing around with it for a while now an im able to make up simple little programs.

At this moment im just working on a little program that patches a .txt file, just replacing some text in there and it works perfectly fine untill i try to patch bytes with a new value that seems to start with A to F (hex). If however it starts 0 the 9, then it compiles fine without error. So for example if i want to patch in 3F or 6D then it compiles fine.

If i want to patch in D5 or FF, then i get  errors  :(

The errors are "error A2006: undefined symbol : D5h" and "error A2006: undefined symbol : FFh"

How am I suppose to fix it?

Sorry if i havent explained my issue to good, i will try and clear up anything if needed.

Thanks in advance guys and gals.

Ossa

Hi there (and welcome),

all numerical constants must start with a number... just add a "0" to the start: 0DEh. If you don't, MASM thinks that they are variable, etc names.

Hope that helps,
Ossa
Website (very old): ossa.the-wot.co.uk

Morglum

Ossa, you are a star!!!  :U

Adding a leading 0 to it fixed it, thankyou so much for such a fast and helpful reply  :bg

I guess this was a real beginners mistake but we all start somewhere  :P