From bd4b1b70a8fe921134146ab125ca658577c46f6b Mon Sep 17 00:00:00 2001 From: n-a-c-h <> Date: Tue, 17 May 2005 17:35:14 +0000 Subject: [PATCH] Removed dead code. --- zsnes/src/dos/dosintrf.asm | 57 ----------------------------- zsnes/src/linux/sdlintrf.asm | 60 ++----------------------------- zsnes/src/win/winintrf.asm | 69 ------------------------------------ 3 files changed, 3 insertions(+), 183 deletions(-) diff --git a/zsnes/src/dos/dosintrf.asm b/zsnes/src/dos/dosintrf.asm index 9b3dcbfb..b31d1f0d 100644 --- a/zsnes/src/dos/dosintrf.asm +++ b/zsnes/src/dos/dosintrf.asm @@ -453,45 +453,7 @@ NEWSYM Change_Single_Dir int 21h ret -NEWSYM Create_Dir - ; change to dir in edx - mov [MKPath],edx - pushad - call ZFileMKDir - or eax,eax - jnz .notokay - popad - clc - ret -.notokay - popad - stc - ret - mov ah,39h - int 21h - ret -NEWSYM Remove_Dir - ; remove dir in edx - mov [RMPath],edx - pushad - call ZFileRMDir - or eax,eax - jnz .notokay - popad - clc - ret -.notokay - popad - stc - ret - mov ah,3Ah - int 21h - ret - -; mov dl,[LoadDrive] -; mov ebx,LoadDir -; call Change_Dir NEWSYM Change_Dir pushad mov ah,0Eh @@ -518,25 +480,6 @@ NEWSYM Change_Dir stc ret - ; dl = drive, ebx = dir - push ebx - mov ah,0Eh - int 21h - mov ah,3Bh - mov edx,gotoroot - int 21h - pop ebx - mov edx,ebx - cmp byte[edx],0 - je .nodir - mov ah,3Bh - int 21h -.nodir - ret - -; mov ebx,LoadDir -; mov edx,LoadDrive -; call Get_Dir NEWSYM Get_Dir mov [DirName],ebx pushad diff --git a/zsnes/src/linux/sdlintrf.asm b/zsnes/src/linux/sdlintrf.asm index c6455773..1962f086 100644 --- a/zsnes/src/linux/sdlintrf.asm +++ b/zsnes/src/linux/sdlintrf.asm @@ -488,36 +488,6 @@ NEWSYM Change_Single_Dir stc ret -NEWSYM Create_Dir - ; change to dir in edx - mov [MKPath],edx - pushad - call ZFileMKDir - or eax,eax - jnz .notokay - popad - clc - ret -.notokay - popad - stc - ret - -NEWSYM Remove_Dir - ; remove dir in edx - mov [RMPath],edx - pushad - call ZFileRMDir - or eax,eax - jnz .notokay - popad - clc - ret -.notokay - popad - stc - ret - NEWSYM Change_Dir mov [CHPath],ebx cmp byte[ebx],0 @@ -1059,37 +1029,13 @@ NEWSYM Get_MouseData ; Returns both pressed and coordinates mov bx,[WMouseButton] ret -NEWSYM Set_MouseXMax ; Sets the X boundaries (ecx = left, edx = right) - ;pushad - ;push ecx - ;call SetMouseMinX - ;pop ecx - ;push edx - ;call SetMouseMaxX - ;pop edx - ;popad +NEWSYM Set_MouseXMax ret -NEWSYM Set_MouseYMax ; Sets the Y boundaries (ecx = left, edx = right) - ;pushad - ;push ecx - ;call SetMouseMinY - ;pop ecx - ;push edx - ;call SetMouseMaxY - ;pop edx - ;popad +NEWSYM Set_MouseYMax ret -NEWSYM Set_MousePosition ; Sets Mouse Position (x:cx,y:dx) - ;pushad - ;push ecx - ;call SetMouse - ;pop ecx - ;push edx - ;call SetMouseY - ;pop edx - ;popad +NEWSYM Set_MousePosition ret NEWSYM Get_MousePositionDisplacement diff --git a/zsnes/src/win/winintrf.asm b/zsnes/src/win/winintrf.asm index b7c4a561..771e8f50 100644 --- a/zsnes/src/win/winintrf.asm +++ b/zsnes/src/win/winintrf.asm @@ -625,45 +625,6 @@ NEWSYM Change_Single_Dir ; int 21h ; ret -NEWSYM Create_Dir - ; change to dir in edx - mov [MKPath],edx - pushad - call ZFileMKDir - or eax,eax - jnz .notokay - popad - clc - ret -.notokay - popad - stc - ret -; mov ah,39h -; int 21h -; ret - -NEWSYM Remove_Dir - ; remove dir in edx - mov [RMPath],edx - pushad - call ZFileRMDir - or eax,eax - jnz .notokay - popad - clc - ret -.notokay - popad - stc - ret -; mov ah,3Ah -; int 21h -; ret - -; mov dl,[LoadDrive] -; mov ebx,LoadDir -; call Change_Dir NEWSYM Change_Dir pushad @@ -697,25 +658,6 @@ NEWSYM Change_Dir stc ret - ; dl = drive, ebx = dir -; push ebx -; mov ah,0Eh -; int 21h -; mov ah,3Bh -; mov edx,gotoroot -; int 21h -; pop ebx -; mov edx,ebx -; cmp byte[edx],0 -; je .nodir -; mov ah,3Bh -; int 21h -;.nodir -; ret - -; mov ebx,LoadDir -; mov edx,LoadDrive -; call Get_Dir NEWSYM Get_Dir mov [DirName],ebx pushad @@ -743,17 +685,6 @@ NEWSYM Get_Dir mov [edx],al ret -; push edx -; mov ah,47h -; mov dl,0 -; mov esi,ebx -; int 21h -; mov ah,19h -; int 21h -; pop edx -; mov [edx],al -; ret - NEWSYM Get_First_Entry ; cx = attributes, edx = pointer to wildcard ; returns : DTALoc+15h, bit 4 = Dir (1) or File (0)