fatman2021 wrote:
I'm a x86 programmer. So when I do my asm programming I use the x86 8-bit, 16-bit, and 32-bit registers. Now what I need to know is the PowerPC equivalents of the x86 8-bit, 16-bit, and 32-bit registers. This will help me port my x86 VESA VBE programs over to AmigaOS. So if any one knows a table or any other infomation, let me know thanks
I also need to know the PowerPC equivalent to the x86 interrupt 10h
A couple of things here, the PPc does not have 8bit,16bit and 32bit modes, instead it had a single set of 32, 32bit general purpose registers which will work in the size of the addressing mode of the instruction you are using.. Some registers are reserved for use by the OS (some registers don;t get saved in a context* switch,), and this depends on the OS you are using, so get a good book on the subject.
*Linux, BFD, MacOSX, AmigOS4,MorphOS and AROS are all multitasking OS's, so you must remember that your task is going to not going to have total control over the CPU and will be switched out quite regularly.
Doue to the design of MSDOS, System calls had to made made using an interupt, thus System calls and Interupt have become interchangeable for the MSDOS programmer.
This is not the case for Multitasking OS's, and system calls should not be confused with interupts. you will probably never need to invoke an interupt in AmigaOS.
AmigaOS has a dedicated graphics subsystem called, strangly enough, the graphics.library which as a programmer you probably won't need very much. It is more common now to use the GUI system known as the intuition.library. This provides the programmer full graphics functions but keeps them in the context of the GUI, which users and graphics cards like!
I suggest you buy/download some developer docs, AmigaOS is very different to MSDOS.
I would also suggest you forget about PPC asm (porting x86 Code to that will be hell) and switch to C which is portable across systems (remember to abstract out the system depandant stuff to allow quicker and easier porting).
Have fun :-D