hw81 - std cnvrt s ldd t0ttl addd #156 std t0ttl s bra cmp...

Info iconThis preview shows pages 1–3. 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 pioc equ $1002 portb equ $1004 portcl equ $1005 ttl equ $0001 txt fcc "YOU ENTERED $" fcb 0 f org $c000 begin ldd #0 std t0ttl std t6ttl std cnvrt s start tst pioc bpl start ldaa portcl l ldab #01 cba beq pny b ldab #02 cba beq nkl b ldab #04 cba beq dme b ldab #08 cba beq qtr b jmp prtj 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
Background image of page 1

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

View Full DocumentRight Arrow Icon
jmp prto j attl ldx t6ttl abx stx t6ttl stx t0ttl stx cnvrt rts r pttl ldaa #0 staa $1040 s jsr prtxt j cmp ldd cnvrt cpd #1000 blo cmp100 subd #1000 std cnvrt s ldd t0ttl addd #3096 std t0ttl s bra cmp b cmp100 ldd cnvrt cpd #100 blo cmp10 subd #100
Background image of page 2
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: std cnvrt s ldd t0ttl addd #156 std t0ttl s bra cmp b cmp10 ldd cnvrt cpd #10 blo prtN subd #10 std cnvrt s ldd t0ttl addd #6 std t0ttl s bra cmp10 b prtN ldd t0ttl lsra lsra lsra lsra adda #$30 staa $1040 s ldd t0ttl anda #$0F adda #$30 staa $1040 s lsrb lsrb lsrb lsrb addb #$30 stab $1040 s ldd t0ttl andb #$0F addb #$30 stab $1040 s rts r prtj ldab #%00001110 stab portb jmp start j prto ldab #%00111111 stab portb jmp start j prtxt ldy #txt loop tst 0,y beq rtn ldaa 0,y staa $1040 iny bra loop rtn rts r org $fffe fdb begin...
View Full Document

This note was uploaded on 11/15/2010 for the course ECE 265 taught by Professor N /a during the Spring '08 term at Ohio State.

Page1 / 3

hw81 - std cnvrt s ldd t0ttl addd #156 std t0ttl s bra cmp...

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

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