Intel 8085, 8080 manual Asmbo MBADD.SRC Symbols Xref Macrofile

Page 18

Assembler Operation

SOSO/S08S Assembler

CBASE

EaU

0100H

 

 

ORG

CBASE

 

START: LOAD

NUM1,NUM2,NUM3

 

XRA

A

;CLEAR ACCUMULATOR

LOOP:

LDAX

B

;LOAD BYTE OF 1ST NO.

 

ADC

M

;ADD BYTE OF 2ND NO.

 

STAX

B

;STORE RESULT

 

OCR

o

;DONE IF REG 0=0

 

JZ

MAIN

;RETURN TO MAIN PROGRAM

 

INX

B

;INCR BC TO NEXT BYTE

 

INX

H

;INCR HL TO NEXT BYTE

 

JMP

LOOP

;ADD NEXT TWO BYTES

NUM1: DB

O9OH

;1ST NUMBER

 

DB

OBAH

 

 

DB

084H

 

NUM2: DB

08AH

;2ND NUMBER

 

DB

OAFH

 

 

DB

032H

 

NUM3: DB

003H

 

 

END

START

 

Once loaded, the ISIS-II assembler performs its operations without further user in- tervention. In this example, both assembly listing and object output are requested by default. The activation sequence is as follows:

-ASMBO MBADD.SRC SYMBOLS XREF MACROFILE

The source file is specified as MBADD.SRC. The PRINT control file defaults to MBADD.LST. The OBJECT control file defaults to MBADD.OBJ. A symbol- cross-reference listing is also requested and macros are present.

The assembly and cross-reference listings are shown below. For a detailed explana- tion of each item in these listings, see Chapter 4.

-ASM80 MADD.SRC SYMBOLS XREF MACROFILE

MBADD

PAGE 1

ISIS-II 8080/8085 MACRO ASSEMBLER, V2.0

MULTIBYTE ADDITION PROGRAM

 

 

 

LOC

OBJ

 

LINE

SOURCE STATEMENT

 

 

 

 

1$

TITLE('MULTIBYTEADDITION PROGRAM')

 

 

 

 

2

NAME

MBADD

 

 

 

 

 

3 LOAD

MACRO OPD1 ,OPD2,COUNT

 

 

 

 

4L1:

LXI

B,OPD1

;;ADDRESS OF 1ST NO. TO BC

 

 

 

5

LXI

H,OPD2

;;ADDRESS OF 2ND NO. TO HL

 

 

 

6

LXI

D,COUNT ;;LOOP CONTROL COUNT TO D

 

 

 

7

ENOM

 

 

 

 

 

 

8

CSEG

 

 

 

 

 

 

9

PUBLIC NUM1,NUM2,NUM3

 

 

 

 

10

EXTRN

MAIN

 

 

0100

 

 

11 CBASE

EaU

0100H

 

 

0100

 

 

12

ORG

CBASE

 

 

 

 

 

13 START:

LOAD

NUM1,NUM2,NUM3

 

0100

011601

C

14+ L1~

LXI

B,NUM1

 

 

0103

211901

C

15+

LXI

H,NUM2

 

 

0106

111C01

C

16+

LXI

D,NUM3

;CLEAR ACCUMULATOR

 

0109

AF

 

17

XRA

A

 

100A OA

 

18 LOOP:

LDAX

B

;LOAD BYTE OF 1ST NO.

 

010B 8E

 

19

ADC

M

;ADD BYTE OF 2ND NO.

 

010C 02

 

20

STAX

B

;STORE RESULT

 

0100 15

 

21

OCR

0

;OONE IF REG 0 = 0

 

010E CAOOOO

E

22

JZ

MAIN

;RETURN TO MAIN PROGRAM

0111

03

 

23

INX

B

;INCR BC TO NEXT BYTE

 

0112

23

 

24

INX

H

;INCR HL TO NEXT BYTE

 

0113

C30A01

C

25

JMP

LOOP

;ADD NEXT TWO BYTES

 

0116

90

 

26NUM1:

DB

O9OH

;1STNUMBER

 

3-2

Image 18
Contents ISIS-II 8080/8085 Macro Assembler Operatorsmanual Scope Prefacei Page Contentsi Page Chapter Assembler Overview ISIS-II Assembler EnvironmentInput/Output Files Symbol-Cross-Reference File Assembler FilesPage Chapter ISIS·IIAssembler Controls Primary Controls General Controls ISIS-II Assembler Control Lines Page Sample Assembly Activation SequenceAsmbo MBADD.SRC Symbols Xref Macrofile Reducing Assembly Time Page Chapter List File Formats List File Formats 808O/808S Assembler Assembly Output Line Symbol Table Listing Symbol-Cross-Reference Listing Cross-Reference Output LineChapter PL/M Linkage Conventions Page Absolute Programs Relocatable ProgramsPage Error Detection and Reporting Error CodesError Messqes ISIS-II Error Messages FOCC= OOnn Request for Readerscomments 111111
Related manuals
Manual 96 pages 34.66 Kb Manual 262 pages 56.67 Kb Manual 160 pages 43.4 Kb

8080, 8085 specifications

The Intel 8085 and 8080 microprocessors were groundbreaking innovations in the world of computing, paving the way for future microprocessor development and personal computing.

The Intel 8080, introduced in 1974, was an 8-bit microprocessor that played a fundamental role in the early days of personal computing. With a 16-bit address bus, it had the capability to address 64 KB of memory. Running at clock speeds of 2 MHz, the 8080 was notable for its instruction set, which included 78 instructions and 246 opcodes. It supported a range of addressing modes including direct, indirect, and register addressing. The 8080 was compatible with a variety of peripherals and played a crucial role in the development of many early computers.

The microprocessor's architecture was based on a simple and efficient design, making it accessible for hobbyists and engineers alike. It included an 8-bit accumulator, which allowed for data manipulation and storage during processing. Additionally, the 8080 featured registers like the program counter and stack pointer, which facilitated program flow control and data management. Its ability to handle interrupts also made it suitable for multitasking applications.

The Intel 8085, introduced in 1976, was an enhancement of the 8080 microprocessor. It maintained a similar architecture but included several key improvements. Notably, the 8085 had a built-in clock oscillator, simplifying system design by eliminating the need for external clock circuitry. It also featured a 5-bit control signal for status line management, which allowed for more flexible interfacing with peripheral devices. The 8085 was capable of running at speeds of up to 3 MHz and had an extended instruction set with 74 instructions.

One of the standout features of the 8085 was its support for 5 extra instructions for stack manipulation and I/O operations, which optimized the programming process. Additionally, it supported serial communication, making it suitable for interfacing with external devices. Its 16-bit address bus retained the 64 KB memory addressing capability of its predecessor.

Both the 8080 and 8085 microprocessors laid the groundwork for more advanced microprocessors in the years that followed. They demonstrated the potential of integrated circuits in computing and influenced the design and architecture of subsequent Intel microprocessors. Their legacy endures in the way they revolutionized computing, making technology accessible to a broader audience, and their influence is still felt in the design and architecture of modern microprocessors today.