x86 Architecture and Assembly Language

GeSuN

Senior member
Feb 4, 2002
317
0
0
I'm learning assembly language for Intel 8086 to 80486 at university but, i'm compiling my programs at home where I have an AMD Athlon 1.4GHz...

Are the registers in the Intel CPUs that I've mentionned and the Athlon ones are the same? Is the athlon do the same functions as intel exactly the same way????

 

zephyrprime

Diamond Member
Feb 18, 2001
7,512
2
81
Yes for the most part. If the registers and instructions weren't the same, programs would be incompatible. The only exception is 3DNOW! and SSE1/2. The intel chips do not support 3dnow and the the Athlon XP does not support SSE2.
 

zemus

Member
Mar 6, 2002
47
0
0
Yup everything is pretty much the same, other than pre-386 chips only had the AX (16) type registers while everyhting after had EAX (32)

If you are using a 16 bit assembler, you can still use 32 bit registers

DB 66H
MOV AX,[esi+1]


will make a 16 bit assemblers do...


MOV EAX,[ESI+1]


This works in almost all cases where you are trying to make the destination 32 bit


------

Even if your using an old assebmler, you can even manually enter SIMD instructions, though i do not know those off the top of my head.


---

Hammer will be the first x86 cpu to really add to the register set since the 386. Whats unclear at the moment is if it will or will not allow a form of 66H override, I have seen refereance to a 69H override in x86-64 that claims to force an operation to 64 bit. but occording to the published docs, you must be in 64bit protected mode to do this, it could be as simple as telling the CPU to do this, or it could be as complicated as trying to enter protected mode manually was from 16 bit mode.


---

Have fun, it's really fun to hand code things in sometimes just to show off.
 

ShadowWolf

Member
Mar 4, 2002
33
0
0
You can basically program ASM for anything in the 80x86 series without changes after the 80386 chipset ( introduction of p-mode ) which is the biggest change. Most other actions are fairly universal.

There are some differences between Intel & AMD though, mainly the 3DNow! & 3DNow!2 instructions, but those really won't help you a lot as far as anything's concerned.

If you use something like NASM, it automatically utilizes things like MMX, 3DNow!, etc...

just go here:

http://www.google.com/search?q=NASM

and pick one of those sites ( Sorry I lost my direct link after my reinstall of Windows )
 
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/    |