beautypg.com

Rana Systems Elite Series User Manual

Page 184

background image

ELITE SERIES USER MANUAL

THEORY OF OPERATION

LDA

#DSTTRK

ASL

A

STA

TEMP1

LDA

#SRCTRK

ASL

A

LOOP:

CMP

TEMP 1

BEQ

DONE

BCS

MOVOUT

ADC

#1

BCC

MOVE

MOVOUT:

SBC

#1

MOVE:

PHA

AND

#$03

ASL

STA

TEMP2

TXA

ORA

TEMP2

TAY

LDA

$C080,Y

JSR

DELAY

PLA

TAY

LDA

$C080,Y

JSR

DELAY

PLA

JMP

LOOP

DONE:

P a g e 7 — 2 1