English Amiga Board


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

 
 
Thread Tools
Old 22 June 2022, 14:27   #1
hop
Registered User
 
hop's Avatar
 
Join Date: Apr 2019
Location: UK
Posts: 249
Force non-zero VBR for testing

I'd like to test my system shutdown/restore code works with 68010+ processors with non-zero VBR.

Under what configurations does non-zero VBR occur? Would it occur on stock A1200 or only with extra hardware added or if the OS is running a VM?

Is there a convenient way of getting the system into a legitimate non-zero VBR state for testing (in WinUAE)?

Thanks for any insight.
hop is offline  
Old 22 June 2022, 15:26   #2
mcgeezer
Registered User
 
Join Date: Oct 2017
Location: Sunderland, England
Posts: 2,702
You can use the vbrmove tool for this and it will move it.

http://aminet.net/package/util/boot/vbrmov23

Pretty sure its that one I used.
mcgeezer is offline  
Old 22 June 2022, 15:43   #3
a/b
Registered User
 
Join Date: Jun 2016
Location: europe
Posts: 1,065
setpatch (e.g. in startup-sequence), or any additional cpu libraries (typically for 040/060) will move it to fast ram if available, otherwise it remains at zero as far as I know.
To mess with vbr and icache/dcache I use cpucontrol (should be on aminet).
a/b is offline  
Old 22 June 2022, 17:45   #4
Thomas Richter
Registered User
 
Join Date: Jan 2019
Location: Germany
Posts: 3,315
Not by default, or at least not mine. The issue is that some programs react allergic if the VBR is moved. But you can do so by MuFastZero:

Code:
MuFastZero MoveVBR
Thomas Richter is offline  
Old 22 June 2022, 17:47   #5
nogginthenog
Amigan
 
Join Date: Feb 2012
Location: London
Posts: 1,317
Sometimes the vector table (first 4K or so?) is mapped into fast ram by the MMU and VBR remains zero.
nogginthenog is offline  
Old 22 June 2022, 20:34   #6
hop
Registered User
 
hop's Avatar
 
Join Date: Apr 2019
Location: UK
Posts: 249
Thanks. I'll try these out. I have always wondered what setpatch does!
hop 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
Switch off / revert back VBR Move to fast alexh support.AmigaOS 9 05 September 2021 21:21
CacheControl and VBR from bootblock h0ffman Coders. Asm / Hardware 11 26 May 2021 17:57
quit key on 68000 (non-vbr) systems Yulquen74 project.WHDLoad 5 04 March 2016 18:01
Error in game VBR detected... franeti project.WHDLoad 1 22 April 2015 23:43
Need Help for testing Lord Riton Retrogaming General Discussion 19 06 April 2011 05:45

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 05:37.

Top

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