Foppe Hemminga пре 6 година
родитељ
комит
ca01485ff0
1 измењених фајлова са 9 додато и 9 уклоњено
  1. 9 9
      ch-01/HelloWorld.s

+ 9 - 9
ch-01/HelloWorld.s

@@ -7,23 +7,23 @@
 @
 
 .global _start		@ Provide program starting
-			@ address to linker
+        			@ address to linker
 
 @ Set up the parameters to print hello world
 @ and then call Linux to do it.
 
-_start: mov R0, #1	@ 1 = StdOut
+_start: mov R0, #1	    @ 1 = StdOut
 	ldr	R1, =helloworld	@ string to print
-	mov	R2, #13	@length of our string
-	mov R7, #4	@ Linux write system call
-	svc	0	@ Call Linux to print
+	mov	R2, #13	        @length of our string
+	mov R7, #4	        @ Linux write system call
+	svc	0	            @ Call Linux to print
 
 @ Set up the parameters to exit the program
 @ and then call Linux to do it.
-	mov	R0, #0	@ Use 0 return code
-	mov	R7, #1	@ Sevice command code 1
-			@ terminates the program
-	svc	0	@ Call Linux to terminate
+	mov	R0, #0	        @ Use 0 return code
+	mov	R7, #1	        @ Sevice command code 1
+			            @ terminates the program
+	svc	0	            @ Call Linux to terminate
 
 .data
 helloworld: 	.ascii	"Hello World!\n"