APPENDIX B. ASSEMBLER DIRECTIVE SUMMARY

Similar documents
1.1. INTRODUCTION 1.2. NUMBER SYSTEMS

Binary Numbers. The Basics. Base 10 Number. What is a Number? = Binary Number Example. Binary Number Example

Lecture (09) x86 programming 8

Fundamentals of Programming (C)

CS/ECE 252: INTRODUCTION TO COMPUTER ENGINEERING UNIVERSITY OF WISCONSIN MADISON

Experiment 3. TITLE Optional: Write here the Title of your program.model SMALL This directive defines the memory model used in the program.

CS/ECE 252: INTRODUCTION TO COMPUTER ENGINEERING UNIVERSITY OF WISCONSIN MADISON

FD-011WU. 2D Barcode Reader User Guide V1.6CC

EXPERIMENT 8: Introduction to Universal Serial Asynchronous Receive Transmit (USART)

MK D Imager Barcode Scanner Configuration Guide

Data Representation and Binary Arithmetic. Lecture 2

EXPERIMENT 7: Introduction to Universal Serial Asynchronous Receive Transmit (USART)

Chapter 8. Characters and Strings

Chapter 2 Bits, Data Types, and Operations

Connecting UniOP to Datalogic Barcode Readers

1. Character/String Data, Expressions & Intrinsic Functions. Numeric Representation of Non-numeric Values. (CHARACTER Data Type), Part 1

CMSC 313 Lecture 03 Multiple-byte data big-endian vs little-endian sign extension Multiplication and division Floating point formats Character Codes

Chapter 3. Information Representation

Chapter 2 Bits, Data Types, and Operations

The following are the data types used in the C programming language:

DATA REPRESENTATION. Data Types. Complements. Fixed Point Representations. Floating Point Representations. Other Binary Codes. Error Detection Codes

CS341 *** TURN OFF ALL CELLPHONES *** Practice NAME

Fundamentals of Programming

Introduction to Decision Structures. Boolean & If Statements. Different Types of Decisions. Boolean Logic. Relational Operators

Unit 3, Lesson 2 Data Types, Arithmetic,Variables, Input, Constants, & Library Functions. Mr. Dave Clausen La Cañada High School

2a. Codes and number systems (continued) How to get the binary representation of an integer: special case of application of the inverse Horner scheme

Chapter 2 Bits, Data Types, and Operations

ASSIGNMENT 5 TIPS AND TRICKS

ASCII Code - The extended ASCII table

CMSC 313 COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE PROGRAMMING LECTURE 02, FALL 2012

5/17/2009. Digitizing Discrete Information. Ordering Symbols. Analog vs. Digital

Chapter 2 Number System

Bits and Bytes. Data Representation. A binary digit or bit has a value of either 0 or 1; these are the values we can store in hardware devices.

Number Systems II MA1S1. Tristan McLoughlin. November 30, 2013

PureScan - ML1. Configuration Guide. Wireless Linear Imager Wireless Laser scanner - 1 -

User s Manual. Xi3000 Scanner. Table of Contents

Data Representa5on. CSC 2400: Computer Systems. What kinds of data do we need to represent?

Characters Lesson Outline

Number Representations

Do not start the test until instructed to do so!

Chapter 2 Bits, Data Types, and Operations

Oberon Data Types. Matteo Corti. December 5, 2001

CPS 104 Computer Organization and Programming Lecture-2 : Data representations,

CSE-1520R Test #1. The exam is closed book, closed notes, and no aids such as calculators, cellphones, etc.

Xi2000-BT Series Configuration Guide

n NOPn Unary no operation trap U aaa NOP Nonunary no operation trap i

CSE-1520R Test #1. The exam is closed book, closed notes, and no aids such as calculators, cellphones, etc.

Data Representa5on. CSC 2400: Computer Systems. What kinds of data do we need to represent?

Number System (Different Ways To Say How Many) Fall 2016

2D Barcode Reader User Guide V 1.2.1

8080/ RELOCATABLE MACRO ASSEMBLER MANUAL. Sunnyvale, CA~ Microtec. P.O. Box 60337

Do not start the test until instructed to do so!

