Welcome, Guest. Please login or register.

Author Topic: How to Hijack the classic Amiga hardware?  (Read 5650 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show all replies
    • http://www.iki.fi/sintonen/
Re: How to Hijack the classic Amiga hardware?
« on: November 09, 2005, 10:16:23 AM »
@MskoDestny
hwstartup.asm

The code does a bit more than is really needed, and also includes cleanup code, but at least it should give you some idea what needs to be done.
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show all replies
    • http://www.iki.fi/sintonen/
Re: How to Hijack the classic Amiga hardware?
« Reply #1 on: November 09, 2005, 10:20:11 AM »
@msh5150
Quote
movea.l 4.s,a6 ;Execbase
jsr _LVOForbid(a6) ;Disable multitasking

lea $dff000,a5 ;Custom chip base
move.w #$7FFF,intena(a5) ;Disable interrupts
move.w #$7FFF,dmacon(a5) ;Disable DMA

Forbid is not enough, you must Disable.

Quote
If you are running on 68010+ your VBR will be 0 at this point.

There is no guarantee of this. Better not assume anything about the initial VBR value.
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show all replies
    • http://www.iki.fi/sintonen/
Re: How to Hijack the classic Amiga hardware?
« Reply #2 on: November 10, 2005, 07:42:10 AM »
@MskoDestny
Quote
Tracking down an out of print book is a bit more trouble than making an Amiga port of my little OS is worth to me.

Buy the Amiga Developer CD 2.1, it has full Hardware Reference Manual included (among other priceless documentation). It seems to be available for about 25 eur (or ~30 usd).

Hardware Reference Manual really is essential for programming the HW directly.