12.07.2015 Views

MAXQ Core Assembly Guide - Maxim

MAXQ Core Assembly Guide - Maxim

MAXQ Core Assembly Guide - Maxim

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>MAXQ</strong> <strong>Core</strong> <strong>Assembly</strong> <strong>Guide</strong>The Assembler Message ($MESSAGE) StatementThe $MESSAGE statement is used to output a message along with the standard output (and to the list file) atassembly time. It does not affect the hex file output. This is a documentation statement, designed to indicate buildversions, debug builds, and other information of that nature.$message("This is a debug build!")The ORG StatementThe ORG statement is used to set the current assembly location to a word address value. The syntax is as follows.org The address value may be given in decimal, hex or binary, and may be anywhere from zero to 0FFFFh. Ifextended address record generation (-h switch omitted) is enabled, the address may be anywhere from zero to0FFFFFFh (16M x 16). (This type of addressing is used with the <strong>MAXQ</strong>30 core.)Note that until a statement is encountered which actually generates a byte or word in the hex file (DB, DW orinstruction), the ORG statement has no effect.¥¢¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¤Dallas Semiconductor/MAXIM MaxQ Assembler, Version 1.018.0119 ¥¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£§¦Last build May 26 2005 at 08:08:09Assembling org.asm for <strong>MAXQ</strong>10,using 16 accumulators, Tue Aug 09 10:33:00 2005Line: Addr: Opcode======================1:2: org 00000h3: org 0FFFFh4: org 00000h5:6: 0000: 0000 dw 0, 0, 0, 0, 000000000000000007:8: org 256d9:10: 0100: 0000 dw 0, 0000011:12: org 10000b13:14: 0010: 0000 dw 0, 0000015:16: endAlthough MaxQAsm will allow ORG statements to be used to set the address to any value in either the code ordata segments, the actual physical ranges of memory that can be written to through the bootloader will vary frompart to part. Refer to the User’s <strong>Guide</strong> Supplement for the <strong>MAXQ</strong> microcontroller you are using for information onthe boundaries of available code and data memory on that device.Version 1.2 19 of 43 March 7, 2007

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

Saved successfully!

Ooh no, something went wrong!