hw9final - org $0000 t0ttl rmb 2 t6ttl rmb 2 cnvrt rmb 2 r...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
org $0000 t0ttl rmb 2 t6ttl rmb 2 cnvrt rmb 2 r option equ $1039 adctl equ $1030 adr1 equ $1031 adr2 equ $1032 e pioc equ $1002 portb equ $1004 portcl equ $1005 ttl equ $0001 txt fcc "YOU ENTERED $" fcb 0 preparing fcc "preparing" fcb 0 dispensing fcc "dispensing" fcb 0 ready fcc "ready" fcb 0 f org $c000 begin ldaa #0 staa $1040 ldd #0 std t0ttl std t6ttl std cnvrt s start tst pioc bpl start ldaa portcl l ldab #00 cba beq p0 b ldab #01 cba beq pny b ldab #02 cba beq nkl b ldab #04 cba beq dme b ldab #08 cba beq qtr
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
b ldab #$80 cba beq coffee b jmp prtj j p0 jmp prt0 j pny p ldab #01 jsr attl jsr pttl jmp prto nkl n ldab #05 jsr attl jsr pttl jmp prto dme d ldab #10 jsr attl jsr pttl jmp prto qtr q ldab #25 jsr attl jsr pttl jmp prto j coffee ldd t0ttl cpd #$100 blt start b ldaa #0 staa $1040 s jsr prtpreparing j ldaa #%10000000 staa option s ldaa #%00100000 staa ADCTL s tmpchk ldaa adr1 l ldab #50 mul ldx #255 idiv i xgdx tba t jsr hex2bcd
Background image of page 2
j ldab #$40 cba bge DSP bra tmpchk b DSP D ldaa #0
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 6

hw9final - org $0000 t0ttl rmb 2 t6ttl rmb 2 cnvrt rmb 2 r...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online