because (I think) all the close_file are the same.
global ThisInode
ThisInode resb EXT2_GOOD_OLD_INODE_SIZE ; The most recently opened inode
- section .text16
-;
-; close_file:
-; Deallocates a file structure (pointer in SI)
-; Assumes CS == DS.
-;
-close_file:
- and si,si
- jz .closed
- mov dword [si],0 ; First dword == file_bytesleft
- xor si,si
-.closed: ret
section .bss16
alignb 4
xor ax,ax ; ZF <- 1
pop bx
ret
+
+;
+; close_file:
+; Deallocates a file structure (pointer in SI)
+; Assumes CS == DS.
+;
+close_file:
+ and si,si
+ jz .closed
+ mov dword [si],0 ; First dword == file_bytesleft
+ xor si,si
+.closed: ret
+
getc:
push bx