PDA

View Full Version : assembly language question


jenshedd
12-13-2002, 12:40 PM
Hello,
I am not sure if anyone here can help me, but I am trying to write some assembly functions for my boss and she wants them by tomorrow, and I am an amateur to say the least. If anyone could help me it would mean the world to me! Thanks.


The program is so my boss can take business trips and check her F: drive here at work anywhere from the internet. She already had bunches of it written, but I told her I could probably write some if that would help her.

These are the main functions I need to write:

DEL - Delete a file or files.
SWAP - Swap contents of two files.
GREP - Scan a file for occurrences of a string and display lines on which they are found.
TYPE - Display a file from head to tail.
COPY - Copy file to another.
APPEND - Append a file to another.
DIR - File size, date, etc. to directory command.
RESOURCES - Display available memory/disk used/available.


If anyone could help me even the tiniest bit, I would really appreciate it. Thank you so much!!!!!!!!!!

jamessan
12-13-2002, 12:42 PM
Any reason why she wants these in assembly?? These are all standard things that can be done from a command prompt.

jenshedd
12-13-2002, 01:00 PM
I think that assembly is the only language she knows. She can do it on the command prompt here at work, but she can't take her whole F:/ drive on trips with her, she wants to have a program that can check that drive from any computer on the internet. I am pretty sure that is how she explained it to me.

jamessan
12-13-2002, 01:04 PM
Well, if she's going to be able to access her computer remotely, then she should be able to run those commands from the command prompt.

jenshedd
12-13-2002, 01:08 PM
I don't know then. I am just doing what I was told so I get paid. ;) She gave me a couple other ones to write like, date, time, and dumping the registers in the files, and I am working on those right now. I just was hoping someone could help me get stuff done if they were really good at assembly. That's all.

sedarious
12-13-2002, 01:24 PM
Firstly, you boss is silly. Secondly, if you are using windows, take a look at the 0x21 interrupts. Thats where all the file handling shizzy is at. You might want to nab youself Nortons Guide To Assembly. I would send it to you, but I am at work and don't have it here. SOmeone else might be able to help you out there. If not, I am sure there are places to look them up. I am not familiar with how to do Linux file stuffs in asm.

Also, I would assume that she is going to be getting into her box via an shh or telnet session, which means she has command line, which means she can just run rm,grep,cp and like the. Which brings me back to my original point - your boss is silly.

Also, you aren't going to want to write an internet INTERFACE in assembly. Handling and sychronization of packets its just to much work - especially if you only have a single day!

SILLY!!!

jenshedd
12-13-2002, 01:26 PM
I agree that my boss is silly! :)

gish
12-13-2002, 02:15 PM
sounds a little fishy to me

damonbrinkley
12-13-2002, 02:57 PM
Can you even make any sort of network connections with assembly? I really don't think so although I don't have much experience with it. I'm pretty sure it's geared towards having complete control over your local hardware and not internet applications.

jenshedd
12-13-2002, 03:05 PM
She runs it through Visual Studio.net and she has some basic c++ intertwined with it, if that makes any sense.

damonbrinkley
12-13-2002, 03:07 PM
To me, it sounds like your boss is absolutely clueless.....why not just write it in C/C++ or some other high-level language which is made for that type of program?

Also, is she going to be accessing it through some sort of VPN or just open your whole network to the rest of the Internet? What is her ideal situation on how this should work?

What OS is she using?

sedarious
12-13-2002, 03:56 PM
You can do ANYTHING is assembly that you can do in another language. ALL languages eventually boil down to machine code which is a DIRECT translation to assembly. Assembly is simply a more readable form of machine code (in essence).

stuka
12-13-2002, 05:13 PM
Yup - if you were masochistic enough, you could write the assembly code to directly drive the ethernet adapter and throw the output up on a console screen, and never touch the operating system calls. However, if you're that good, you wouldn't be working for someone quite so silly, I hope.

jenshedd
12-14-2002, 09:08 AM
I am not good, however. That is why I am asking for help. :(

gish
12-14-2002, 03:38 PM
we all understand what assembly is.....and what high vs low level languages do...but so far....you are behind schedule.....your "boss" had an unattainable goal.....one day for this....i think not....any way.....good luck