Problem mit ADD ESP



  • Hallo was ist an meinem Quelltext falsch ?

    Assembling: console.asm
    console.asm(45) : error A2206: missing operator in expression

    .486                                    ; create 32 bit code
        .model flat, stdcall                    ; 32 bit memory model
        option casemap :none                    ; case sensitive
    
        include \masm32\include\windows.inc     ; always first
        include \masm32\macros\macros.asm       ; MASM support macros
    
      ; -----------------------------------------------------------------
      ; include files that have MASM format prototypes for function calls
      ; -----------------------------------------------------------------
        include \masm32\include\masm32.inc
        include \masm32\include\gdi32.inc
        include \masm32\include\user32.inc
        include \masm32\include\kernel32.inc
    
      ; ------------------------------------------------
      ; Library files that have definitions for function
      ; exports and tested reliable prebuilt code.
      ; ------------------------------------------------
        includelib \masm32\lib\masm32.lib
        includelib \masm32\lib\gdi32.lib
        includelib \masm32\lib\user32.lib
        includelib \masm32\lib\kernel32.lib
    
        .code                       ; Tell MASM where the code starts
    
    ; «««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««
    
    ExitProcess PROTO :Dword
    
    .DATA
    
    .CODE
    
    start:
    
    	add esp,-0x1c
    
    	invoke ExitProcess , 0 
    
    END start
    


  • Assembler: MASM

    Ok habs rausgefunden:

    add esp,-1Ch
    invoke ExitProcess , 0

    So gehts.


Anmelden zum Antworten