hw8 - ldaa #$2E staa $1040 ldaa #$31 staa $1040 ldaa #$30...

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

View Full Document Right Arrow Icon
org $0000 o pioc equ $1002 portb equ $1004 portcl equ $1005 txt fcc "YOU ENTERED $" fcb 0 f org $c000 ldaa #0 staa $1040 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 bra prtj b pny jsr prtxt ldaa #$30 staa $1040 ldaa #$2E staa $1040 ldaa #$30 staa $1040 ldaa #$31 staa $1040 bra prto b nkl jsr prtxt ldaa #$30 staa $1040 ldaa #$2E
Background image of page 1

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

View Full DocumentRight Arrow Icon
staa $1040 ldaa #$30 staa $1040 ldaa #$35 staa $1040 bra prto b dme jsr prtxt ldaa #$30 staa $1040
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ldaa #$2E staa $1040 ldaa #$31 staa $1040 ldaa #$30 staa $1040 bra prto b qtr jsr prtxt ldaa #$30 staa $1040 ldaa #$2E staa $1040 ldaa #$32 staa $1040 ldaa #$35 staa $1040 bra prto b prtj ldab #%00001110 stab portb dnej bra dnej b prto ldab #%00111111 stab portb dneo bra dneo b prtxt ldy #txt loop tst 0,y beq rtn ldaa 0,y staa $1040 iny bra loop rtn rts r org $fffe fdb start...
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 / 2

hw8 - ldaa #$2E staa $1040 ldaa #$31 staa $1040 ldaa #$30...

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

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