680x0 - User-Defined Vectors

All 680x0 related coding posts in this section please.

Moderators: Zorro 2, Moderator Team

Post Reply
Telboy
Atarian
Atarian
Posts: 2
Joined: Mon Apr 15, 2024 5:08 am

680x0 - User-Defined Vectors

Post by Telboy »

I have some spare 68020 CPU's and I thought I should do something with them, so I am writing a monitor program and got some simple games pong, Othello etc.

However, I want to make use of the 192 user-defined vectors but I can not find any instruction to trigger using them e.g. I tried 'trap #64' but that defaults to trap #0.

I tried hard coding

Code: Select all

#define trap64 __asm__ __volatile__(" .word 0x4E80")
but that triggers illegal instruction.

So if anyone has any information, I would be grateful.

Thanks in advance
czietz
Hardware Guru
Hardware Guru
Posts: 2822
Joined: Tue May 24, 2016 6:47 pm

Re: 680x0 - User-Defined Vectors

Post by czietz »

You cannot trigger exceptions 64 - 255 from software. Those are meant to be passed as (non-autovector) interrupt vector from some hardware component. For example, in Ataris the MFP (MC68901 multi-function peripheral) can trigger these vectors during an interrupt.
Telboy
Atarian
Atarian
Posts: 2
Joined: Mon Apr 15, 2024 5:08 am

Re: 680x0 - User-Defined Vectors

Post by Telboy »

Ok thanks....
Post Reply

Return to “680x0”