parlindrome_tem.s - .equ SWI_PrChr,0x00 Write an ASCII char...

Info icon This preview shows pages 1–2. Sign up to view the full content.

.equ SWI_PrChr,0x00 @ Write an ASCII char to Stdout .equ SWI_PrStr, 0x69 @ Write a null-ending string .equ SWI_PrInt,0x6b @ Write an Integer .equ Stdout, 1 @ Set output mode to be Output View .equ Stdin, 0 @ Set input mode to be input View .equ SWI_Exit, 0x11 @ Stop execution .equ SWI_RdInt,0x6c @ Read an Integer from a file .global _start .data str: .asciz "Output:" strT: .asciz "True" strF: .asciz "False" .text @sp points at the first element of the array _start: mov r0, #4 mov r1, #3 mov r2, #2 mov r3, #1 stmdb sp!, {r0-r3} mov r0, #1 mov r1, #2 mov r2, #3 stmdb sp!, {r0-r2} mov r0, #7 BL _isParlindrome mov r0,#Stdout ldr r1, =str swi SWI_PrStr mov r0,#Stdout cmp r9, #0 ldrne r1, =strT ldreq r1, =strF swi SWI_PrStr
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

Image of page 2
This is the end of the preview. Sign up to access the rest of the document.
  • Spring '08
  • Gert
  • SEPTA Regional Rail, @, Jaguar Racing, University City, MOV R0, @Input

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern