Menu

incbin

2009-10-06
2013-04-20
  • Hjort Nidudsson

    Hjort Nidudsson - 2009-10-06

    incbin.asm:

        _DATA SEGMENT
        DOSBMP00 LABEL WORD
        incbin <IDD/DOSBMP00.IDD>
        DOSBMP01 LABEL WORD
        incbin <IDD/DOSBMP01.IDD>
        …
        IDD DW OFFSET DOSBMP00
         DW OFFSET DOSBMP01
        …
        _DATA ENDS

    incbin.lst:

        000060A5 DOSBMP20 LABEL WORD
         incbin <IDD/DOSBMP20.IDD>
        0000654B DOSBMP21 LABEL WORD
         incbin <IDD/DOSBMP21.IDD>
        00000000 0000 IDD DW OFFSET DOSBMP00
        00000002 8604  DW OFFSET DOSBMP01
        …

    Only IDD is compiled.

    incbin.asm(2):

        _DATA SEGMENT
        IDD DW OFFSET DOSBMP00
        …
        _DATA ENDS
       
        _DATA SEGMENT
        DOSBMP00 LABEL WORD
        incbin <IDD/DOSBMP00.IDD>
        …
        _DATA ENDS

    incbin.lst:

        00000028 7765 DW OFFSET DOSBMP21
        0000002A 0000 DW 0000h
        0000002C DOSBMP00 LABEL WORD
        incbin <IDD/DOSBMP00.IDD>
        000004B2 DOSBMP01 LABEL WORD
        …

    Everything is Ok.

     
  • Nobody/Anonymous

    This is a bug. Now fixed in latest v2.0rc

    japheth

     
  • Nobody/Anonymous

            IFDEF LDATA
             FMOV EQU mov
             NMOV MACRO des,src
             ENDM
            ELSE
             FMOV MACRO des,src
             ENDM
             NMOV EQU mov
            ENDIF
       
               
        label_00: FMOV ES:,AL
         NMOV ,AL
         jmp label_00

    error A2121 Symbol not defined: label_00

    This works:

        label_00:
         FMOV ES:,AL
         NMOV ,AL
         jmp label_00

        label_00: NMOV ,AL
         jmp label_00

    This macro was used prior to downloading the latest release

    nidud

     
  • Nobody/Anonymous

    > error A2121 Symbol not defined: label_00

    Yes, this bug was introduced recently. It's fixed now.

    japheth

     
  • Nobody/Anonymous

    Works fine now, however, there seems to be some problem with JWASMR:

    foo.asm:

        bar DW ?
        cmp bar,0

    jwasmr foo.asm

        foo.asm(13) : Error A2056: Immediate data out of range
        foo.asm: 24 lines, 1 passes, 0 ms, 0 warnings, 1 errors

    jwasm foo.asm

        foo.asm: 0 lines, 2 passes, 0 ms, 0 warnings, 0 errors

    wasm foo.asm

        foo.asm: 28 lines, 0 warnings, 0 errors

    nidud

     
  • Nobody/Anonymous

    Works great now, thanks!
    <br>
    <br>
    Just tested JWASMR 201, compiling a 16-bit library source in BOSBox.<br>
    - a time-consuming experiment, but no problems!
    <p>Some miner issues on the christmas list:</p>

    The –zm switch produces foo.EXE
    <br>The function main.c->GetExt() could return "exe" instead of "EXE" ?

    The jwasm src\foo.asm outputs foo.asm(13) : Error ?
    <br>The output may be captured by an ide which tries to open foo.asm(13)

    <p>nidud</p>

     

Log in to post a comment.