Question: I need to know how to modify this assembly code to display multiple lines of text apart from hello world hello-1 (1).asm ************************ ************* *

 I need to know how to modify this assembly code todisplay multiple lines of text apart from hello world hello-1 (1).asm ************************************* * HELLO.ASM Simple program for testing the Axiom CMx11A8 boards. Atext string is sent to the terminal using COM1. * ****** *EQUATES ***** ******* REGBS EQU $1990 start of registers BAUD SCCR1 SCCR2 I need to know how to modify this assembly code to display multiple lines of text apart from hello world

hello-1 (1).asm ************************ ************* * HELLO.ASM Simple program for testing the Axiom CMx11A8 boards. A text string is sent to the terminal using COM1. * ****** * EQUATES ***** ******* REGBS EQU $1990 start of registers BAUD SCCR1 SCCR2 SCSR SCDAT COPRST EQU REGBS+$2B sci baud reg EQU REGBS+$2Csci control1 reg EQU REGBS+$2D sci control2 reg EQU REGBS+$2E sci status reg EQU REGBS+$2F sci data reg EQU REGBS+$3A cop reset reg I BUFSIZ EQU 35 EOT EQU $94 input buffer size end of text/table RAM * *************** **** ORG $ $2000 INBUFF RMB ENDBUFF EQU COUNT RMB IBUFSIZ input buffer, defined but not used * 1 # characters read, also unused ****** ****** * Program starts here * *********************** ORG $2400 ORG SE000 START LDS #$23FF * JSR LDX JSR ONSCI #MSG OUTSTRG set stack pointer, DO NOT set when running under monitor initialize serial port get message string send it out serial port *eloop nop bra endless loop eloop RTS * ********** ONSCI() Initialize the SCI for 9600 baud at 8 MHz Extal. **** ONSCI LDAA #$30 STAA BAUD baud register LDAA #$ 00 STAA SCCR1 LDAA #$ BC STAA SCCR2 enable RTS * OUTSTRG(X) - Output string of ASCII bytes * starting at x until end of text ($94). ********** OUTSTRG JSR OUTCRLF OUTSTRGO PSHA OUTSTRG1 LDAA 0,X read char into a CMPA #EOT BEQOUTSTRG3 jump if eot JSR OUTPUT output character INX incriment pointer BRA OUTSTRG 1 loop OUTSTRG3 PULA ********** OUTCRLF) - Output a Carriage return and * a line feed. Returns a = cr. ********** OUTCRLF LDAA #$ 6D CP JSR OUTPUT output a LDAA #$ 00 JSR OUTPUT output padding LDAA #$ OD RTS ********** OUTPUT() - Output A to sci. ********** OUTPUT OUTSCI2 LDAB SCSR read status BITB #$80 BEQ OUTSCI2 loop until tdre=1 ANDA #$7F mask parity STAA SCDAT send character OUTSCI3 RTS *** TEXT TABLES *** *** TEXT TABLES *** MSG FCC FCB 'Hello World EOT set the reset vector ORG FDB $FFFE START END hello-1 (1).asm ************************ ************* * HELLO.ASM Simple program for testing the Axiom CMx11A8 boards. A text string is sent to the terminal using COM1. * ****** * EQUATES ***** ******* REGBS EQU $1990 start of registers BAUD SCCR1 SCCR2 SCSR SCDAT COPRST EQU REGBS+$2B sci baud reg EQU REGBS+$2Csci control1 reg EQU REGBS+$2D sci control2 reg EQU REGBS+$2E sci status reg EQU REGBS+$2F sci data reg EQU REGBS+$3A cop reset reg I BUFSIZ EQU 35 EOT EQU $94 input buffer size end of text/table RAM * *************** **** ORG $ $2000 INBUFF RMB ENDBUFF EQU COUNT RMB IBUFSIZ input buffer, defined but not used * 1 # characters read, also unused ****** ****** * Program starts here * *********************** ORG $2400 ORG SE000 START LDS #$23FF * JSR LDX JSR ONSCI #MSG OUTSTRG set stack pointer, DO NOT set when running under monitor initialize serial port get message string send it out serial port *eloop nop bra endless loop eloop RTS * ********** ONSCI() Initialize the SCI for 9600 baud at 8 MHz Extal. **** ONSCI LDAA #$30 STAA BAUD baud register LDAA #$ 00 STAA SCCR1 LDAA #$ BC STAA SCCR2 enable RTS * OUTSTRG(X) - Output string of ASCII bytes * starting at x until end of text ($94). ********** OUTSTRG JSR OUTCRLF OUTSTRGO PSHA OUTSTRG1 LDAA 0,X read char into a CMPA #EOT BEQOUTSTRG3 jump if eot JSR OUTPUT output character INX incriment pointer BRA OUTSTRG 1 loop OUTSTRG3 PULA ********** OUTCRLF) - Output a Carriage return and * a line feed. Returns a = cr. ********** OUTCRLF LDAA #$ 6D CP JSR OUTPUT output a LDAA #$ 00 JSR OUTPUT output padding LDAA #$ OD RTS ********** OUTPUT() - Output A to sci. ********** OUTPUT OUTSCI2 LDAB SCSR read status BITB #$80 BEQ OUTSCI2 loop until tdre=1 ANDA #$7F mask parity STAA SCDAT send character OUTSCI3 RTS *** TEXT TABLES *** *** TEXT TABLES *** MSG FCC FCB 'Hello World EOT set the reset vector ORG FDB $FFFE START END

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!