Menu

Error A2198 with flag -bin

marco6
2013-03-18
2013-04-20
  • marco6

    marco6 - 2013-03-18

    Hi all,
    Can anybody tell me why if i compile a minimal program like:

    .model small
    .stack
    .data
    .code
    .startup
    mov al, 'a'
    .exit
    end
    

    with the flag -bin it prompts me with the erro A2198, and doesn't compile at all.
    BTW if I remove the '.startup' directive it compiles fine.
    What am I missing?

     
  • japheth

    japheth - 2013-03-18

    > with the flag -bin it prompts me with the erro A2198, and doesn't compile at all.

    The small memory model needs a segment fixup for DGROUP - which the binary format cannot fix.

    There are 2 possibilities:

    1. change model to ".model tiny"   
    OR
    2. use -mz instead of -bin

     

Log in to post a comment.