Assembly language...HELP ME PLEASE!!!

pillage2001

Lifer
Sep 18, 2000
14,038
1
81
Whoever is good at assemble language, can you please help me with some basic stuffs here. PM me and I'll PM you back or just leave a msg in this thread. I'm desperate for help here.
 

pillage2001

Lifer
Sep 18, 2000
14,038
1
81
The most basic computer language. Used for programing in the first 16 bit and 8 bit platform......

AnYBoDy?!?!

Please!
 

pillage2001

Lifer
Sep 18, 2000
14,038
1
81
Here goes the question.

I'm just asked to do a simple question.

Write a program that will find and display the maximum value within an array of 20 byte-long integers. Your program should
consist of at least two subroutines: one to find the maximum value and the other to display the maximum value. Use the coding
?skeleton? that you learned in lab #5. Don?t forget that you will need a main block (start). Comments are required. Include
your name and lab section at the top of your program.
 

nuttervm

Golden Member
Nov 13, 1999
1,818
0
0
i know gnu assembler that can be written in c++ on any linux machine. look on intel.com for the white papers on the 80386 chipset instructions. if you look for simple (non mmx etc) and look for info on how to use the 'loop' instruction. basically a loop will decrement %ecx until it is zero, so you could initialize it to 20 and loop thru resetting a 'max' everytime you find one.

i dont want to do it for you, you need to learn for yourself. besides i'm not all that great at it.
 

pillage2001

Lifer
Sep 18, 2000
14,038
1
81
I've written a program that can compare 2 integers. That's all. How do I compare 20 byte long integers? Do I push everything into the SP and compare it one by one by running a loop?
 

hans007

Lifer
Feb 1, 2000
20,212
18
81
yeah, if you can write a function in asm that will compare two numbers you just push them all in and pop them all after you compare one. just put a counter in one of your other registers for it
 

Maverick

Diamond Member
Jun 14, 2000
5,900
0
71
ahh the joys of college
you realize unless you LIKE assembly you're NEVER going to use it on the job.

Like me...4 years of studying hard in CS learning how to pop registers and make system calls...
and I'll probably end up being a web developer/graphics programmer. Its useless for me to know the ins and outs of assembly.

There needs to be a big revamp of IT Education in schools of Higher Learning. There's just way too much
useless information they make us learn. They need to specialize more.

Sorry for the rant. My advice is to ask a TA. And if they refuse to help, slap 'em silly.
Good luck.
 

hans007

Lifer
Feb 1, 2000
20,212
18
81
i actually loved assembly. i managed to write all my programs perfectly. Got a C in the class, because we had stupid tests on paper, that tested out knowledge of doing manual bit shifts and number conversions. such a load of BS. i got an F on both midterms and the final. A on all projects. That is quite possibly the worst thing about college CS classes. they put tests in them , so that the retards who cant program at all can at least study how to shift bits really fast and still not fail out of school. Ok bitterness off. really though i liked ASM since you had so much control. I even wrote a fire fighting game for a project and had a lot of fun (yes 30 hours of fun). The only bad thing was that we had a special software emulator of a theoretical 24-bit risc CPU. which was odd since it was 24bits. And it sucked since it had a total of 1 general purpose register, unlike my friends at other schools who got to program on mips, with its more standard 16bit data types and 16 general registers. Plus i got to learn all about x86 asm and the reasons behind it, the variable length instructions and all that. segmented memory is really stupid and you'll think its stupid too when you see it. The way they maintained compatibility from 8 to 16 to 32 to 64 bits was great though (like sledgehammer pretty much does).
 

Polaris13

Member
Oct 19, 1999
117
0
0
Assembly is great, I took 4 semester of it and loved it. The primary use today for assembly language is for embeded devices and Operating System Kernels. Almost always in embedded devices you have very very little memory <32k, this means that you have to have very tight code and that can be accomplished by using assembly. Slowly the embedded industry is shying away from assembly and going more for c but assembly is still VERY important for some fine tuning and register tweaking. Most operating system companies are shying away from assembly out of shear lazieness. Computers are so fast today that many think that you don't need to waste time optimizing your code. That is why every new operating system that comes out is slower and slower. They no longer have a tight codebase. The fastest I/O OS in the world is Netware, that is because the Netware kernel is still written in assembly and constantly being optimized (I worked there for 2 years in the department that performs these optimizations). Learn assembly if you have any desire of working with OSes or any type of embedded systems.
 

dstidolph

Member
Sep 28, 2000
31
0
0
The best tutorial I ever had on Intel assembly code was a book that came with Borland's Turbo Assembler. They would ship with two books - one was a small reference guide, and the other was an actual book that taught assembly code and had great examples. Check out used book stores and look for it. It really was a clear book, and even got into object oriented design in assembly code (freaky concept I admit).

I don't have time to write the program for you, but if you have specific questions I will try to help. Please send email as you have need...

David Stidolph
dstidolph@mshow.com
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |