assembly - Do different 68k simulators have different TRAP tasks? -
I am recently reviewing Motorola 68000 programming. Of course, when I did the course, I did just what was necessary to pass (and was a terrible professor) ... but now I'm really interested in stuff. However, seeing through my old textbook, he uses the following code:
ORG $ 8000 HMSG DC. B 'hello!' DC. B ORG # 8100 START MOVEA.L # HMSG, A3 TRAP # 3 Trap # 9 and start
It will not be compiled in it, but in the book when I changed this code, So it worked.
ORG $ 1000 HSmg DC B 'Hello!', 0 start LEA HSMG, A1 move # 14, D. trap # 15 and start
Is this the only difference between the compilers? Or am I missing something big here? I understand that implementing TRAP # 15
in the simulator, at which time the work is in the D0 register, but whether there are separate network functions for the simulator, or whether it is across 68000 processors Is the standard?
Thanks
This TRAP
command calls only Has a routine that is pointed out in memory somewhere by a longword. This part of the behavior is common to all 68000 CPUs, where the number of that long word and that which is regular, (and therefore it needs as much data as you need it, and so on) depend on that system Does.
(for example in the attic ST> TAP for calling in the OS, and you usually pass all relevant information on the stack, ignore the register content. I believe that the Mac OS "system" is used in the same way as TRAP
, and Amiga did not use it at all.)
Comments
Post a Comment