This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: II. Just after the first execution of the BSR instruction at L2 III. Just after the first RTS instruction execution IV. After execution of the STOP instruction b.) Show the machine code of the two BSR instructions in hex. c.) Show the contents of the stack at its fullest. d.) What arithmetic function is this code performing? b.) Machine code for: BSR.L SUB1 at L1 : 6100 00FA BSR.S SUB1 at L2 : 61F6 c.) 3FE0 0000 100A 3FE4 0000 100A 3FE8 0000 100A 3FEC 0000 100A 3FF0 0000 100A 3FF4 0000 Initially 0F08 (SP)=3FF8 --> 3FF8 d.) What function or operation is this code performing? D1 x 2 D0 (D0) (D1) (SP) (PC) I) 0005 0001 3FF4 1000 II) 0004 0002 3FF0 1000 III) 0000 0020 3FE4 100A IV) 0000 0020 3FF8 0F0C ORG $0F00 0F00 START MOVE.L #5,D0 0F02 MOVE.L #1,D1 0F04 L1 BSR.L SUB1 0F08 STOP #$2700 ORG $1000 1000 SUB1 TST.L D0 1002 BEQ.S EXIT 1004 LSL.L #1,D1 1006 SUBI.L #1,D0 1008 L2 BSR.S SUB1 100A EXIT RTS...
View Full Document
This note was uploaded on 03/05/2008 for the course EE 357 taught by Professor Mayeda during the Spring '08 term at USC.
- Spring '08