Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions listings/chap2/endianness/endianness.asm
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ section .data

newline_char: db 10
codes: db '0123456789abcdef'
demo1: dq 0x1122334455667788
demo2: db 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88
global _start

section .text

print_newline:
mov rax, 1
Expand Down Expand Up @@ -39,12 +42,6 @@ iterate:

ret

section .data
demo1: dq 0x1122334455667788
demo2: db 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88

section .text

_start:
mov rdi, [demo1]
call print_hex
Expand Down