Skip to content

Commit

Permalink
Remove unused push packet payload byte function
Browse files Browse the repository at this point in the history
  • Loading branch information
ChillerDragon committed Dec 19, 2024
1 parent 7f62bba commit 7453b29
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/packet.asm
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,6 @@
; you can also push bytes into a packer buffer
; see packer.asm for that

push_packet_payload_byte:
; push_packet_payload_byte [rax]
; rax = (or al) is the byte as value to be pushed into the `udp_send_buf`
push rcx
push rdx

mov dword edx, [udp_payload_index]
lea rcx, [udp_send_buf + PACKET_HEADER_LEN + edx]
mov byte [rcx], al

mov rcx, [udp_payload_index]
inc rcx
mov [udp_payload_index], rcx

pop rdx
pop rcx
ret

%macro packet_packer_reset 0
mov dword [udp_payload_index], 0

Expand Down

0 comments on commit 7453b29

Please sign in to comment.