Answered step by step
Verified Expert Solution
Question
1 Approved Answer
5) Assember & Flow Charts. Write an assembler program for an electronic N sided die Let N be Your Birth Date plus one (1.31 +
5) Assember & Flow Charts. Write an assembler program for an electronic N sided die Let N be Your Birth Date plus one (1.31 + 1). For example, if you were born on May 14th, N=15 PORTC outputs a random number from 1..N when you press and release PortB button 0 (RBO) PORTD lights turn on if you rolled the maximum number, N (critical hit) N Birth Date + 1 N= ex: May 14 = 15 (15 sided die) Start #include TOTAL EQUO org 0x800 movlw Ox0F movwf ADCONI PORTB = Input PORTC = Output Button Released no RBO = 12 yos Button Pressed increment PORTO no PORTC>N? yes PORTC = 1 yos RBO = 1? no Button Released no yos PORTC == N? 5) Assember & Flow Charts. Write an assembler program for an electronic N sided die Let N be Your Birth Date plus one (1.31 + 1). For example, if you were born on May 14th, N=15 PORTC outputs a random number from 1..N when you press and release PortB button 0 (RBO) PORTD lights turn on if you rolled the maximum number, N (critical hit) N Birth Date + 1 N= ex: May 14 = 15 (15 sided die) Start #include TOTAL EQUO org 0x800 movlw Ox0F movwf ADCONI PORTB = Input PORTC = Output Button Released no RBO = 12 yos Button Pressed increment PORTO no PORTC>N? yes PORTC = 1 yos RBO = 1? no Button Released no yos PORTC == N
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started