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 Byte (DB) StatementThe DB statement is used to insert bytes of data into the output hex file at the current assembly location. It can beused in either the code segment or the data segment, and the bytes are inserted in the order they are given.The syntax for the DB statement takes the following form. The “DB” keyword is case-insensitive.db constant [, constant [, constant ...]]The following three types of values may be used as DB constants, and more than one type may be mixed in a DBstatement.• Byte constant values (written in decimal, hex or binary) from 0 to 255. Negative values may not be used.• Character constant values (written as ‘’)• String constant values, written in double quotes. These must be at least one character long and may be multiline.+---------------------------------------------------------------+| Dallas Semiconductor/MAXIM MaxQ Assembler, Version 2.047.0060 |+---------------------------------------------------------------+Last build Mar 2 2007 at 06:00:57Command line: -l -q -b -w db.asmAssembling db.asm for <strong>MAXQ</strong>20,using 16 accumulators, Fri Mar 02 15:31:34 2007Line: Addr: Opcode======================1:2: org 03:4: 0000: 00 db 05: 0001: 6565 db 101, 101, 255FF6: 0003: 01FF db 01b, 11111111b7: 0004: 0055 db 00h, 55h, 0FFhFF8:9: 0006: 41 db 'A'10: 0007: 4142 db 'A', 'B'11:12: 0008: 5374 db "String", ".", 00h72696E672E0013:14: 000C: 415A db "A", "Z", "';#$"273B2324Note that in order to use the DB statement, the “-b” command line switch must be included when invokingMaxQAsm or an error will result. This command line switch is included automatically when compiling a project fromMAX-IDE.Version 1.2 15 of 43 March 7, 2007

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

Saved successfully!

Ooh no, something went wrong!