Displaying 3 results from an estimated 3 matches for "comapi_getcwd".
2008 Nov 10
2
[PATCH 1/1] COMBOOT API: Add get current working directory call to most
...Conflicts with a previous patch I e-mailed.
diff --git a/core/comboot.inc b/core/comboot.inc
index 810d825..bdc43ba 100644
--- a/core/comboot.inc
+++ b/core/comboot.inc
@@ -1033,6 +1033,14 @@ comapi_getadv:
;
comapi_writeadv equ adv_write
+;
+; INT 22h AX=001Eh Get current working directory
+;
+comapi_getcwd mov P_ES,cs
+ mov P_BX,CurrentDirName
+ clc
+ ret
+
section .data
%macro int21 2
@@ -1085,6 +1093,7 @@ int22_table:
dw comapi_shufflerm ; 001B cleanup, shuffle and boot to rm
dw comapi_getadv ; 001C get pointer to ADV
dw comapi_writeadv ; 001D write ADV to disk
+ dw comapi_getcwd...
2009 Feb 08
1
[PATCH 1/1] COMBOOT API: Add calls for directory functions; Implement for FAT; Try 2
...Style
alludes to GCC's documentation on RTL for styling.
diff --git a/core/comboot.inc b/core/comboot.inc
index 7210b8b..2ff5f33 100644
--- a/core/comboot.inc
+++ b/core/comboot.inc
@@ -1047,6 +1047,72 @@ comapi_kbdtable:
stc
ret
+;
+; INT 22h AX=001Fh Get current working directory
+;
+comapi_getcwd:
+ mov P_ES,cs
+ mov P_BX,CurrentDirName
+ clc
+ ret
+
+;
+; INT 22h AX=0020h Open directory
+;
+%if IS_SYSLINUX
+comapi_opendir:
+ push ds
+ mov ds,P_ES
+ mov si,P_SI
+ mov di,InitRD
+ call mangle_name
+ pop ds
+ call searchdir
+ jnz comapi_err ; Didn't find a directory
+ cmp eax,...
2008 Dec 04
2
[PATCH 1/1] COMBOOT API: Add calls for directory functions; Implement for FAT
...CC's documentation on RTL
for styling.
diff --git a/core/comboot.inc b/core/comboot.inc
index 810d825..24c69e2 100644
--- a/core/comboot.inc
+++ b/core/comboot.inc
@@ -1033,6 +1033,72 @@ comapi_getadv:
;
comapi_writeadv equ adv_write
+;
+; INT 22h AX=001Eh Get current working directory
+;
+comapi_getcwd:
+ mov P_ES,cs
+ mov P_BX,CurrentDirName
+ clc
+ ret
+
+;
+; INT 22h AX=001Fh Open directory
+;
+%if IS_SYSLINUX
+comapi_opendir:
+ push ds
+ mov ds,P_ES
+ mov si,P_SI
+ mov di,InitRD
+ call mangle_name
+ pop ds
+ call searchdir
+ jnz comapi_err ; Didn't find a directory
+ cmp eax,...