Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The Motorola M68HC11EVB Please help with the assembly language used for this experiment using The Motorola M68HC11EVB Program to get two bytes Erom terminal, multiplythe,

The Motorola M68HC11EVB

Please help with the assembly language used for this experiment using The Motorola M68HC11EVB

image text in transcribed

Program to get two bytes Erom terminal, multiplythe, and 'display resulting two bytes to terminal ADDRESSES MAY VARY BY BOARD OUTIBYT OUTCRLE INCHAR OUTSTRG SFFBB SFFC4 SFFCD SFFCT 58800 S00 RESHI RESLO MLTPL ML TPND FCB FCB FCE FCB 00 S00 8000 MULT MESG OUTSTRG OUTCRLE GET1BYT MLTPLE MESG OUTSTRG OUTCRLF GETIBYT MLTPN OUTCRLF MLTPLE MLTPND LDX JSR JSR OUTPUT CARRIAGE RETURN AND LINE FEED GET MULTIPLIER BYTE AND STORE IT STAA LDX JSR JSR JSR STAA JSR OUTPUT A CARRIAGE RETURN AND LINE FEED GET MULTIPLICAND BYTE AND STORE IT OUTPUT A CARRIAGE RETURN AND LINE FEED LOAD A WITH MULTIPLIER LOAD B WITH MULTIPLICAND LDAB MUL STAA STAB RESHI RESLO RESHI OUTIBYT OUTIBYT OUTCRLF MULT SUBROUTINE GET1BYT * SAVE RESULT HIGH AND LOW OUTPUT RESULTS HIGH AND LOW PUTPUT RESULTS HIGH AND LON JSR OUTPUT CARRIAGE RETUN AND LINE FEED LOOP BACK FOR ANOTHER PASS JSR Subroutine to get a byte from termina.l GET FIRST NIBBLE IN A MOVE IT TO UPPER NIBBLE POSITION GETIBYT JSR GETINIB LSLA LSLA LSLA STAA TEMP GETINIB SAVE IT IN A TEMPORARY MEMORY GET SESOND NIBBLE IN A COMBINE IT WITH FIRST NIBBLE ORAA RTS SUBROUTINE GETINIB Subroutine to get a nibble from terminal GET AN ASCII CHARACTER FROM TERMINAL REMOVE ASCII BIAS GETINIE INCHAR #830 #809 SUBA CMPA BLS ANDA EXIT * SDF SKIP AROUND IF ? 0-9 DIGIT MAKE IT CASE INSENSITIVE EXIT MESG RTS FCC FCB PLEASE ENTER A 2-DIGIT HEXADECIMAL NUMBER Program to get two bytes Erom terminal, multiplythe, and 'display resulting two bytes to terminal ADDRESSES MAY VARY BY BOARD OUTIBYT OUTCRLE INCHAR OUTSTRG SFFBB SFFC4 SFFCD SFFCT 58800 S00 RESHI RESLO MLTPL ML TPND FCB FCB FCE FCB 00 S00 8000 MULT MESG OUTSTRG OUTCRLE GET1BYT MLTPLE MESG OUTSTRG OUTCRLF GETIBYT MLTPN OUTCRLF MLTPLE MLTPND LDX JSR JSR OUTPUT CARRIAGE RETURN AND LINE FEED GET MULTIPLIER BYTE AND STORE IT STAA LDX JSR JSR JSR STAA JSR OUTPUT A CARRIAGE RETURN AND LINE FEED GET MULTIPLICAND BYTE AND STORE IT OUTPUT A CARRIAGE RETURN AND LINE FEED LOAD A WITH MULTIPLIER LOAD B WITH MULTIPLICAND LDAB MUL STAA STAB RESHI RESLO RESHI OUTIBYT OUTIBYT OUTCRLF MULT SUBROUTINE GET1BYT * SAVE RESULT HIGH AND LOW OUTPUT RESULTS HIGH AND LOW PUTPUT RESULTS HIGH AND LON JSR OUTPUT CARRIAGE RETUN AND LINE FEED LOOP BACK FOR ANOTHER PASS JSR Subroutine to get a byte from termina.l GET FIRST NIBBLE IN A MOVE IT TO UPPER NIBBLE POSITION GETIBYT JSR GETINIB LSLA LSLA LSLA STAA TEMP GETINIB SAVE IT IN A TEMPORARY MEMORY GET SESOND NIBBLE IN A COMBINE IT WITH FIRST NIBBLE ORAA RTS SUBROUTINE GETINIB Subroutine to get a nibble from terminal GET AN ASCII CHARACTER FROM TERMINAL REMOVE ASCII BIAS GETINIE INCHAR #830 #809 SUBA CMPA BLS ANDA EXIT * SDF SKIP AROUND IF ? 0-9 DIGIT MAKE IT CASE INSENSITIVE EXIT MESG RTS FCC FCB PLEASE ENTER A 2-DIGIT HEXADECIMAL NUMBER

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design For Mere Mortals

Authors: Michael J Hernandez

4th Edition

978-0136788041

Students also viewed these Databases questions

Question

=+1 What would you do if you were the IHR manager?

Answered: 1 week ago