12.07.2015 Views

MAXQ Core Assembly Guide - Maxim

MAXQ Core Assembly Guide - Maxim

MAXQ Core Assembly Guide - Maxim

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>MAXQ</strong> <strong>Core</strong> <strong>Assembly</strong> <strong>Guide</strong>Data Word (DW) StatementThe DW statement is similar to the DB statement, but is used to insert 16-bit words of data into the output hex fileat the current assembly location. It can be used in either the code segment or the data segment.The syntax for the DW statement takes the following form. The “DW” keyword is case-insensitive.dw constant [, constant [, constant ...]]The following two types of values may be used as DW constants, and more than one type may be mixed in a DWstatement.• Word constant values (written in decimal, hex or binary) from 0 to 65535. Negative values may not be used. Ifa value smaller than 256 is given, the high byte will be padded to 00h.• Character constant values (written as ‘’). When these are used in a DW statement, the high byte ispadded to 00h.String constant values may not be used in DW statements. Since DW statements always generate even numbersof bytes, they may be mixed freely with instruction statements.+---------------------------------------------------------------+| Dallas Semiconductor/MAXIM MaxQ Assembler, Version 2.047.0060 |+---------------------------------------------------------------+Last build Mar 2 2007 at 06:00:57Command line: -l -q -b -w dw.asmAssembling dw.asm for <strong>MAXQ</strong>20,using 16 accumulators, Fri Mar 02 15:57:08 2007Line: Addr: Opcode======================1:2: org 03:4: 0000: 0000 dw 0, 10d000A5: 0002: 0001 dw 01b, 1111111111111111bFFFF6:7: 0004: 0A00 move Acc, #08:9: 0005: FFFF dw 0FFFFh10: 0006: FFFF dw 6553511: 0007: 0041 dw 'A'12:13: 0008: DA3A nop14:15: endParser terminated successfully.Version 1.2 17 of 43 March 7, 2007

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!