Array initializing in MASM

From: Josi (no_at_email.com)
Date: 05/29/04


Date: Sat, 29 May 2004 02:58:04 +0000 (UTC)

I'm learning assembler and trying to port a searching algorythm from BASM
(Delphi inline assembler) to MASM, to compile a DLL, but I got stuck at
the beginning.
I can compile a DLL an call the routine, but I cannot initialize an array
big enough in the .data section.
I need to define a 256 elements array to allow upper/lower case
conversions but when I try to define it in .data I cant initialize
enought elements

The longest line that I was able to compile was:

ToLowerChars db
00h,01h,02h,03h,04h,05h,06h,07h,08h,09h,0Ah,0Bh,0Ch,0Dh,0Eh,0Fh,10h,11h,1
2h,13h,14h,15h,16h,17h,18h,19h,1Ah,1Bh,1Ch,1Dh,1Eh,1Fh,20h,21h,22h,23h,24
h,25h,26h,27h,28h,29h

So I guess it should be another way to do the same thing (initializaing a
256 byte array).

Thanks in advance for any help..
Josi



Relevant Pages

  • Re: VBA and VSTO
    ... If you compile in VB6 with Global MultiUse than all you have to do is set a reference in Excel to your dll via Tools, References and you can access your functions in the dll directly. ... You will have to register the dll as well with Windows with Regsvr32, but that can be done quite simply in VBA. ...
    (microsoft.public.excel.programming)
  • Re: Copying an array slice (Was: Re: Difficulties with passing multi-dimensional arrays)
    ... > the pointer to array of unknown size. ... but it still compiles without a cast. ... unknown at compile time so nothing can be checked. ...
    (comp.lang.c)
  • Re: HOW CAN I OPEN A COM PROJECT COMPILED IN VS2005, IN VS2003?
    ... I keep getting the .exe output when I compile in the VC7. ... the General Configuration Type to be .dll in the Project Property. ... Microsoft MVP, MCSD ... instead create my own folders for file grouping... ...
    (microsoft.public.win32.programmer.ole)
  • Re: Use of getchar
    ... "Cam" wrote in message ... I do this by calling a KeyboardInput() function ... > key2 array as if the user had entered them. ... compileable code, i.e., compile it yourself and then copy and paste it ...
    (comp.lang.cpp)
  • Re: Polymorphism in C (very basic)
    ... GPS data comes in once per second. ... There are about 60 measurements in total. ... >> allocated at compile time. ... The index to the array provides a very fast ...
    (comp.lang.c)