News:

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

store filename

Started by korte, October 17, 2007, 09:12:47 AM

Previous topic - Next topic

korte

i want store filename string in my program

work: %echo Break: @FileCur(@CatStr(%@Line))

not work:
   db   "&@FileCur&"
   db   "@FileCur"
   db    @FileCur





hutch--

try this.


  .data
    file1 db "myfile.ext",0
    file2 db "nextfile.ext",0
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

zooba

Or this:

.const          ; or .data
% thisFile DB "&@FileCur&", 0


Cheers,

Zooba :U

korte

WORK!!!  :bg

   arg catstr <">,@FileCur,<">
   db arg


But next problem

@CodeSize allways 0


zooba

From MSDN:

Quote0 for TINY, SMALL, COMPACT, and FLAT models, and 1 for MEDIUM, LARGE, and HUGE models

I assume you are using the FLAT memory model, in which case @CodeSize should always be zero.

Cheers,

Zooba :U