| Index | Manual | Download | Source | Macros | Embedded word Case ins.
Sitemap | Links | Forum | Tests | Projects

# Test t7901: Segment ordering, SMALL model

Description
  Segments with random names in SMALL model are implicitly regrouped to [DGROUP] and within the same purpose they are sorted alphabetically by name, if at least one segment has $ in its name.
Tested procedures
  PgmOrderSegments

Source & expected listing t7901.htm.lst
  `| | EUROASM LIST=ON, DUMP=ON, DUMPWIDTH=20 | |t7901 PROGRAM FORMAT=BIN,MODEL=SMALL,LISTMAP=ON, \ | | FILEALIGN=1,SECTIONALIGN=1,LISTGLOBALS=OFF |[DATA3] |[DATA3] SEGMENT ALIGN=BYTE |0000:33 | DB '3' |[DATA1] |[DATA1] SEGMENT ALIGN=BYTE |0000:31 | DB '1' |[BSS_C] |[BSS_C] SEGMENT ALIGN=BYTE |0000:.. | DB BYTE |[BSS_B] |[BSS_B] SEGMENT ALIGN=BYTE |0000:.. | DB BYTE |[BSS_E] |[BSS_E] SEGMENT ALIGN=BYTE |0000:.. | DB BYTE |[BSS_D] |[BSS_D] SEGMENT ALIGN=BYTE |0000:.. | DB BYTE |[DATA4] |[DATA4] SEGMENT ALIGN=BYTE |0000:34 | DB '4' |[DATA$V] |[DATA$V] SEGMENT ALIGN=BYTE |0000:56 | DB 'V' |[DATA2] |[DATA2] SEGMENT ALIGN=BYTE |0000:32 | DB '2' |[DATA$Y] |[DATA$Y] SEGMENT ALIGN=BYTE |0000:59 | DB 'Y' |[DATA$X] |[DATA$X] SEGMENT ALIGN=BYTE |0000:58 | DB 'X' |[DATA$Z] |[DATA$Z] SEGMENT ALIGN=BYTE |0000:5A | DB 'Z' |[DATA$W] |[DATA$W] SEGMENT ALIGN=BYTE |0000:57 | DB 'W' |[DATA$U] |[DATA$U] SEGMENT ALIGN=BYTE |0000:55 | DB 'U' | | ENDPROGRAM t7901 | **** ListMap "t7901.bin",model=SMALL,groups=1,segments=14,entry=,stack= | [DGROUP],FA=00000000h,VA=00000000h,size=0000000Eh=14,group [DATA$U] [DATA$V] [DATA$W] [DATA$X] [DATA$Y] [DATA$Z] [DATA1] [DATA2] [DATA3] [DATA4] [BSS_C] [BSS_B] [BSS_E] [BSS_D] | [DATA$U],FA=00000000h,VA=00000000h,size=00000001h=1,width=16,align=1,purpose=DATA | [DATA$V],FA=00000001h,VA=00000001h,size=00000001h=1,width=16,align=1,purpose=DATA | [DATA$W],FA=00000002h,VA=00000002h,size=00000001h=1,width=16,align=1,purpose=DATA | [DATA$X],FA=00000003h,VA=00000003h,size=00000001h=1,width=16,align=1,purpose=DATA | [DATA$Y],FA=00000004h,VA=00000004h,size=00000001h=1,width=16,align=1,purpose=DATA | [DATA$Z],FA=00000005h,VA=00000005h,size=00000001h=1,width=16,align=1,purpose=DATA | [DATA1],FA=00000006h,VA=00000006h,size=00000001h=1,width=16,align=1,purpose=DATA | [DATA2],FA=00000007h,VA=00000007h,size=00000001h=1,width=16,align=1,purpose=DATA | [DATA3],FA=00000008h,VA=00000008h,size=00000001h=1,width=16,align=1,purpose=DATA | [DATA4],FA=00000009h,VA=00000009h,size=00000001h=1,width=16,align=1,purpose=DATA | [BSS_C],FA=0000000Ah,VA=0000000Ah,size=00000001h=1,width=16,align=1,purpose=BSS | [BSS_B],FA=0000000Ah,VA=0000000Bh,size=00000001h=1,width=16,align=1,purpose=BSS | [BSS_E],FA=0000000Ah,VA=0000000Ch,size=00000001h=1,width=16,align=1,purpose=BSS | [BSS_D],FA=0000000Ah,VA=0000000Dh,size=00000001h=1,width=16,align=1,purpose=BSS`

Expected messages t7901.out
  `I0180 Assembling source file "t7901.htm". I0270 Assembling source "t7901". I0310 Assembling source pass 1. I0330 Assembling source pass 2 - final. I0470 Assembling program "t7901". "t7901.htm"{52} I0510 Assembling program pass 1. "t7901.htm"{52} I0530 Assembling program pass 2 - final. "t7901.htm"{52} I0660 16bit SMALL BIN file "t7901.bin" created, size=10. "t7901.htm"{82} I0650 Program "t7901" assembled in 2 passes with errorlevel 0. "t7901.htm"{82} I0750 Source "t7901" (121 lines) assembled in 2 passes with errorlevel 0. I0860 Listing file "t7901.htm.lst" created, size=2916. I0990 EuroAssembler terminated with errorlevel 0.`

Expected output file t7901. bin

      0000: 55 56 57 58 59 5A 31 32 33 34                    UVWXYZ1234

▲Back to the top▲