Commits

David McLaren  committed b9a486d

Print out in both decimal and hexadecimal the length.

  • Participants
  • Parent commits 4da932f

Comments (0)

Files changed (1)

File arrayMain.asm

     outputArray db "The array of extended fp numbers are:", 10, 0
     outputArraySum db "The sum of the numbers in the array is %Lf.", 10, 0
 
-    outputLength  db "The length of the array is: %Lf", 10, 0
-    outputHex db "The length in hexidecimal is: %.25Lf", 10, 0
+    outputLength  db "The length of the array is: %.25Lf", 10, 0
+    outputHex db "The length in hexidecimal is: %X", 10, 0
 
     outputGoodbye db "Have a nice day. This application will return to the driver", 10, 0
 
     push qword  0
     fstp tword  [rsp]
 
+    ;Print out in long float
     mov qword   rax, 0
     mov         rdi, outputLength
     mov         rsi, rsp
     call        printf
 
+    ;Print out in hexidecimal
+    mov qword   rax, 0
+    mov         rdi, outputHex
+    mov         rsi, rsp
+    call        printf
+
     pop         rax
     pop         rax