MEM
This presentation is the property of its rightful owner.
Sponsored Links
1 / 4

Pd32 PowerPoint PPT Presentation


  • 80 Views
  • Uploaded on
  • Presentation posted in: General

MEM. Pd32. DMAC. hd. dev. CLEAR. IACK. START. IRQ. IVN. R Q S. REG. IACK OUT. SCO. SCA. pd32. IACK. CLEAR. IO WR. INC. MBR. START. IRQ. CAR. IVN. SEL CAR. R Q S. DEC. IACK OUT. MBR. TC. MRD. SCO DMAC. WC. MWR. MBG. SEL WC. REG. DATO. SCO

Download Presentation

Pd32

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


Pd32

MEM

Pd32

DMAC

hd

dev


Pd32

CLEAR

IACK

START

IRQ

IVN

R Q

S

REG

IACK OUT

SCO

SCA


Pd32

pd32

IACK

CLEAR

IO WR

INC

MBR

START

IRQ

CAR

IVN

SEL CAR

R Q

S

DEC

IACK OUT

MBR

TC

MRD

SCO

DMAC

WC

MWR

MBG

SEL WC

REG

DATO

SCO

HD

MEM


Pd32

ORG 400H

DEVEQU

DMACEQU

CAREQU

WCEQU

BUFFEREQU 00B0h

BUFFER_AEQUD0BBh

CODE

JSR INIT

MAIN:JMP MAIN

INIT:OUTL #1024,WC;IMPOSTO DMAC

OUTL #BUFFER_A, CAR;

SETI

START DMAC

RET

DRIVER 0,1600h; DRIVER DMAC

PUSH..

MOVL #BUFFER_A,BUFFER; MEMORIZZO IND PRIMA PAROLA NEL BUFFER DI LAVORO

MOVL #BUFFER,R0;CALCOLO INDIRIZZO CONTATORE

ADDL #4,R0 ;CALCOLO INDIRIZZO CONTATORE

MOVW #0,(R0); AZZERO CONTATORE

CLEAR DMAC;ELIMINO CAUSA INTERRUZIONE

START DEV

POP..

DRIVER 1,3200h;DRIVER DEV

PUSH..

CLEAR DEV; ELIMINO CAUSA INTERRUZIONE

SETI;ABILITO INTERRUZIONI

MOVL BUFFER, R0;INDIRIZZO DATO DA CONSUMARE IN R0

OUTL (R0)+,DEV; DATO DA CONSUMARE IN DEV

MOVL R0, BUFFER; AGGIORNO INDIRIZZO NEXT DATO DA CONSUMARE

MOVL #BUFFER,R0; CALCOLO INDIRIZZO CONTATORE

ADDL #4 ,R0; CALCOLO INDIRIZZO CONTATORE

MOVW(RO),R1;CONTATORE IN R1

ADDW #1, R1;AGGIORNO CONTATORE

MOVW R1,(RO);AGGIORNO CONTATORE IN MEMORIA

MOVW #1024,R2;CARICO IL DATO PER IL CONFRONTO

CMPW R1,R2;CONFRONTO CONTATORE CON 1024

JNZ FINE

OUTL #1024,WC;REIMPOSTO DMAC

OUTL#BUFFER_A,CAR;

START DMAC

FINE:START DEV_A

POP..

RTI


  • Login