English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 27 January 2013, 15:57   #1
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,553
"Interesting" way to detect 68020+ with enabled instruction cache

From Subtle Shades / Nuance bootblock:

Code:
000015D4 47fa 0008                LEA.L (PC,$0008) == $000015de,A3
000015D8 3e3c 012c                MOVE.W #$012c,D7
000015DC 303c 0000                MOVE.W #$0000,D0
000015E0 6614                     BNE.B #$00000014 == $000015f6
000015E2 0c47 0001                CMP.W #$0001,D7
000015E6 6604                     BNE.B #$00000004 == $000015ec
000015E8 36bc ffff                MOVE.W #$ffff,(A3)
000015EC 51cf ffee                DBF .W D7,#$ffee == $000015dc
000015F0 7000                     MOVE.L #$00000000,D0
000015F2 4e7b 0002                MOVEC D0,CACR
000015F6
In my opinion there are much better ways
Toni Wilen is offline  
Old 27 January 2013, 18:56   #2
StingRay
move.l #$c0ff33,throat
 
StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
That code actually makes me smile. There sure are better ways but I have a soft spot for hacks like this.
StingRay is offline  
Old 28 January 2013, 07:03   #3
musashi5150
move.w #$4489,$dff07e
 
musashi5150's Avatar
 
Join Date: Sep 2005
Location: Norfolk, UK
Age: 42
Posts: 2,351
Slightly OT but why is SubtleShades ringing a bell for me? Is that the one with the weird problem when using resload_DiskLoad() during the tunnel part Stinger? I haven't got code nearby but I'm 100% I've worked on a WHDLoad installer for this one
musashi5150 is offline  
Old 28 January 2013, 10:36   #4
hooverphonique
ex. demoscener "Bigmama"
 
Join Date: Jun 2012
Location: Fyn / Denmark
Posts: 1,637
I see what they're doing, but I don't get why they loop 300 times.. Is the idea that if we spend "enough time" in this piece of code, chances are higher that it will enter the cache?
hooverphonique is online now  
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
"Reminder "Lincs Amiga User Group aka "LAG" Meet Sat 5th of January 2013" rockape News 4 30 January 2013 00:06
"16-32BIT Microprocessors: 68000/68010/68020" RedskullDC Coders. General 5 21 June 2008 23:59
WinUAE still freezes with "Faster RTG mode" enabled StingRay support.WinUAE 4 13 April 2007 08:34
HUGE slowdown with "More Accurate FPU" enabled Doc Mindie support.WinUAE 2 10 April 2007 20:21
Interesting "look back" article killergorilla Amiga scene 3 31 January 2006 01:09

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 14:59.

Top

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