From 7fdb28714eb98d58c55324db51cc7caf97c631bf Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Tue, 3 Sep 2024 08:23:01 +0200 Subject: [ IMP ] Update function InstInstallToDir, with updated syscall instruction. Signed-off-by: Amlal El Mahrouss --- dev/INSTALL/X64/InstallAPI.asm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'dev') diff --git a/dev/INSTALL/X64/InstallAPI.asm b/dev/INSTALL/X64/InstallAPI.asm index 2e2ba195..61c712d0 100644 --- a/dev/INSTALL/X64/InstallAPI.asm +++ b/dev/INSTALL/X64/InstallAPI.asm @@ -16,17 +16,18 @@ section .data -kInstallTitle: db "Install ZKA", 0 +kInstallTitle: db "ZKA Installer", 0 section .text ;; @param r8 arg 1 ;; @param r9 arg 2 -;; @note PEF procedure. +;; @return rax, return status of syscall. +;; @note MS-ABI procedure. InstInstallToDir: - mov rcx, r8 ; file - mov rdx, r9 ; dest dir - int 0x32 + mov r8, rcx ; FILE_INFO_STRUCT (SRC) + mov r9, rdx ; FILE_INFO_STRUCT (DST) + syscall ;; 0 = GOOD, 1 = BAD FIS (SRC), 2 = BAD FIS (DST) ret -- cgit v1.2.3