EuroAssembler Index Manual Download Source Macros


Sitemap Links Forum Tests Projects

Test t2480: Pseudoinstruction D, initialized integer and string data


Tested procedures
PseudoData   PseudoD   PseudoDB   PseudoDU   PseudoDW   PseudoDD   PseudoDQ  
Source & expected listing t2480.htm.lst
| | EUROASM LIST=ON,DUMP=ON,DUMPWIDTH=32,DUMPALL=YES,AUTOALIGN=OFF | |t2480 PROGRAM FORMAT=BIN,LISTMAP=OFF,LISTGLOBALS=OFF |[DATA] ::::Section changed. |0000:010203 | D B 1, 2,, ,3,, ; 8bit integers. Empty operands are ignored. |0003:FCFFFFFFFFFFFFFF | D Q -4 ; 64bit integer. |000B:FCFFFFFFFFFFFFFF | DQ -4 ; Alternative notations. |0013:FCFFFFFFFFFFFFFF | DQ Q(-4) |001B:FCFFFFFFFFFFFFFF | DQ Q-4 |0023:6162636465666768 | D B"a","bc","defgh" ; Byte strings/character constants. |002B:04050637 | D B 4, B+5, B(6), B"7" ; Byte definitions, various notation. |002F:0708090A000B | D B 7, 8, 9, W 10, 11 ; Mixed types, default is BYTE. |0035:0C000D000E000000 | D W 12,13,D 14 ; Mixed types, default is WORD. |003D:0C0D0000000E000000 | DD B 12,13, 14 ; Mixed types, default is DWORD. |0046:1122 | D B 0x11, BYTE 0x22 ; Short and long typename are equivalent. |0048:33003300 | D 2*W 0x33 ; Duplication. |004C: | D 0*W 0x44 ; Zero duplication only specifies the type and autoalignment. | | EUROASM UNICODE=NO |004C:6162630D0A | DB "abc",13,10 ; String of bytes. |0051:616263000D0000000A000000 | DD "abc",13,10 ; Character constant in DWORD. |005D:6100620063000D000A00 | DU "abc",13,10 ; String of unichars. |0067:6162630D0A | D "abc",13,10 ; Autoselected string of bytes. | | EUROASM UNICODE=YES |006C:6162630D0A | DB "abc",13,10 ; String of bytes. |0071:616263000D0000000A000000 | DD "abc",13,10 ; Character constant in DWORD. |007D:6100620063000D000A00 | DU "abc",13,10 ; String of unichars. |0087:6100620063000D000A00 | D "abc",13,10 ; Autoselected string of unichars. | |ENDPROGRAM t2480
Expected messages t2480.out
I0180 Assembling source file "t2480.htm". I0270 Assembling source "t2480". I0310 Assembling source pass 1. I0330 Assembling source pass 2 - final. I0470 Assembling program "t2480". "t2480.htm"{67} I0510 Assembling program pass 1. "t2480.htm"{67} I0530 Assembling program pass 2 - final. "t2480.htm"{67} I0660 16bit TINY BIN file "t2480.bin" created, size=145. "t2480.htm"{92} I0650 Program "t2480" assembled in 2 passes with errorlevel 0. "t2480.htm"{92} I0750 Source "t2480" (124 lines) assembled in 2 passes with errorlevel 0. I0860 Listing file "t2480.htm.lst" created, size=2148. I0990 EuroAssembler terminated with errorlevel 0.
Expected output file t2480. bin
0000: 01 02 03 FC FF FF FF FF FF FF FF FC FF FF FF FF  ···¤¤¤¤¤¤¤¤¤¤¤¤¤
0010: FF FF FF FC FF FF FF FF FF FF FF FC FF FF FF FF  ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
0020: FF FF FF 61 62 63 64 65 66 67 68 04 05 06 37 07  ¤¤¤abcdefgh···7·
0030: 08 09 0A 00 0B 0C 00 0D 00 0E 00 00 00 0C 0D 00  ··¬°··°·°·°°°··°
0040: 00 00 0E 00 00 00 11 22 33 00 33 00 61 62 63 0D  °°·°°°·"3°3°abc·
0050: 0A 61 62 63 00 0D 00 00 00 0A 00 00 00 61 00 62  ¬abc°·°°°¬°°°a°b
0060: 00 63 00 0D 00 0A 00 61 62 63 0D 0A 61 62 63 0D  °c°·°¬°abc·¬abc·
0070: 0A 61 62 63 00 0D 00 00 00 0A 00 00 00 61 00 62  ¬abc°·°°°¬°°°a°b
0080: 00 63 00 0D 00 0A 00 61 00 62 00 63 00 0D 00 0A  °c°·°¬°a°b°c°·°¬
0090: 00                                               °

▲Back to the top▲