OOstaExcel.ir. J. Abbasi Syooki. HTML Number. Device Control 1 (oft. XON) Device Control 3 (oft. Negative Acknowledgement

Chapter 2 Bits, Data Types, and Operations

CMSC 313 COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE PROGRAMMING LECTURE 02, SPRING 2013

BD-6500BT Bluetooth 2D Barcode Scanner Configuration Guide

Chapter 1. Hardware. Introduction to Computers and Programming. Chapter 1.2

Configuration Manual PULSAR C CCD SCANNER. Table of Contents

Number Systems for Computers. Outline of Introduction. Binary, Octal and Hexadecimal numbers. Issues for Binary Representation of Numbers

4/14/2015. Architecture of the World Wide Web. During this session we will discuss: Structure of the World Wide Web

The Binary Number System

Numbers and Computers. Debdeep Mukhopadhyay Assistant Professor Dept of Computer Sc and Engg IIT Madras

Do not start the test until instructed to do so!

S-Series Sensor ASCII Protocol v8.1.0

2D BARCODE SCANNER CA-SC-20200B

Serial Communication. Transmit. Receive To EECC250 - Shaaban. From Universal Asynchronous Receiver/Transmitter (UART) Parity Bit

Variables and data types

Positional Number System

Appendix A Developing a C Program on the UNIX system

Table of Contents Sleep Settings How to Configure the Scanner. 7 Chapter 2 System Setup

CMSC 313 COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE PROGRAMMING LECTURE 02, FALL 2012

EE 109 Unit 3. Analog vs. Digital. Analog vs. Digital. Binary Representation Systems ANALOG VS. DIGITAL

Unit 3. Analog vs. Digital. Analog vs. Digital ANALOG VS. DIGITAL. Binary Representation

EE 109 Unit 2. Analog vs. Digital. Analog vs. Digital. Binary Representation Systems ANALOG VS. DIGITAL

TELELINK I. A Warner Communications CompanyCI

A GUIDE TO RS-232 COMMUNICATION WITH FX PLCS

MOTOROLA FREEWARE 8-BIT CROSS ASSEMBLERS USER'S MANUAL EDITED BY KEVIN ANDERSON FIELD APPLICATIONS ENGINEER

RS-422 Code-Operated Switches

NC-1200 BARCODE SCANNER. Configuration Guide - 1 -

marson MT8200S 2D Handheld Scanner User Manual V / 6 / 25 - I -

BARCODE SCANNER. Configuration Guide - 1 -

Addmaster Corporation

Universal Asynchronous Receiver Transmitter Communication

Exercises Software Development I. 03 Data Representation. Data types, range of values, internal format, literals. October 22nd, 2014

MOTOROLA FREEWARE 32-BIT CROSS ASSEMBLER USER'S MANUAL (UPDATED FOR VERSION 1.2) BY SCOTT HOWARD FIELD APPLICATIONS ENGINEER

Microsoft MACRO-8O ASSEMBLER

AN1742. Programming the 68HC705J1A In-Circuit By Chris Falk CSG Product Engineering Austin, Texas. Introduction. Overview

PD1100 STAND-ALONE PROGRAMMING & USER S GUIDE. use the freedom

Fundamental Data Types

Introduction. Chapter 1. Hardware. Introduction. Creators of Software. Hardware. Introduction to Computers and Programming (Fall 2015, CSUS)

Mounting Dimensions / Viewing 2 Mounting Options 3. Wiring Configuration 4. Quick Set up Procedure 5. Changing Intensity 6.

If your CNC machine memory is full, the PocketDNC gives you more storage, enabling you to store and reload proven programs at a later date.

Characters & Strings in C

First Data U.S. Debit Test Card Set. Version 1.20

Midterm CSE 131 Winter 2012

Lecture 10 Arrays (2) and Strings. UniMAP SEM II - 11/12 DKT121 1

Menu & commands booklet FOR BAR CODE SCANNERS * *

Digital Representation

ASSEMBLER DIRECTIVES

PS232. RS-232 to PS/2 Keyboard Port Adapter Part # SA0009 (Version 4.0) Copyright 2003 L3 Systems, Inc. Redmond

Transcription:

APPENDIX B. ASSEMBLER DIRECTIVE SUMMARY Assembler directives are summarized alphabetically in this the contents of directive fields. The following terms are used 10 describe NOTATION Term Expression Numerical assembly; must evaluate to 8 or 16 bils on directive issued. List Series of ic val ucs or by commas. Name Null Symbol name terminilled by a space. Field must be empty or an error results. Oplab Optional label; must be terminated a colon. Parameter Dummy parameters are symbols hold pmameters (symbolic values or in the program. elsewhere String Series of any ASCII surrounded quote marks. Single quote within is shown two consecll tive quote~. Text Series of ASCII characters. Macro definitions and calls allow the use of the Character characters listed below. Function & Ampersand. Used to concatenate symbols, Angle brackets. Used to delimit text, such as I othcr del im iters. that contain.. Double semicolon. Used before a comment in a macro definition " to prevent inclusion of the comment in each macro Exclamation point (escape character). Placed before a delimiter to be passcd as a literal in an actual parameter. To pass literal exclamation point, issue' II.' % Percent sign. Precedes actual parameters to be evaluated when the macro is called. ALL MNEMONICS 1 1977 INTEL CORPORA TlON 8 1

Appendix B. Assembler Directive Summary SUMMARY OF DIRECTIVES Label Opcode Operand(s) oplab: DB exp(s} or string(s) uplab: DS expression Define 8-bit data byte(s}. Express ions must evaluate to one byte. Reserve data storage area of specified length. oplab: DW exp(.,} or string(s} oplab: ELSE null oplab: END expression oplilb: ENDIF null name EQU expression oplilb: IF expression Define 16-bit datil word(s). Strings limited to 1-2 characters. Co nditional assembly. Code between ELSE and ENDIF directives is assembled if expression in IF cliluse is FALSE. (See IF.) Terminate assembler pass. Mu st be last statement of program. Program execution starts at 'exp,' if present; otherwise, at location O. Terminate conditional assembly block. Define symbol 'name' with value 'exp.' Symbol is not redefinable. Assemble code between IF and following ELSE or ENDIF directive if 'exp' is true. orlab: ORG expression name SET expression MACRO DIRECTIVES Set location counter to 'expression.' Define symbol 'name' with vdlue 'expression.' Symbol ca n be rederined. Lobel Opcode Operand(s) null ENDM null oplab: EXITM null Terminate macro definition. Alternate terminator of macro definition. (See ENDM.) oplab: IRP dummy param,<list> Repeat inst ruction sequence, substituting one character for m 'li st' for 'dummy param' in each iteration. ALL MNEMON/CS 7974, 79 75, 7976, 7977 INTEL CORPORATION 8-2

Appendix B. Assembler Directive Summary Label Opcode Operund(s) oplab: IRPC dummy Pdl"rlri1,text instruction sequence, substituting one character from 'text' for in each itera lion null LOCAL label in macro definition [0 have local name MACRO dummy and definition parameter(s) to be REPT t REPT block, limes. RELOCATION DIRECTIVES Label Opcode Operand(s) ASEG null A~~emble absolute mode. instructions and data in the CSEG boundary specification Assemblc uent instructions and data in the relocatahle mode the code location counter. oplab: DSEG boundary Assemblc relocclldble mode and data in location coumer. EXTRN name(s) program module but NAME module--name program mudule., I PUBLIC defined in this module that arc t.o be available 10 other modules. STKLN the number of stack for this module. lts lo be reserved for the ALL MNEMONICS 7976, 1977 INTEL CORPORA non B 3

..

'" GRAPHIC OR CONTROL NUL 00 SOH 01 STX 02 ETX 03 EOT 04 ENQ 05 ACK 06 BEL 07 BS 08 HT 09 LF OA VT OB FF OC CR OD SO OE SI OF DLE 10 DCl (X-ON) 11 OC2 (TAPE) 12 OC3 (XOFF\ 13 oc4 (=FAP-E-) 14 NAK 15 SYN 16 ETB 17 CAN 18 EM 19 SUB la ESC 1B FS 1C GS 1D RS le US 1 F SP 20 " 21 22 # 23 $ 24 % 25 & 26 27 28 29 * 2A APPEN The 8080 and 8085 usc (parity bit) reset. ASCII (HEXADECIMAL) IX C. II CHARACTER S ASCII COD lhc..even-bit ASCII with the eighth bit GRAPHIC OR CONTROL ASCII (HEXADECIMAL) GRAPHIC OR CONTROL ASCII (HEXADECIMAL) + 2B V 56 2C VI] 57 2D X 58 2E Y 59 / 2F Z 5A 0 30 [ 5B 1 31 \ 5C 2 32 1 5D 3 33 i\ (t) 5E 4 34 5F 5 35 60 6 36 a 61 7 37 b 62 8 38 c 63 9 39 d 64 3A 65 3B 66 /' -'- 3C 9 67 3D h 68 > 3E 69 I 3F i 6A 40 k 6B A 41 6C B 42 m 60 C 43 n 6E D 44 0 6F E 45 P 70 F 46 q 71 G 47 72 H 48 73 I 49 74 J 4A lj 75 K 4B v 76 L 4C w 77 M 40 x 78 N 4E Y 79 0 4F z 7A P 50 7B Q 51 7C R 52 (ALT MODE) 7D S 53 JE T 54 DEL (RUB OUT) 7F U 55 (-1