English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 26 November 2014, 23:08   #1
Galahad/FLT
Going nowhere
 
Galahad/FLT's Avatar
 
Join Date: Oct 2001
Location: United Kingdom
Age: 50
Posts: 8,986
multiple use of traps

Is constant use of traps (like the Atari ST does) a big strain on cpu resources?
Galahad/FLT is offline  
Old 27 November 2014, 09:52   #2
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
When comparing an OS call through TRAP with an AmigaOS call (using JSR d16(An)) then the TRAP requires approximately twice the number of cycles. Also RTE is a bit slower than RTS. The advantage of TRAP is that you switch into supervisor mode and may access protected system resources, which are otherwise unavailable in user mode (a feature which is not used on Amigas).
phx is offline  
Old 27 November 2014, 10:53   #3
Galahad/FLT
Going nowhere
 
Galahad/FLT's Avatar
 
Join Date: Oct 2001
Location: United Kingdom
Age: 50
Posts: 8,986
Quote:
Originally Posted by phx View Post
When comparing an OS call through TRAP with an AmigaOS call (using JSR d16(An)) then the TRAP requires approximately twice the number of cycles. Also RTE is a bit slower than RTS. The advantage of TRAP is that you switch into supervisor mode and may access protected system resources, which are otherwise unavailable in user mode (a feature which is not used on Amigas).
Looks like i've got lots of code to remove then!
Galahad/FLT is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Traps´n Treasures Demoversion !! lexcom request.Old Rare Games 26 01 March 2019 01:05
Traps 'n' Treasures Old Fool request.Old Rare Games 10 14 September 2008 16:53
Found -> Traps 'n' Treasures lee uk Looking for a game name ? 10 08 March 2006 18:04
Traps 'n' Treasures misiumaniak support.Games 1 25 October 2004 18:33
traps´n treasures mods.. Dasse request.Modules 19 29 November 2003 13:55

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 10:32.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.19448 seconds with 15 queries