
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

Instructions:
Problems:
DELAY_5S: LDX # DELAY_1: LDY # DBNE Y, * DBNE X, DELAY_
ORG $ DATA DC.B $F
ORG $ MOVB #$FF , DDRB MOVB #%00000010 , DDRJ MOVB DATA , PORTB BCLR PORTJ , #% JSR DELAY_5s BSET PORTJ , #%
MOVB #$0F , DDRA BSET PORTA, #% BCLR PORTA, #% NOP BRSET PORTA, #%11110000 , * LDAA PORTA CMPA #$DE BNE KEY4_NOT_PRESSED