Dead Hackers Society
Other BBSes »
 
 
Demoscene  Coding  CT60  Buy/sell

Atari coding BBS
 
sys calls vs direct calls
Posted by: N00b Jun,17.2010-21:14 

This is going to sound very strange for all the veterans
(and im sure its been asked before so no flames pls ;) to ASM but...

Is it preferable to use what i'd call traps/system calls or direct calls?
And does one guarantee system/TOS compatability over the other?

e.g.
------------------------------------------------
system call:
pea palette,-(a7)
move.w #6
trap #14
addq.l #6,a7

direct:
move.l palette,a0
movem.l (a0),d0-d7
movem.l d0-d7,$fff8240
------------------------------------------------
(this is just an example, i was thinking more generally but this seems the easiest example to give so there is no mis-understanding)

It may seem spurious to the vets (no offence!) but as a newbie i really wanna learn the best way to do things like this.. i cant imagine its just a difference in bytes? Im sure there is more to it than that.

Cheers guys.. and thanks in advance







[All messages in this thread]    [Start new thread]

Topic Posted by  Date 
sys calls vs direct calls N00b Jun,17.2010-21:14
  Re: sys calls vs direct calls evil Jun,17.2010-22:00
    Re: sys calls vs direct calls N00b Jun,17.2010-22:16
      Re: sys calls vs direct calls mikro Jun,17.2010-22:45


Reply to this message
Name:
Topic:
Anti-troll code:

Message:

What's the anti-troll code?
That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
© 1994-2024 Dead Hackers Society Contact: Anders Eriksson