; ----------------------------------- ; --=== ECAD and Architecture Lab 5 ===-- ; ----------------------------------- ; Name (ID) ; Date GET arm.s ; Import the serial routines that we need... IMPORT UART_INIT IMPORT UART_TXD_STR IMPORT UART_RXD_HEX ; The start of our code... AREA text,CODE ENTRY ldr sp,=0x7FFF ; Set the stack position to the end of our memory BL UART_INIT ; Initialize the UART ldr r0,=strHead ; Test by outputting some text BL UART_TXD_STR ; To the serial port ; The text is defined at the end of the file ; --------------------------------------------- LOOP LOOPSTART ; ... ; ... ; ... ; ... ; ... ; ... ; ... ; ... ; ... B LOOPSTART ; ----------------------------------------- END LOOP ; ---------------------------------------------------- VARIABLES ; The Strings that are output at the start of the code strHead DCB 13,10 ; 13,10 = Carriage Return + Line feed (new line) DCB "**************************************",13,10 DCB "* ECAD + Arch Lab 5 - LED Clock *",13,10 DCB "* Display *",13,10 DCB "**************************************",13,10 DCB "Type hex digits to display them on the LED Display...",13,10,0 END