We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bbbc0b commit 94e7263Copy full SHA for 94e7263
Chapter 04/printdword.s
@@ -18,6 +18,11 @@ _start: MOV X4, #0x6E3A
18
MOVK X4, #0xFEDC, LSL #32
19
MOVK X4, #0x1234, LSL #48
20
21
+ // Set X1 to the end of the destination
22
+ ADRP X1, hexstr@PAGE
23
+ ADD X1, X1, hexstr@PAGEOFF
24
+ ADD X1, X1, #17
25
+
26
// The loop is FOR W5 = 16 TO 1 STEP -1
27
MOV W5, #16 // 16 digits to print
28
loop: AND W6, W4, #0xf // mask of least sig digit
0 commit comments